New mappings structure#37
Conversation
You mean to confirm that it should be possible? Or that the work is actually done? The reason I am clarifying is that it is somewhat annoying to have to do the development with everything locally linked. In other words, I'm hoping that you mean to confirm that the individual project requirements can be satisfied by the new format... |
|
@rwjblue the same information is still there. For named exports: // Old format
{
// Some other fields
"computed.gt": ["@ember/object/computed", "gt"]
}
// New format
[
// Some other objects
{
"global": "Ember.computed.gt", // same as `Ember.${keyOldFormat}`
"module": "@ember/object/computed", // same as valueOldFormat[0]
"export": "gt", // same as valueOldFormat[1]
"deprecated": false // no option in old format
},
]For default exports: // Old format
{
// Some other fields
"Router": ["@ember/routing/router", null, "EmberRouter"],
}
// New format
[
{
"global": "Ember.Router", // same as `Ember.${keyOldFormat}`
"module": "@ember/routing/router", // same as valueOldFormat[0]
"export": "default",
"localName": "EmberRouter", // same as valueOldFormat[2]
"deprecated": false
},
]Which are all the projects depending on this one? I'm working on updating the babel plugin, so I can work on the others too. |
|
@Turbo87 can change |
|
Getting the list from npmjs.com:
|
|
@Turbo87 great work! |
This PR adapts the code to the new format suggested in ember-cli/ember-rfc176-data#37.
This PR adapts the code to the new format in ember-cli/ember-rfc176-data#37 This also removes a line testing an old shims not ported to new format.
New format introduced in ember-cli/ember-rfc176-data#37
This PR adapts the code to the new format in ember-cli/ember-rfc176-data#37 This also removes a line testing an old shims not ported to new format.
This PR adapts the code to the new format suggested in ember-cli/ember-rfc176-data#37.
|
PRs done:
All PRs bump version for Thank you! |
|
After chatting with @Serabe in slack and in ember-cli/eslint-plugin-ember#142, it seems that we have lost some of the old shims in this conversion. For example, I do not see {
global: 'Ember.Sortable',
module: 'ember-controller/sortable',
export: 'default',
deprecated: true
} |
|
@rwjblue I've added the missing entries from the old shims now |
|
Updated all three PRs |
|
Just to be clear amongst us, we should make a few changes:
|
|
What do we need to merge this and make a new release? |
|
Released as v0.3.0. |
This PR adapts the code to the new format in ember-cli/ember-rfc176-data#37 This also removes a line testing an old shims not ported to new format.
This PR converts the mappings to the new structure proposed in #36 (comment)
We should only merge this once we've verified that the three main projects using this package can work with the new structure.
/cc @Serabe @locks