-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(js): Remove @novu/shared dependency #6906
Conversation
✅ Deploy Preview for novu-stg-vite-dashboard-poc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
93da3ec
to
e8a6c4f
Compare
@novu/client
@novu/framework
@novu/js
@novu/nest
@novu/headless
@novu/nextjs
@novu/node
@novu/notification-center
novu
@novu/providers
@novu/react
@novu/react-native
@novu/shared
@novu/stateless
commit: |
@@ -32,7 +26,6 @@ export class Novu implements Pick<NovuEventEmitter, 'on'> { | |||
constructor(options: NovuOptions) { | |||
this.#inboxService = new InboxService({ | |||
backendUrl: options.backendUrl ?? PRODUCTION_BACKEND_URL, | |||
userAgent: options.__userAgent ?? userAgent, |
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 needed for useragent analytics from @novu/react and other packages
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.
Good catch. I will add it back.
e8a6c4f
to
64d796d
Compare
Is this PR ready to review? |
64d796d
to
35c9d1f
Compare
✅ Deploy Preview for dev-web-novu ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for dashboard-v2-novu-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
35c9d1f
to
eb6a652
Compare
Yes it is now. |
}); | ||
|
||
describe('lazy session initialization', () => { | ||
test('should call the queued notifications.list after the session is initialized', async () => { | ||
describe('http client', () => { |
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.
can you please add your tests separately? because the previous ones were covering lazy session initialization and queueing
expect(data).toEqual({ | ||
notifications: mockNotificationsResponse.data, | ||
hasMore: mockNotificationsResponse.hasMore, | ||
filter: mockNotificationsResponse.filter, | ||
}); | ||
}); | ||
|
||
test('should reject the queued notifications.list if session initialization fails', async () => { |
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.
why we removed these two?
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 moved these tests to the BaseModule. Did I miss anything?
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.
Well, I missed to push the new file 😮💨
- project: @novu/node 2.0.5
Clone HTTP client from @novu/client to remove all @novu/shared leakages in @novu/js
Note that the global monorepo eslint runs on each package.
b1ef2fb
to
b94d38c
Compare
What changed? Why was the change needed?
Clone HTTP client from @novu/client to remove all @novu/shared leakages in @novu/js