-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v7 Plan #1061
Comments
seems like it's completed? |
yup! thanks! |
Hey @NullVoxPopuli, I'm upgrading
That's obviously here 😅 So I followed the migration examples - added Unfortunately, I got a problem building the project:
Fortunately, the error is quite informative so I installed But, I get another issue in the browser:
It seems like it's pointing to |
you will need
You should be able to remove this once you upgrade the above two packages
yeah, this happens when you node_modules are messed up -- ember-resources is compat with 3.28+, and
@ember/owner and @ember/application to get getOwner and setOwner so that ember-resources can work without logging deprecations.
To fix, you'll probably want to delete your node_modules, and re-install. Lemme know what you run in to next! |
Thanks @NullVoxPopuli! I manually updated Also not sure what are the exact embroider packages but the upgrade did this: - "@embroider/compat": "^2.1.1",
- "@embroider/core": "^2.1.1",
+ "@embroider/compat": "^3.2.1",
+ "@embroider/core": "^3.2.1",
"@embroider/router": "^2.1.3",
- "@embroider/webpack": "^2.1.1",
+ "@embroider/webpack": "^3.1.5", |
Goal:
Migration should be
find-and-replace
of import paths only, and no change should be needed that's harder than that.UPDATE: turns out this isn't needed because ember-resources doesn't actually use any decorators internally
ember-resources
Ref: Intent to deprecate: The class-based Resource. #1056
Ref: Reducing scope of the package
ember-resources
(while not removing anyone's relied-upon functionality) #1046Diff
Example migration
task
ortrackedTask
replace
ember-resources/util/ember-concurrency
withreactiveweb/ember-concurrency
keepLatest
replace
ember-resources/util/keep-latest
withreactiveweb/keep-latest
map
replace
ember-resources/util/map
withreactiveweb/map
trackedFunction
replace
ember-resources/util/function
withreactiveweb/function
helper
replace
ember-resources/util/helper
withreactiveweb/helper
debounce
replace
ember-resources/util/debounce
withreactiveweb/debounce
UpdateFrequency
orFrameRate
replace
ember-resources/util/fps
withreactiveweb/fps
RemoteData
orremoteData
replace
ember-resouces/util/remote-data
withreactiveweb/remote-data
The text was updated successfully, but these errors were encountered: