Skip to content

Commit

Permalink
Allow @ember/string v4 and move ember-inflector to peerDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Aug 2, 2024
1 parent 2aecb71 commit 37ea83a
Show file tree
Hide file tree
Showing 4 changed files with 9,933 additions and 7,803 deletions.
9 changes: 5 additions & 4 deletions ember-can/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@
},
"dependencies": {
"@embroider/addon-shim": "^1.8.8",
"decorator-transforms": "^2.0.0",
"ember-inflector": "^4.0.2"
"decorator-transforms": "^2.0.0"
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@babel/plugin-transform-typescript": "^7.24.5",
"@babel/runtime": "^7.24.5",
"@ember/string": "^3.1.1",
"@ember/string": "^4.0.0",
"@embroider/addon-dev": "^4.3.1",
"@glimmer/component": "^1.1.2",
"@glint/core": "^1.4.0",
Expand Down Expand Up @@ -91,6 +90,7 @@
"@typescript-eslint/parser": "^7.8.0",
"babel-plugin-ember-template-compilation": "^2.2.5",
"concurrently": "^8.2.2",
"ember-inflector": "^5.0.0",
"ember-resolver": "^12.0.1",
"ember-source": "^5.8.0",
"ember-template-lint": "^6.0.0",
Expand Down Expand Up @@ -126,7 +126,8 @@
}
},
"peerDependencies": {
"@ember/string": "^3.1.1",
"@ember/string": "^3.1.1 || ^4.0.0",
"ember-inflector": "^4.0.2 || ^5.0.0",
"ember-source": "^3.28.0 || ^4.0.0 || >=5.0.0",
"ember-resolver": ">= 8.0.0"
}
Expand Down
1 change: 1 addition & 0 deletions ember-can/src/-private/normalize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { camelize } from '@ember/string';
// @ts-expect-error Could not find a declaration file for module 'ember-inflector'.
import { singularize } from 'ember-inflector';

const stopWords = ['of', 'in', 'for', 'to', 'from', 'on', 'as'];
Expand Down
Loading

0 comments on commit 37ea83a

Please sign in to comment.