Skip to content
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

Draft
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

SokratisVidros
Copy link
Contributor

What changed? Why was the change needed?

Clone HTTP client from @novu/client to remove all @novu/shared leakages in @novu/js

Copy link

netlify bot commented Nov 8, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit 64d796d
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/6733e0eb50bd9b00081f791b
😎 Deploy Preview https://deploy-preview-6906--novu-stg-vite-dashboard-poc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

packages/js/src/novu.test.ts Dismissed Show dismissed Hide dismissed
Copy link

pkg-pr-new bot commented Nov 11, 2024

Open in Stackblitz

@novu/client

pnpm add https://pkg.pr.new/novuhq/novu/@novu/client@6906

@novu/framework

pnpm add https://pkg.pr.new/novuhq/novu/@novu/framework@6906

@novu/headless

pnpm add https://pkg.pr.new/novuhq/novu/@novu/headless@6906

@novu/js

pnpm add https://pkg.pr.new/novuhq/novu/@novu/js@6906

@novu/nest

pnpm add https://pkg.pr.new/novuhq/novu/@novu/nest@6906

@novu/nextjs

pnpm add https://pkg.pr.new/novuhq/novu/@novu/nextjs@6906

@novu/node

pnpm add https://pkg.pr.new/novuhq/novu/@novu/node@6906

@novu/notification-center

pnpm add https://pkg.pr.new/novuhq/novu/@novu/notification-center@6906

novu

pnpm add https://pkg.pr.new/novuhq/novu@6906

@novu/providers

pnpm add https://pkg.pr.new/novuhq/novu/@novu/providers@6906

@novu/react

pnpm add https://pkg.pr.new/novuhq/novu/@novu/react@6906

@novu/react-native

pnpm add https://pkg.pr.new/novuhq/novu/@novu/react-native@6906

@novu/shared

pnpm add https://pkg.pr.new/novuhq/novu/@novu/shared@6906

@novu/stateless

pnpm add https://pkg.pr.new/novuhq/novu/@novu/stateless@6906

commit: 64d796d

@@ -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,
Copy link
Member

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

Copy link
Contributor Author

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.

Clone HTTP client from @novu/client to remove all @novu/shared leakages in @novu/js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants