Skip to content

Commit

Permalink
[BUGFIX release] Add missing deprecate options (for + since)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Jan 14, 2021
1 parent b18f67e commit f79f226
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/@ember/-internals/console/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ if (LOGGER) {
id: DEPRECATION_ID,
until: '4.0.0',
url: DEPRECATION_URL,
for: 'ember-source',
since: {
enabled: '3.2.0',
},
});
return console.log(...arguments); // eslint-disable-line no-console
},
Expand All @@ -68,6 +72,10 @@ if (LOGGER) {
id: DEPRECATION_ID,
until: '4.0.0',
url: DEPRECATION_URL,
for: 'ember-source',
since: {
enabled: '3.2.0',
},
});
return console.warn(...arguments); // eslint-disable-line no-console
},
Expand All @@ -91,6 +99,10 @@ if (LOGGER) {
id: DEPRECATION_ID,
until: '4.0.0',
url: DEPRECATION_URL,
for: 'ember-source',
since: {
enabled: '3.2.0',
},
});
return console.error(...arguments); // eslint-disable-line no-console
},
Expand All @@ -115,6 +127,10 @@ if (LOGGER) {
id: DEPRECATION_ID,
until: '4.0.0',
url: DEPRECATION_URL,
for: 'ember-source',
since: {
enabled: '3.2.0',
},
});
return console.info(...arguments); // eslint-disable-line no-console
},
Expand All @@ -139,6 +155,10 @@ if (LOGGER) {
id: DEPRECATION_ID,
until: '4.0.0',
url: DEPRECATION_URL,
for: 'ember-source',
since: {
enabled: '3.2.0',
},
});
/* eslint-disable no-console */
if (console.debug) {
Expand Down Expand Up @@ -168,6 +188,10 @@ if (LOGGER) {
id: DEPRECATION_ID,
until: '4.0.0',
url: DEPRECATION_URL,
for: 'ember-source',
since: {
enabled: '3.2.0',
},
});
return console.assert(...arguments); // eslint-disable-line no-console
},
Expand Down
4 changes: 4 additions & 0 deletions packages/@ember/-internals/runtime/lib/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export default function copy(obj, deep) {
id: 'ember-runtime.deprecate-copy-copyable',
until: '4.0.0',
url: 'https://emberjs.com/deprecations/v3.x/#toc_ember-runtime-deprecate-copy-copyable',
for: 'ember-source',
since: {
enabled: '3.3.0',
},
});

// fast paths
Expand Down
12 changes: 12 additions & 0 deletions packages/@ember/-internals/runtime/lib/ext/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ if (FUNCTION_PROTOTYPE_EXTENSIONS && ENV.EXTEND_PROTOTYPES.Function) {
id: 'function-prototype-extensions.property',
until: '4.0.0',
url: 'https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-property',
for: 'ember-source',
since: {
enabled: '3.11.0',
},
}
);
return computed(...arguments, this);
Expand Down Expand Up @@ -131,6 +135,10 @@ if (FUNCTION_PROTOTYPE_EXTENSIONS && ENV.EXTEND_PROTOTYPES.Function) {
id: 'function-prototype-extensions.observes',
until: '4.0.0',
url: 'https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-observes',
for: 'ember-source',
since: {
enabled: '3.11.0',
},
}
);

Expand Down Expand Up @@ -175,6 +183,10 @@ if (FUNCTION_PROTOTYPE_EXTENSIONS && ENV.EXTEND_PROTOTYPES.Function) {
id: 'function-prototype-extensions.on',
until: '4.0.0',
url: 'https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-on',
for: 'ember-source',
since: {
enabled: '3.11.0',
},
}
);

Expand Down
4 changes: 4 additions & 0 deletions packages/@ember/-internals/views/lib/mixins/action_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ if (SEND_ACTION) {
id: 'ember-component.send-action',
until: '4.0.0',
url: 'https://emberjs.com/deprecations/v3.x#toc_ember-component-send-action',
for: 'ember-source',
since: {
enabled: '3.4.0',
},
}
);

Expand Down
4 changes: 4 additions & 0 deletions packages/@ember/-internals/views/lib/mixins/text_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ function sendAction(eventName, view, event) {
id: 'ember-component.send-action',
until: '4.0.0',
url: 'https://emberjs.com/deprecations/v3.x#toc_ember-component-send-action',
for: 'ember-source',
since: {
enabled: '3.4.0',
},
});

view.triggerAction({
Expand Down
4 changes: 4 additions & 0 deletions packages/@ember/-internals/views/lib/mixins/view_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,10 @@ if (JQUERY_INTEGRATION) {
id: 'ember-views.curly-components.jquery-element',
until: '4.0.0',
url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis',
for: 'ember-source',
since: {
enabled: '3.9.0',
},
}
);
if (this.element) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ export default function addJQueryEventDeprecation(jqEvent) {
id: 'ember-views.event-dispatcher.jquery-event',
until: '4.0.0',
url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-event',
for: 'ember-source',
since: {
enabled: '3.9.0',
},
}
);
return target[name];
Expand Down
4 changes: 4 additions & 0 deletions packages/@ember/application/globals-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ if (GLOBALS_RESOLVER) {
until: '4.0.0',
id: 'globals-resolver',
url: 'https://deprecations.emberjs.com/v3.x#toc_ember-deprecate-globals-resolver',
for: 'ember-source',
since: {
enabled: '3.16.0',
},
}
);

Expand Down
16 changes: 16 additions & 0 deletions packages/ember/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ if (EMBER_EXTEND_PROTOTYPES) {
{
id: 'ember-env.old-extend-prototypes',
until: '4.0.0',
for: 'ember-source',
since: {
enabled: '3.3.0',
},
}
);

Expand All @@ -219,6 +223,10 @@ Object.defineProperty(Ember, 'Resolver', {
id: 'ember.globals-resolver',
until: '4.0.0',
url: 'https://deprecations.emberjs.com/v3.x#toc_ember-deprecate-globals-resolver',
for: 'ember-source',
since: {
enabled: '3.16.0',
},
}
);

Expand Down Expand Up @@ -579,6 +587,10 @@ if (EMBER_MODERNIZED_BUILT_IN_COMPONENTS) {
{
id: 'ember.legacy-built-in-components',
until: '4.0.0',
for: 'ember-source',
since: {
// TODO: update this when enabling the feature
},
}
);

Expand Down Expand Up @@ -679,6 +691,10 @@ if (JQUERY_INTEGRATION && !views.jQueryDisabled) {
id: 'ember-views.curly-components.jquery-element',
until: '4.0.0',
url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis',
for: 'ember-source',
since: {
enabled: '3.9.0',
},
}
);

Expand Down

0 comments on commit f79f226

Please sign in to comment.