Skip to content

Commit

Permalink
feat: remove support for deprecated modal-from-string
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueCutOfficial committed Feb 7, 2024
1 parent 7394a5c commit d778c6c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 107 deletions.
37 changes: 0 additions & 37 deletions DEPRECATIONS.md

This file was deleted.

15 changes: 0 additions & 15 deletions addon/services/modals.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { A } from '@ember/array';
import { deprecate } from '@ember/debug';
import { computed } from '@ember/object';
import { alias } from '@ember/object/computed';
import Service from '@ember/service';
Expand Down Expand Up @@ -41,20 +40,6 @@ export default Service.extend({
* @returns {Modal}
*/
open(componentClass, data, options) {
deprecate(
`Ember Promise Modals: For extended compatibility with Embroider and its tree-shaking ability, you need to import and pass in the component class of the modal component you want to display instead of "${componentClass}".`,
typeof componentClass !== 'string',
{
id: 'ember-promise-modals.modals-from-string',
until: '5.0.0',
for: 'ember-promise-modals',
since: {
enabled: '3.1.0',
},
url: 'https://github.com/mainmatter/ember-promise-modals/blob/main/DEPRECATIONS.md#ember-promise-modalsmodals-from-string',
},
);

let modal = new Modal(this, componentClass, data, options);

this._stack.pushObject(modal);
Expand Down
6 changes: 1 addition & 5 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,7 @@ module.exports = async function () {
},
},
embroiderSafe(),
embroiderOptimized({
env: {
SKIP_EMBROIDER_DEPRECATION_TEST: true,
},
}),
embroiderOptimized(),
],
};
};
49 changes: 0 additions & 49 deletions tests/application/deprecations-test.js

This file was deleted.

1 change: 0 additions & 1 deletion tests/dummy/config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ module.exports = function (environment) {

if (environment === 'test') {
// Testem prefers this...
ENV.SKIP_EMBROIDER_DEPRECATION_TEST = process.env.SKIP_EMBROIDER_DEPRECATION_TEST;
ENV.locationType = 'none';

// keep test console output quieter
Expand Down

0 comments on commit d778c6c

Please sign in to comment.