-
Notifications
You must be signed in to change notification settings - Fork 42
Convert to v2 addon, require Ember 4.12+ #421
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
Conversation
6e37343 to
cd0ae45
Compare
d36760d to
f2a2633
Compare
| orbitRegistry.schemaVersion = config?.schemaVersion; | ||
| injectModules(modules); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd call this "build internal registry" or something similar -- injection is like, using the @service decorator to pull something in, but 🤷
|
|
||
| export function applyStandardSourceInjections( | ||
| injections: RecordSourceSettings, | ||
| ): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe for a followup, I think using the service decorator directly in each thing that uses this would be clearer.
This pattern sort of is re-creating the implicit injections we used to have an application initializers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to pass things to the underlying orbit things. It's not services.
| { | ||
| ...dataModels, | ||
| ...dataSources, | ||
| ...dataStrategies, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is maybe stylistic, but I'd inline the import.meta.globs here
dgeb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
CONTRIBUTING.md
Outdated
|
|
||
| - `git clone <repository-url>` | ||
| - `cd ember-orbit` | ||
| - `cd ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, no it is not! Will fix. Thanks!
Co-authored-by: NullVoxPopuli <[email protected]>
Co-authored-by: NullVoxPopuli <[email protected]>
6511e37 to
358cfb7
Compare
This builds upon the work in #420 and converts ember-orbit to be a v2 addon.
There are several breaking changes involved here:
setupOrbitmanually in consuming appsorbitRegistrynow exists for registering models etc