diff --git a/.source b/.source index ac199206817..e37e9d3f03e 160000 --- a/.source +++ b/.source @@ -1 +1 @@ -Subproject commit ac199206817019cde1db61d05eac6af8c5026221 +Subproject commit e37e9d3f03e2574565e00f8ed52c4ea11bfd37aa diff --git a/apps/api/package.json b/apps/api/package.json index 2985cf2de30..514f65faa6b 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -1,6 +1,6 @@ { "name": "@novu/api", - "version": "2.0.3", + "version": "2.1.0", "description": "description", "author": "", "private": "true", @@ -132,5 +132,10 @@ "@novu/ee-billing": "workspace:*", "@novu/ee-shared-services": "workspace:*", "@novu/ee-translation": "workspace:*" + }, + "nx": { + "tags": [ + "type:app" + ] } } diff --git a/apps/api/src/app/workflows-v2/usecases/sync-to-environment/sync-to-environment.usecase.ts b/apps/api/src/app/workflows-v2/usecases/sync-to-environment/sync-to-environment.usecase.ts index 84fb215fc22..7121b19547c 100644 --- a/apps/api/src/app/workflows-v2/usecases/sync-to-environment/sync-to-environment.usecase.ts +++ b/apps/api/src/app/workflows-v2/usecases/sync-to-environment/sync-to-environment.usecase.ts @@ -40,32 +40,32 @@ export class SyncToEnvironmentUseCase { throw new BadRequestException('Cannot sync workflow to the same environment'); } - const workflowToClone = await this.getWorkflowToClone(command); - const preferencesToClone = await this.getWorkflowPreferences(workflowToClone._id, command.user.environmentId); - const externalId = workflowToClone.workflowId; - const existingWorkflow = await this.findWorkflowInTargetEnvironment(command, externalId); - const workflowDto = await this.buildRequestDto(workflowToClone, preferencesToClone, command, existingWorkflow); + const originWorkflow = await this.getWorkflowToClone(command); + const preferencesToClone = await this.getWorkflowPreferences(originWorkflow._id, command.user.environmentId); + const externalId = originWorkflow.workflowId; + const targetWorkflow = await this.findWorkflowInTargetEnvironment(command, externalId); + const workflowDto = await this.buildRequestDto(originWorkflow, preferencesToClone, command, targetWorkflow); return await this.upsertWorkflowUseCase.execute( UpsertWorkflowCommand.create({ user: { ...command.user, environmentId: command.targetEnvironmentId }, - identifierOrInternalId: existingWorkflow?._id, + identifierOrInternalId: targetWorkflow?._id, workflowDto, }) ); } private async buildRequestDto( - workflowToClone: WorkflowResponseDto, + originWorkflow: WorkflowResponseDto, preferencesToClone: PreferencesEntity[], command: SyncToEnvironmentCommand, - existingWorkflow?: WorkflowResponseDto + targetWorkflow?: WorkflowResponseDto ) { - if (existingWorkflow) { - return await this.mapWorkflowToUpdateWorkflowDto(workflowToClone, existingWorkflow, preferencesToClone, command); + if (targetWorkflow) { + return await this.mapWorkflowToUpdateWorkflowDto(originWorkflow, targetWorkflow, preferencesToClone, command); } - return await this.mapWorkflowToCreateWorkflowDto(workflowToClone, preferencesToClone, command); + return await this.mapWorkflowToCreateWorkflowDto(originWorkflow, preferencesToClone, command); } private async getWorkflowToClone(command: SyncToEnvironmentCommand): Promise { @@ -94,18 +94,18 @@ export class SyncToEnvironmentUseCase { } private async mapWorkflowToCreateWorkflowDto( - workflowToClone: WorkflowResponseDto, + originWorkflow: WorkflowResponseDto, preferences: PreferencesEntity[], command: SyncToEnvironmentCommand ): Promise { return { - workflowId: workflowToClone.workflowId, - name: workflowToClone.name, - active: workflowToClone.active, - tags: workflowToClone.tags, - description: workflowToClone.description, + workflowId: originWorkflow.workflowId, + name: originWorkflow.name, + active: originWorkflow.active, + tags: originWorkflow.tags, + description: originWorkflow.description, __source: WorkflowCreationSourceEnum.DASHBOARD, - steps: await this.mapStepsToDto(workflowToClone.steps, command), + steps: await this.mapStepsToDto(originWorkflow.steps, command), preferences: this.mapPreferences(preferences), }; } @@ -128,20 +128,20 @@ export class SyncToEnvironmentUseCase { } private async mapStepsToDto( - steps: StepResponseDto[], + originSteps: StepResponseDto[], command: SyncToEnvironmentCommand, - existingWorkflowSteps?: StepResponseDto[] + targetWorkflowSteps?: StepResponseDto[] ): Promise<(StepUpdateDto | StepCreateDto)[]> { const augmentedSteps: (StepUpdateDto | StepCreateDto)[] = []; - for (const step of steps) { - const idAsOptionalObject = this.prodDbIdAsOptionalObject(existingWorkflowSteps, step); + for (const originStep of originSteps) { + const idAsOptionalObject = this.prodDbIdAsOptionalObject(originStep, targetWorkflowSteps); const stepDataDto = await this.buildStepDataUsecase.execute({ identifierOrInternalId: command.identifierOrInternalId, - stepId: step.stepId, + stepId: originStep.stepId, user: command.user, }); - augmentedSteps.push(this.buildSingleStepRequest(idAsOptionalObject, step, stepDataDto)); + augmentedSteps.push(this.buildSingleStepRequest(idAsOptionalObject, originStep, stepDataDto)); } return augmentedSteps; @@ -164,8 +164,8 @@ export class SyncToEnvironmentUseCase { }; } - private prodDbIdAsOptionalObject(existingWorkflowSteps: StepResponseDto[] | undefined, step: StepResponseDto) { - const prodDatabaseId = this.findDatabaseIdInProdByExternalId(existingWorkflowSteps, step); + private prodDbIdAsOptionalObject(originStep: StepResponseDto, targetWorkflowSteps?: StepResponseDto[]) { + const prodDatabaseId = this.findDatabaseIdInProdByExternalId(originStep, targetWorkflowSteps); if (prodDatabaseId) { return { @@ -176,11 +176,8 @@ export class SyncToEnvironmentUseCase { } } - private findDatabaseIdInProdByExternalId( - existingWorkflowSteps: StepResponseDto[] | undefined, - step: StepResponseDto - ) { - return existingWorkflowSteps?.find((existingStep) => existingStep.stepId === step.stepId)?._id ?? step._id; + private findDatabaseIdInProdByExternalId(originStep: StepResponseDto, targetWorkflowSteps?: StepResponseDto[]) { + return targetWorkflowSteps?.find((targetStep) => targetStep.stepId === originStep.stepId)?._id; } private mapPreferences(preferences: PreferencesEntity[]): { diff --git a/apps/api/src/app/workflows-v2/workflow.controller.e2e.ts b/apps/api/src/app/workflows-v2/workflow.controller.e2e.ts index 30bd7ddc84d..5ed9e099fcc 100644 --- a/apps/api/src/app/workflows-v2/workflow.controller.e2e.ts +++ b/apps/api/src/app/workflows-v2/workflow.controller.e2e.ts @@ -447,6 +447,9 @@ describe('Workflow Controller E2E API Testing', () => { it('should promote by creating a new workflow in production environment with the same properties', async () => { // Create a workflow in the development environment const devWorkflow = await createWorkflowAndValidate('-promote-workflow'); + await workflowsClient.patchWorkflowStepData(devWorkflow._id, devWorkflow.steps[0]._id, { + controlValues: { vinyl: 'vinyl', color: 'red', band: 'beatles' }, + }); // Switch to production environment and get its ID const devEnvironmentId = session.environment._id; diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index eb3c4869c5b..cc8f78c7a9c 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -1,7 +1,7 @@ { "name": "@novu/dashboard", "private": true, - "version": "0.0.1", + "version": "2.1.0", "type": "module", "scripts": { "start": "vite", @@ -116,5 +116,10 @@ }, "peerDependencies": { "@novu/web": "workspace:*" + }, + "nx": { + "tags": [ + "type:app" + ] } } diff --git a/apps/dashboard/src/components/workflow-editor/test-workflow/test-workflow-tabs.tsx b/apps/dashboard/src/components/workflow-editor/test-workflow/test-workflow-tabs.tsx index f0420842404..843d52a7a34 100644 --- a/apps/dashboard/src/components/workflow-editor/test-workflow/test-workflow-tabs.tsx +++ b/apps/dashboard/src/components/workflow-editor/test-workflow/test-workflow-tabs.tsx @@ -53,12 +53,14 @@ export const TestWorkflowTabs = ({ testData }: { testData: WorkflowTestDataRespo <>
- Test workflow triggered successfully - {`Test workflow ${workflowSlug} was triggered successfully`} + Test workflow succeeded + + Workflow {workflow?.name} was triggered successfully. + View activity feed diff --git a/apps/inbound-mail/package.json b/apps/inbound-mail/package.json index d8a7c63b4ba..6233289ef36 100644 --- a/apps/inbound-mail/package.json +++ b/apps/inbound-mail/package.json @@ -1,6 +1,6 @@ { "name": "@novu/inbound-mail", - "version": "2.0.2", + "version": "2.1.0", "description": "", "author": "", "private": true, @@ -62,5 +62,10 @@ "ts-node": "~10.9.1", "tsconfig-paths": "~4.1.0", "typescript": "5.6.2" + }, + "nx": { + "tags": [ + "type:app" + ] } } diff --git a/apps/web/package.json b/apps/web/package.json index 345fbb360f3..38dfccb4912 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,6 +1,6 @@ { "name": "@novu/web", - "version": "2.0.2", + "version": "2.1.0", "private": true, "scripts": { "start": "pnpm panda --watch & cross-env NODE_OPTIONS=--max_old_space_size=8192 DISABLE_ESLINT_PLUGIN=true PORT=4200 react-app-rewired start", @@ -207,5 +207,10 @@ } } ] + }, + "nx": { + "tags": [ + "type:app" + ] } } diff --git a/apps/webhook/package.json b/apps/webhook/package.json index 48a094e7556..4e4cb169ac4 100644 --- a/apps/webhook/package.json +++ b/apps/webhook/package.json @@ -1,6 +1,6 @@ { "name": "@novu/webhook", - "version": "2.0.2", + "version": "2.1.0", "description": "", "author": "", "private": true, @@ -79,5 +79,10 @@ "@nestjs/platform-socket.io", "@nestjs/platform-socket.io/**" ] + }, + "nx": { + "tags": [ + "type:app" + ] } } diff --git a/apps/widget/package.json b/apps/widget/package.json index f8b27b1b06f..cdd5d6a3b47 100644 --- a/apps/widget/package.json +++ b/apps/widget/package.json @@ -1,6 +1,6 @@ { "name": "@novu/widget", - "version": "2.0.2", + "version": "2.1.0", "private": true, "scripts": { "start": "DISABLE_ESLINT_PLUGIN=true react-app-rewired start", @@ -121,5 +121,10 @@ "**/@babel", "**/@babel/**" ] + }, + "nx": { + "tags": [ + "type:app" + ] } } diff --git a/apps/worker/package.json b/apps/worker/package.json index 1bd301f19d4..51d66911c9f 100644 --- a/apps/worker/package.json +++ b/apps/worker/package.json @@ -1,6 +1,6 @@ { "name": "@novu/worker", - "version": "2.0.2", + "version": "2.1.0", "description": "description", "author": "", "private": "true", @@ -92,5 +92,10 @@ "@novu/ee-billing": "workspace:*", "@novu/ee-shared-services": "workspace:*", "@novu/ee-translation": "workspace:*" + }, + "nx": { + "tags": [ + "type:app" + ] } } diff --git a/apps/ws/package.json b/apps/ws/package.json index 2e3c844c85c..24dfb66b00a 100644 --- a/apps/ws/package.json +++ b/apps/ws/package.json @@ -1,6 +1,6 @@ { "name": "@novu/ws", - "version": "2.0.2", + "version": "2.1.0", "description": "", "author": "", "private": true, @@ -84,5 +84,10 @@ "@nestjs/platform-socket.io", "@nestjs/platform-socket.io/**" ] + }, + "nx": { + "tags": [ + "type:app" + ] } } diff --git a/enterprise/packages/auth/package.json b/enterprise/packages/auth/package.json index 57f11d7bfbb..5108e2c2a6a 100644 --- a/enterprise/packages/auth/package.json +++ b/enterprise/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@novu/ee-auth", - "version": "2.0.2", + "version": "2.0.6", "private": true, "main": "dist/index.js", "scripts": { diff --git a/enterprise/packages/billing/package.json b/enterprise/packages/billing/package.json index 842ad95228b..2116fb0129a 100644 --- a/enterprise/packages/billing/package.json +++ b/enterprise/packages/billing/package.json @@ -1,6 +1,6 @@ { "name": "@novu/ee-billing", - "version": "2.0.2", + "version": "2.0.8", "private": true, "main": "dist/index.js", "scripts": { diff --git a/enterprise/packages/dal/package.json b/enterprise/packages/dal/package.json index 823517de0ed..10af7b55db1 100644 --- a/enterprise/packages/dal/package.json +++ b/enterprise/packages/dal/package.json @@ -1,6 +1,6 @@ { "name": "@novu/ee-dal", - "version": "2.0.2", + "version": "2.0.3", "description": "", "private": true, "scripts": { diff --git a/enterprise/packages/shared-services/package.json b/enterprise/packages/shared-services/package.json index 86dfd4f04dd..cf5c67b5bfe 100644 --- a/enterprise/packages/shared-services/package.json +++ b/enterprise/packages/shared-services/package.json @@ -1,6 +1,6 @@ { "name": "@novu/ee-shared-services", - "version": "2.0.2", + "version": "2.0.3", "description": "Generic service used inside of Novu's different services - can not be depended on application-generic", "main": "build/main/index.js", "typings": "build/main/index.d.ts", diff --git a/enterprise/packages/translation/package.json b/enterprise/packages/translation/package.json index 436b534d64d..dbbffb80795 100644 --- a/enterprise/packages/translation/package.json +++ b/enterprise/packages/translation/package.json @@ -1,6 +1,6 @@ { "name": "@novu/ee-translation", - "version": "2.0.2", + "version": "2.0.6", "private": true, "main": "dist/index.js", "scripts": { diff --git a/lerna.json b/lerna.json index 5fc3035b39e..81c41ba6d76 100644 --- a/lerna.json +++ b/lerna.json @@ -15,5 +15,5 @@ "message": "chore(release): publish - ci skip" } }, - "version": "2.0.1" + "version": "2.1.0" } diff --git a/libs/application-generic/package.json b/libs/application-generic/package.json index b79b372d822..faf83470213 100644 --- a/libs/application-generic/package.json +++ b/libs/application-generic/package.json @@ -1,6 +1,6 @@ { "name": "@novu/application-generic", - "version": "2.0.2", + "version": "2.0.6", "description": "Generic backend code used inside of Novu's different services", "main": "build/main/index.js", "typings": "build/main/index.d.ts", diff --git a/libs/dal/package.json b/libs/dal/package.json index 35bb3ca02a2..0d782b4dc0f 100644 --- a/libs/dal/package.json +++ b/libs/dal/package.json @@ -1,6 +1,6 @@ { "name": "@novu/dal", - "version": "2.0.2", + "version": "2.0.3", "description": "", "private": true, "scripts": { diff --git a/libs/design-system/package.json b/libs/design-system/package.json index 39910b3b35b..b81f1f4f1c8 100644 --- a/libs/design-system/package.json +++ b/libs/design-system/package.json @@ -1,6 +1,6 @@ { "name": "@novu/design-system", - "version": "2.0.2", + "version": "2.0.3", "repository": "https://github.com/novuhq/novu", "description": "", "private": true, diff --git a/libs/embed/package.json b/libs/embed/package.json index 562b6a24e50..7c775fc8c9b 100644 --- a/libs/embed/package.json +++ b/libs/embed/package.json @@ -1,6 +1,6 @@ { "name": "@novu/embed", - "version": "2.0.2", + "version": "2.0.4", "private": true, "description": "", "keywords": [], diff --git a/libs/notifications/package.json b/libs/notifications/package.json index 702b5e4f1df..ebf070461f6 100644 --- a/libs/notifications/package.json +++ b/libs/notifications/package.json @@ -1,6 +1,6 @@ { "name": "@novu/notifications", - "version": "1.0.1", + "version": "1.0.4", "description": "Novu notification templates and workflows", "main": "build/main/index.js", "typings": "build/main/index.d.ts", diff --git a/libs/testing/package.json b/libs/testing/package.json index e4d322f5fb5..f666360f918 100644 --- a/libs/testing/package.json +++ b/libs/testing/package.json @@ -1,6 +1,6 @@ { "name": "@novu/testing", - "version": "2.0.2", + "version": "2.0.3", "description": "", "private": true, "scripts": { diff --git a/nx.json b/nx.json index 05c2b8370ab..ebadc5f9821 100644 --- a/nx.json +++ b/nx.json @@ -18,27 +18,51 @@ "extends": "@nx/workspace/presets/npm.json", "release": { "changelog": { - "workspaceChangelog": true, + "workspaceChangelog": false, "projectChangelogs": true }, - "projects": [ - "novu", - "@novu/client", - "@novu/framework", - "@novu/headless", - "@novu/js", - "@novu/react", - "@novu/react-native", - "@novu/nextjs", - "@novu/node", - "@novu/providers", - "@novu/shared", - "@novu/stateless" - ], "projectsRelationship": "independent", - "version": { - "generatorOptions": { - "preserveLocalDependencyProtocols": true + "conventionalCommits": true, + "groups": { + "apps": { + "projects": [ + "@novu/api", + "@novu/dashboard", + "@novu/inbound-mail", + "@novu/web", + "@novu/webhook", + "@novu/widget", + "@novu/worker", + "@novu/ws" + ], + "projectsRelationship": "independent", + "version": { + "generatorOptions": { + "preserveLocalDependencyProtocols": true + } + } + }, + "packages": { + "projects": [ + "novu", + "@novu/client", + "@novu/framework", + "@novu/headless", + "@novu/js", + "@novu/react", + "@novu/react-native", + "@novu/nextjs", + "@novu/node", + "@novu/providers", + "@novu/shared", + "@novu/stateless" + ], + "projectsRelationship": "independent", + "version": { + "generatorOptions": { + "preserveLocalDependencyProtocols": true + } + } } } }, diff --git a/package.json b/package.json index daaf01de9d1..0956d2d880c 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "build:dashboard": "nx build @novu/dashboard", "build:embed": "nx build @novu/embed", "build:inbound-mail": "nx build @novu/inbound-mail", + "build:packages": "nx run-many --target=build --all --projects=tag:type:package", "build:storybook": "nx run @novu/design-system:build-storybook", "build:web:for-dashboard": "nx build:web:for-dashboard @novu/web", "build:web": "nx build @novu/web", @@ -38,9 +39,10 @@ "pnpm-context": "node scripts/pnpm-context.mjs", "prebuild": "nx run-many --target=prebuild --all", "preinstall": "npx only-allow pnpm", - "preview:pkg:build": "nx affected -t build --base=origin/next --head=HEAD --exclude='*,!tag:package:public'", + "preview:pkg:build": "nx affected -t build --base=origin/next --head=HEAD --exclude='*,!tag:type:package'", "preview:pkg:publish": "node scripts/publish-preview-packages.mjs", "release": "node scripts/release.mjs", + "release:version:apps": "nx release version --projects=tag:type:app", "setup:project": "npx --yes pnpm@9.11.0 i && node scripts/setup-env-files.js && pnpm build", "start:api:dev": "cross-env nx run @novu/api:start:dev", "start:api:test": "cross-env nx run-many --target=start:test --projects=@novu/api", @@ -82,12 +84,11 @@ "@eslint/compat": "^1.1.1", "@eslint/eslintrc": "^3.1.0", "@eslint/js": "^9.9.1", - "nx": "20.1.2", + "@nx/eslint": "20.1.2", "@nx/eslint-plugin": "20.1.2", "@nx/jest": "20.1.2", - "@nx/eslint": "20.1.2", - "@nx/workspace": "20.1.2", "@nx/plugin": "20.1.2", + "@nx/workspace": "20.1.2", "@octokit/core": "^4.0.0", "@pandacss/eslint-plugin": "^0.1.9", "@pnpm/filter-workspace-packages": "^7.0.6", @@ -167,6 +168,8 @@ "markdownlint-cli": "^0.33.0", "meow": "^10.1.3", "mississippi": "^4.0.0", + "nx": "20.1.2", + "nx-cloud": "19.1.0", "ora": "~5.4.1", "pkg-pr-new": "^0.0.24", "pnpm": "9.11.0", @@ -181,7 +184,7 @@ "typescript": "5.6.2", "typescript-eslint": "^8.3.0", "wait-port": "^0.3.0", - "nx-cloud": "19.1.0" + "yargs": "^17.7.2" }, "workspaces": { "packages": [ @@ -238,6 +241,6 @@ "@types/mocha": "^10.0.8", "rollup@>=4.0.0 <4.22.4": "^4.22.4", "@nestjs/common@>=10.0.0 <11.0.0": "10.4.1" + } } } -} diff --git a/packages/client/CHANGELOG.md b/packages/client/CHANGELOG.md index 686bd19cd5f..f1647f4472a 100644 --- a/packages/client/CHANGELOG.md +++ b/packages/client/CHANGELOG.md @@ -1,3 +1,26 @@ +## 2.0.3 (2024-11-26) + +### šŸš€ Features + +- **dashboard:** Codemirror liquid filter support ([#7122](https://github.com/novuhq/novu/pull/7122)) +- **root:** add support chat app ID to environment variables in dā€¦ ([#7120](https://github.com/novuhq/novu/pull/7120)) +- **root:** Add base Dockerfile for GHCR with Node.js and dependencies ([#7100](https://github.com/novuhq/novu/pull/7100)) + +### šŸ©¹ Fixes + +- **api:** Migrate subscriber global preferences before workflow preferences ([#7118](https://github.com/novuhq/novu/pull/7118)) +- **api, dal, framework:** fix the uneven and unused dependencies ([#7103](https://github.com/novuhq/novu/pull/7103)) + +### šŸ§± Updated Dependencies + +- Updated @novu/shared to 2.1.4 + +### ā¤ļø Thank You + +- George Desipris @desiprisg +- Himanshu Garg @merrcury +- Richard Fontein @rifont + ## 2.0.2 (2024-11-19) ### šŸš€ Features diff --git a/packages/client/package.json b/packages/client/package.json index e5a41e624bb..4c58d9ad194 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@novu/client", - "version": "2.0.2", + "version": "2.0.3", "repository": "https://github.com/novuhq/novu", "description": "API client to be used in end user environments", "main": "dist/cjs/index.js", @@ -62,7 +62,7 @@ }, "nx": { "tags": [ - "package:public" + "type:package" ] } } diff --git a/packages/framework/CHANGELOG.md b/packages/framework/CHANGELOG.md index 57aac3652b8..ddf51d553ca 100644 --- a/packages/framework/CHANGELOG.md +++ b/packages/framework/CHANGELOG.md @@ -1,3 +1,26 @@ +## 2.5.2 (2024-11-26) + +### šŸš€ Features + +- **dashboard:** Codemirror liquid filter support ([#7122](https://github.com/novuhq/novu/pull/7122)) +- **root:** add support chat app ID to environment variables in dā€¦ ([#7120](https://github.com/novuhq/novu/pull/7120)) +- **root:** Add base Dockerfile for GHCR with Node.js and dependencies ([#7100](https://github.com/novuhq/novu/pull/7100)) + +### šŸ©¹ Fixes + +- **api:** Migrate subscriber global preferences before workflow preferences ([#7118](https://github.com/novuhq/novu/pull/7118)) +- **api, dal, framework:** fix the uneven and unused dependencies ([#7103](https://github.com/novuhq/novu/pull/7103)) + +### šŸ§± Updated Dependencies + +- Updated @novu/shared to 2.1.4 + +### ā¤ļø Thank You + +- George Desipris @desiprisg +- Himanshu Garg @merrcury +- Richard Fontein @rifont + ## 2.0.2 (2024-11-19) ### šŸš€ Features diff --git a/packages/framework/package.json b/packages/framework/package.json index 48856725695..041953b43dc 100644 --- a/packages/framework/package.json +++ b/packages/framework/package.json @@ -1,6 +1,6 @@ { "name": "@novu/framework", - "version": "2.5.1", + "version": "2.5.2", "description": "The Code-First Notifications Workflow SDK.", "main": "./dist/cjs/index.cjs", "types": "./dist/cjs/index.d.cts", @@ -244,7 +244,7 @@ }, "nx": { "tags": [ - "package:public" + "type:package" ] } } diff --git a/packages/headless/CHANGELOG.md b/packages/headless/CHANGELOG.md index c5a8a9feea9..3a6d2c97c05 100644 --- a/packages/headless/CHANGELOG.md +++ b/packages/headless/CHANGELOG.md @@ -1,3 +1,27 @@ +## 2.0.3 (2024-11-26) + +### šŸš€ Features + +- **dashboard:** Codemirror liquid filter support ([#7122](https://github.com/novuhq/novu/pull/7122)) +- **root:** add support chat app ID to environment variables in dā€¦ ([#7120](https://github.com/novuhq/novu/pull/7120)) +- **root:** Add base Dockerfile for GHCR with Node.js and dependencies ([#7100](https://github.com/novuhq/novu/pull/7100)) + +### šŸ©¹ Fixes + +- **api:** Migrate subscriber global preferences before workflow preferences ([#7118](https://github.com/novuhq/novu/pull/7118)) +- **api, dal, framework:** fix the uneven and unused dependencies ([#7103](https://github.com/novuhq/novu/pull/7103)) + +### šŸ§± Updated Dependencies + +- Updated @novu/client to 2.0.3 +- Updated @novu/shared to 2.1.4 + +### ā¤ļø Thank You + +- George Desipris @desiprisg +- Himanshu Garg @merrcury +- Richard Fontein @rifont + ## 2.0.2 (2024-11-19) ### šŸš€ Features diff --git a/packages/headless/package.json b/packages/headless/package.json index e93bd7b03a3..e0a3c5120ac 100644 --- a/packages/headless/package.json +++ b/packages/headless/package.json @@ -1,6 +1,6 @@ { "name": "@novu/headless", - "version": "2.0.2", + "version": "2.0.3", "repository": "https://github.com/novuhq/novu", "description": "Headless client package that is a thin abstraction layer over the API client + state and socket management", "keywords": [], @@ -49,7 +49,7 @@ }, "nx": { "tags": [ - "package:public" + "type:package" ] } } diff --git a/packages/js/CHANGELOG.md b/packages/js/CHANGELOG.md index 54f2cf4ed67..4826f611fe5 100644 --- a/packages/js/CHANGELOG.md +++ b/packages/js/CHANGELOG.md @@ -1,3 +1,30 @@ +## 2.6.3 (2024-11-26) + +### šŸš€ Features + +- **dashboard:** Add test inbox for full E2E test journey ([#7117](https://github.com/novuhq/novu/pull/7117)) +- **js:** Popover props ([#7112](https://github.com/novuhq/novu/pull/7112)) +- **dashboard:** Codemirror liquid filter support ([#7122](https://github.com/novuhq/novu/pull/7122)) +- **root:** add support chat app ID to environment variables in dā€¦ ([#7120](https://github.com/novuhq/novu/pull/7120)) +- **root:** Add base Dockerfile for GHCR with Node.js and dependencies ([#7100](https://github.com/novuhq/novu/pull/7100)) + +### šŸ©¹ Fixes + +- **js:** Truncate workflow name and center empty notifications text ([#7123](https://github.com/novuhq/novu/pull/7123)) +- **api:** Migrate subscriber global preferences before workflow preferences ([#7118](https://github.com/novuhq/novu/pull/7118)) +- **api, dal, framework:** fix the uneven and unused dependencies ([#7103](https://github.com/novuhq/novu/pull/7103)) + +### šŸ§± Updated Dependencies + +- Updated @novu/client to 2.0.3 + +### ā¤ļø Thank You + +- Biswajeet Das @BiswaViraj +- George Desipris @desiprisg +- Himanshu Garg @merrcury +- Richard Fontein @rifont + ## 2.0.2 (2024-11-19) ### šŸš€ Features diff --git a/packages/js/package.json b/packages/js/package.json index c7b76722734..18b739b6201 100644 --- a/packages/js/package.json +++ b/packages/js/package.json @@ -1,6 +1,6 @@ { "name": "@novu/js", - "version": "2.6.1", + "version": "2.6.3", "repository": "https://github.com/novuhq/novu", "description": "Novu's JavaScript SDK for building custom inbox notification experiences", "author": "", @@ -138,7 +138,7 @@ }, "nx": { "tags": [ - "package:public" + "type:package" ] } } diff --git a/packages/nest/package.json b/packages/nest/package.json index 4df4601469f..d0c65d6d1d8 100644 --- a/packages/nest/package.json +++ b/packages/nest/package.json @@ -1,6 +1,6 @@ { "name": "@novu/nest", - "version": "2.0.1", + "version": "2.0.2", "description": "A nestjs wrapper for novu", "main": "build/main/index.js", "typings": "build/main/index.d.ts", @@ -84,10 +84,5 @@ "exclude": [ "**/*.spec.js" ] - }, - "nx": { - "tags": [ - "package:public" - ] } } diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index bb61bb05587..c5994db36fa 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,3 +1,26 @@ +## 2.6.3 (2024-11-26) + +### šŸš€ Features + +- **dashboard:** Codemirror liquid filter support ([#7122](https://github.com/novuhq/novu/pull/7122)) +- **root:** add support chat app ID to environment variables in dā€¦ ([#7120](https://github.com/novuhq/novu/pull/7120)) +- **root:** Add base Dockerfile for GHCR with Node.js and dependencies ([#7100](https://github.com/novuhq/novu/pull/7100)) + +### šŸ©¹ Fixes + +- **api:** Migrate subscriber global preferences before workflow preferences ([#7118](https://github.com/novuhq/novu/pull/7118)) +- **api, dal, framework:** fix the uneven and unused dependencies ([#7103](https://github.com/novuhq/novu/pull/7103)) + +### šŸ§± Updated Dependencies + +- Updated @novu/react to 2.6.2 + +### ā¤ļø Thank You + +- George Desipris @desiprisg +- Himanshu Garg @merrcury +- Richard Fontein @rifont + ## 2.0.2 (2024-11-19) ### šŸš€ Features diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 04dbd148d20..771f07deedb 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@novu/nextjs", - "version": "2.6.1", + "version": "2.6.3", "repository": "https://github.com/novuhq/novu", "description": "Novu's Next.js SDK for building custom inbox notification experiences", "author": "", @@ -93,6 +93,8 @@ "@novu/react": "workspace:*" }, "nx": { - "tags": ["package:public"] + "tags": [ + "type:package" + ] } } diff --git a/packages/node/CHANGELOG.md b/packages/node/CHANGELOG.md index 176044f1284..1a68cd451e3 100644 --- a/packages/node/CHANGELOG.md +++ b/packages/node/CHANGELOG.md @@ -1,3 +1,26 @@ +## 2.0.3 (2024-11-26) + +### šŸš€ Features + +- **dashboard:** Codemirror liquid filter support ([#7122](https://github.com/novuhq/novu/pull/7122)) +- **root:** add support chat app ID to environment variables in dā€¦ ([#7120](https://github.com/novuhq/novu/pull/7120)) +- **root:** Add base Dockerfile for GHCR with Node.js and dependencies ([#7100](https://github.com/novuhq/novu/pull/7100)) + +### šŸ©¹ Fixes + +- **api:** Migrate subscriber global preferences before workflow preferences ([#7118](https://github.com/novuhq/novu/pull/7118)) +- **api, dal, framework:** fix the uneven and unused dependencies ([#7103](https://github.com/novuhq/novu/pull/7103)) + +### šŸ§± Updated Dependencies + +- Updated @novu/shared to 2.1.4 + +### ā¤ļø Thank You + +- George Desipris @desiprisg +- Himanshu Garg @merrcury +- Richard Fontein @rifont + ## 2.0.2 (2024-11-19) ### šŸš€ Features diff --git a/packages/node/package.json b/packages/node/package.json index c477de7a8e8..82c072dd4be 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -1,6 +1,6 @@ { "name": "@novu/node", - "version": "2.0.2", + "version": "2.0.3", "description": "Notification Management Framework", "main": "build/main/index.js", "typings": "build/main/index.d.ts", @@ -81,7 +81,7 @@ }, "nx": { "tags": [ - "package:public" + "type:package" ] } } diff --git a/packages/notification-center-angular/package.json b/packages/notification-center-angular/package.json index 1e629068548..e493374618d 100644 --- a/packages/notification-center-angular/package.json +++ b/packages/notification-center-angular/package.json @@ -40,7 +40,7 @@ }, "nx": { "tags": [ - "package:public" + "type:package" ] } } diff --git a/packages/notification-center-vue/package.json b/packages/notification-center-vue/package.json index a0d60305f43..aed527b67ea 100644 --- a/packages/notification-center-vue/package.json +++ b/packages/notification-center-vue/package.json @@ -53,7 +53,7 @@ }, "nx": { "tags": [ - "package:public" + "type:package" ] } } diff --git a/packages/notification-center/package.json b/packages/notification-center/package.json index 36431a66982..5ebc37b889f 100644 --- a/packages/notification-center/package.json +++ b/packages/notification-center/package.json @@ -1,6 +1,6 @@ { "name": "@novu/notification-center", - "version": "2.0.2", + "version": "2.0.4", "repository": "https://github.com/novuhq/novu", "description": "", "scripts": { @@ -92,10 +92,5 @@ "socket.io-client": "4.7.2", "tslib": "^2.3.1", "webfontloader": "^1.6.28" - }, - "nx": { - "tags": [ - "package:public" - ] } } diff --git a/packages/novu/CHANGELOG.md b/packages/novu/CHANGELOG.md index 4fe91da8a03..1d190b66e49 100644 --- a/packages/novu/CHANGELOG.md +++ b/packages/novu/CHANGELOG.md @@ -1,3 +1,26 @@ +## 2.2.1 (2024-11-26) + +### šŸš€ Features + +- **dashboard:** Codemirror liquid filter support ([#7122](https://github.com/novuhq/novu/pull/7122)) +- **root:** add support chat app ID to environment variables in dā€¦ ([#7120](https://github.com/novuhq/novu/pull/7120)) +- **root:** Add base Dockerfile for GHCR with Node.js and dependencies ([#7100](https://github.com/novuhq/novu/pull/7100)) + +### šŸ©¹ Fixes + +- **api:** Migrate subscriber global preferences before workflow preferences ([#7118](https://github.com/novuhq/novu/pull/7118)) +- **api, dal, framework:** fix the uneven and unused dependencies ([#7103](https://github.com/novuhq/novu/pull/7103)) + +### šŸ§± Updated Dependencies + +- Updated @novu/shared to 2.1.4 + +### ā¤ļø Thank You + +- George Desipris @desiprisg +- Himanshu Garg @merrcury +- Richard Fontein @rifont + ## 2.0.2 (2024-11-19) ### šŸš€ Features diff --git a/packages/novu/package.json b/packages/novu/package.json index f9a53964ba0..f097b1b1a1a 100644 --- a/packages/novu/package.json +++ b/packages/novu/package.json @@ -1,6 +1,6 @@ { "name": "novu", - "version": "2.2.0", + "version": "2.2.1", "description": "Novu CLI. Run Novu Studio and sync workflows with Novu Cloud", "main": "src/index.js", "publishConfig": { @@ -91,6 +91,8 @@ "async-sema": "3.0.1" }, "nx": { - "tags": ["package:public"] + "tags": [ + "type:package" + ] } } diff --git a/packages/providers/CHANGELOG.md b/packages/providers/CHANGELOG.md index 9c811cae6f4..29482d51584 100644 --- a/packages/providers/CHANGELOG.md +++ b/packages/providers/CHANGELOG.md @@ -1,3 +1,27 @@ +## 2.0.3 (2024-11-26) + +### šŸš€ Features + +- **dashboard:** Codemirror liquid filter support ([#7122](https://github.com/novuhq/novu/pull/7122)) +- **root:** add support chat app ID to environment variables in dā€¦ ([#7120](https://github.com/novuhq/novu/pull/7120)) +- **root:** Add base Dockerfile for GHCR with Node.js and dependencies ([#7100](https://github.com/novuhq/novu/pull/7100)) + +### šŸ©¹ Fixes + +- **api:** Migrate subscriber global preferences before workflow preferences ([#7118](https://github.com/novuhq/novu/pull/7118)) +- **api, dal, framework:** fix the uneven and unused dependencies ([#7103](https://github.com/novuhq/novu/pull/7103)) + +### šŸ§± Updated Dependencies + +- Updated @novu/shared to 2.1.4 +- Updated @novu/stateless to 2.0.2 + +### ā¤ļø Thank You + +- George Desipris @desiprisg +- Himanshu Garg @merrcury +- Richard Fontein @rifont + ## 2.0.2 (2024-11-19) ### šŸš€ Features diff --git a/packages/providers/package.json b/packages/providers/package.json index 0c666784fbd..c861680fbd0 100644 --- a/packages/providers/package.json +++ b/packages/providers/package.json @@ -1,6 +1,6 @@ { "name": "@novu/providers", - "version": "2.0.2", + "version": "2.0.3", "description": "Novu Provider Wrappers", "main": "build/main/index.js", "typings": "build/main/index.d.ts", @@ -114,7 +114,7 @@ }, "nx": { "tags": [ - "package:public" + "type:package" ] } } diff --git a/packages/react-native/CHANGELOG.md b/packages/react-native/CHANGELOG.md index 620177da3ae..fb4f71b288e 100644 --- a/packages/react-native/CHANGELOG.md +++ b/packages/react-native/CHANGELOG.md @@ -1,3 +1,26 @@ +## 2.3.3 (2024-11-26) + +### šŸš€ Features + +- **dashboard:** Codemirror liquid filter support ([#7122](https://github.com/novuhq/novu/pull/7122)) +- **root:** add support chat app ID to environment variables in dā€¦ ([#7120](https://github.com/novuhq/novu/pull/7120)) +- **root:** Add base Dockerfile for GHCR with Node.js and dependencies ([#7100](https://github.com/novuhq/novu/pull/7100)) + +### šŸ©¹ Fixes + +- **api:** Migrate subscriber global preferences before workflow preferences ([#7118](https://github.com/novuhq/novu/pull/7118)) +- **api, dal, framework:** fix the uneven and unused dependencies ([#7103](https://github.com/novuhq/novu/pull/7103)) + +### šŸ§± Updated Dependencies + +- Updated @novu/react to 2.6.2 + +### ā¤ļø Thank You + +- George Desipris @desiprisg +- Himanshu Garg @merrcury +- Richard Fontein @rifont + ## 2.0.2 (2024-11-19) ### šŸš€ Features diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 4987a3daebe..be21651b818 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@novu/react-native", - "version": "2.3.1", + "version": "2.3.3", "repository": "https://github.com/novuhq/novu", "description": "Novu's React Native SDK for building custom inbox notification experiences", "author": "", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 992b44d9705..d12c4018525 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,3 +1,28 @@ +## 2.6.2 (2024-11-26) + +### šŸš€ Features + +- **js:** Popover props ([#7112](https://github.com/novuhq/novu/pull/7112)) +- **dashboard:** Codemirror liquid filter support ([#7122](https://github.com/novuhq/novu/pull/7122)) +- **root:** add support chat app ID to environment variables in dā€¦ ([#7120](https://github.com/novuhq/novu/pull/7120)) +- **root:** Add base Dockerfile for GHCR with Node.js and dependencies ([#7100](https://github.com/novuhq/novu/pull/7100)) + +### šŸ©¹ Fixes + +- **api:** Migrate subscriber global preferences before workflow preferences ([#7118](https://github.com/novuhq/novu/pull/7118)) +- **api, dal, framework:** fix the uneven and unused dependencies ([#7103](https://github.com/novuhq/novu/pull/7103)) + +### šŸ§± Updated Dependencies + +- Updated @novu/js to 2.6.3 + +### ā¤ļø Thank You + +- Biswajeet Das @BiswaViraj +- George Desipris @desiprisg +- Himanshu Garg @merrcury +- Richard Fontein @rifont + ## 2.0.2 (2024-11-19) ### šŸš€ Features diff --git a/packages/react/package.json b/packages/react/package.json index 33eee332140..716289f34ec 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@novu/react", - "version": "2.6.0", + "version": "2.6.2", "repository": "https://github.com/novuhq/novu", "description": "Novu's React SDK for building custom inbox notification experiences", "author": "", @@ -97,6 +97,8 @@ "@novu/js": "workspace:*" }, "nx": { - "tags": ["package:public"] + "tags": [ + "type:package" + ] } } diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md index 50acec1f124..3de8198ccd0 100644 --- a/packages/shared/CHANGELOG.md +++ b/packages/shared/CHANGELOG.md @@ -1,3 +1,27 @@ +## 2.1.4 (2024-11-26) + +### šŸš€ Features + +- **dashboard:** Codemirror liquid filter support ([#7122](https://github.com/novuhq/novu/pull/7122)) +- **root:** add support chat app ID to environment variables in dā€¦ ([#7120](https://github.com/novuhq/novu/pull/7120)) +- **worker:** add defer duration validation ([#7088](https://github.com/novuhq/novu/pull/7088)) +- **root:** Add base Dockerfile for GHCR with Node.js and dependencies ([#7100](https://github.com/novuhq/novu/pull/7100)) + +### šŸ©¹ Fixes + +- **api:** Migrate subscriber global preferences before workflow preferences ([#7118](https://github.com/novuhq/novu/pull/7118)) +- **api:** Nv 4836 v2 dashboard workflows show error in old dashboard ([#7106](https://github.com/novuhq/novu/pull/7106)) +- **api, dal, framework:** fix the uneven and unused dependencies ([#7103](https://github.com/novuhq/novu/pull/7103)) +- **api:** Nv 4823 no validation around bad urls + 400 in client ([#7092](https://github.com/novuhq/novu/pull/7092)) + +### ā¤ļø Thank You + +- GalTidhar @tatarco +- George Desipris @desiprisg +- George Djabarov @djabarovgeorge +- Himanshu Garg @merrcury +- Richard Fontein @rifont + ## 2.0.2 (2024-11-19) ### šŸš€ Features diff --git a/packages/shared/package.json b/packages/shared/package.json index 8f2158bc57e..ab4aad41454 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@novu/shared", - "version": "2.1.3", + "version": "2.1.4", "description": "", "scripts": { "start": "npm run start:dev", @@ -44,7 +44,7 @@ }, "nx": { "tags": [ - "package:public" + "type:package" ] } } diff --git a/packages/stateless/package.json b/packages/stateless/package.json index c34467f063e..71dfbac156a 100644 --- a/packages/stateless/package.json +++ b/packages/stateless/package.json @@ -1,6 +1,6 @@ { "name": "@novu/stateless", - "version": "2.0.1", + "version": "2.0.2", "description": "Notification Management Framework", "main": "build/main/index.js", "typings": "build/main/index.d.ts", @@ -75,7 +75,7 @@ }, "nx": { "tags": [ - "package:public" + "type:package" ] } } diff --git a/playground/nestjs/package.json b/playground/nestjs/package.json index 44401ec9481..b755346ed05 100644 --- a/playground/nestjs/package.json +++ b/playground/nestjs/package.json @@ -1,6 +1,6 @@ { "name": "nestjs", - "version": "0.0.2", + "version": "0.0.4", "description": "", "author": "", "private": true, diff --git a/playground/nextjs/package.json b/playground/nextjs/package.json index 99d0d786c2c..6243c51af3f 100644 --- a/playground/nextjs/package.json +++ b/playground/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "nextjs", - "version": "0.1.0", + "version": "0.1.2", "private": true, "scripts": { "dev": "next dev -p 4011", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2dc968dc3ff..28e98150b52 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -350,6 +350,9 @@ importers: wait-port: specifier: ^0.3.0 version: 0.3.1 + yargs: + specifier: ^17.7.2 + version: 17.7.2 apps/api: dependencies: @@ -35314,8 +35317,8 @@ snapshots: dependencies: '@aws-crypto/sha256-browser': 3.0.0 '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sso-oidc': 3.575.0(@aws-sdk/client-sts@3.575.0) - '@aws-sdk/client-sts': 3.575.0 + '@aws-sdk/client-sso-oidc': 3.575.0 + '@aws-sdk/client-sts': 3.575.0(@aws-sdk/client-sso-oidc@3.575.0) '@aws-sdk/core': 3.575.0 '@aws-sdk/credential-provider-node': 3.575.0(@aws-sdk/client-sso-oidc@3.575.0)(@aws-sdk/client-sts@3.575.0) '@aws-sdk/middleware-host-header': 3.575.0 @@ -35516,8 +35519,8 @@ snapshots: '@aws-crypto/sha1-browser': 3.0.0 '@aws-crypto/sha256-browser': 3.0.0 '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sso-oidc': 3.575.0(@aws-sdk/client-sts@3.575.0) - '@aws-sdk/client-sts': 3.575.0 + '@aws-sdk/client-sso-oidc': 3.575.0 + '@aws-sdk/client-sts': 3.575.0(@aws-sdk/client-sso-oidc@3.575.0) '@aws-sdk/core': 3.575.0 '@aws-sdk/credential-provider-node': 3.575.0(@aws-sdk/client-sso-oidc@3.575.0)(@aws-sdk/client-sts@3.575.0) '@aws-sdk/middleware-bucket-endpoint': 3.575.0 @@ -35743,11 +35746,11 @@ snapshots: - aws-crt optional: true - '@aws-sdk/client-sso-oidc@3.575.0(@aws-sdk/client-sts@3.575.0)': + '@aws-sdk/client-sso-oidc@3.575.0': dependencies: '@aws-crypto/sha256-browser': 3.0.0 '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.575.0 + '@aws-sdk/client-sts': 3.575.0(@aws-sdk/client-sso-oidc@3.575.0) '@aws-sdk/core': 3.575.0 '@aws-sdk/credential-provider-node': 3.575.0(@aws-sdk/client-sso-oidc@3.575.0)(@aws-sdk/client-sts@3.575.0) '@aws-sdk/middleware-host-header': 3.575.0 @@ -35786,7 +35789,6 @@ snapshots: '@smithy/util-utf8': 3.0.0 tslib: 2.7.0 transitivePeerDependencies: - - '@aws-sdk/client-sts' - aws-crt '@aws-sdk/client-sso-oidc@3.637.0(@aws-sdk/client-sts@3.637.0)': @@ -36171,11 +36173,11 @@ snapshots: - aws-crt optional: true - '@aws-sdk/client-sts@3.575.0': + '@aws-sdk/client-sts@3.575.0(@aws-sdk/client-sso-oidc@3.575.0)': dependencies: '@aws-crypto/sha256-browser': 3.0.0 '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sso-oidc': 3.575.0(@aws-sdk/client-sts@3.575.0) + '@aws-sdk/client-sso-oidc': 3.575.0 '@aws-sdk/core': 3.575.0 '@aws-sdk/credential-provider-node': 3.575.0(@aws-sdk/client-sso-oidc@3.575.0)(@aws-sdk/client-sts@3.575.0) '@aws-sdk/middleware-host-header': 3.575.0 @@ -36214,6 +36216,7 @@ snapshots: '@smithy/util-utf8': 3.0.0 tslib: 2.7.0 transitivePeerDependencies: + - '@aws-sdk/client-sso-oidc' - aws-crt '@aws-sdk/client-sts@3.637.0': @@ -36443,7 +36446,7 @@ snapshots: '@aws-sdk/credential-provider-ini@3.575.0(@aws-sdk/client-sso-oidc@3.575.0)(@aws-sdk/client-sts@3.575.0)': dependencies: - '@aws-sdk/client-sts': 3.575.0 + '@aws-sdk/client-sts': 3.575.0(@aws-sdk/client-sso-oidc@3.575.0) '@aws-sdk/credential-provider-env': 3.575.0 '@aws-sdk/credential-provider-process': 3.575.0 '@aws-sdk/credential-provider-sso': 3.575.0(@aws-sdk/client-sso-oidc@3.575.0) @@ -36754,7 +36757,7 @@ snapshots: '@aws-sdk/credential-provider-web-identity@3.575.0(@aws-sdk/client-sts@3.575.0)': dependencies: - '@aws-sdk/client-sts': 3.575.0 + '@aws-sdk/client-sts': 3.575.0(@aws-sdk/client-sso-oidc@3.575.0) '@aws-sdk/types': 3.575.0 '@smithy/property-provider': 3.1.3 '@smithy/types': 3.3.0 @@ -37275,7 +37278,7 @@ snapshots: '@aws-sdk/token-providers@3.575.0(@aws-sdk/client-sso-oidc@3.575.0)': dependencies: - '@aws-sdk/client-sso-oidc': 3.575.0(@aws-sdk/client-sts@3.575.0) + '@aws-sdk/client-sso-oidc': 3.575.0 '@aws-sdk/types': 3.575.0 '@smithy/property-provider': 3.1.3 '@smithy/shared-ini-file-loader': 3.1.4 @@ -37284,7 +37287,7 @@ snapshots: '@aws-sdk/token-providers@3.614.0(@aws-sdk/client-sso-oidc@3.575.0)': dependencies: - '@aws-sdk/client-sso-oidc': 3.575.0(@aws-sdk/client-sts@3.575.0) + '@aws-sdk/client-sso-oidc': 3.575.0 '@aws-sdk/types': 3.609.0 '@smithy/property-provider': 3.1.3 '@smithy/shared-ini-file-loader': 3.1.4 diff --git a/scripts/release.mjs b/scripts/release.mjs index 60eb1f4c91f..2f0f8286758 100644 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -1,46 +1,77 @@ +/** + * Release all packages in the monorepo. + * + * Usage: pnpm release + * + * Known issues: + * - nx release with independent versioning and updateDependents: "auto" increases patch by the amount of dependencies updated (https://github.com/nrwl/nx/issues/27823) + */ + +import { hideBin } from 'yargs/helpers'; import { releaseChangelog, releasePublish, releaseVersion } from 'nx/release/index.js'; +import inquirer from 'inquirer'; import yargs from 'yargs/yargs'; -import { hideBin } from 'yargs/helpers'; +import { execa } from 'execa'; (async () => { - const options = yargs(hideBin(process.argv)) + const { dryRun, verbose, ...rest } = yargs(hideBin(process.argv)) .version(false) - .option('version', { - description: 'Explicit version specifier to use, if overriding conventional commits', - type: 'string', - }) .option('dryRun', { alias: 'd', description: 'Whether or not to perform a dry-run of the release process, defaults to true', type: 'boolean', + default: true, }) .option('verbose', { description: 'Whether or not to enable verbose logging, defaults to false', type: 'boolean', default: false, }) + .help() .parse(); + const specifier = rest._[0]; + + if (!specifier) { + console.error('Missing version! Usage: pnpm release '); + process.exit(1); + } + const { workspaceVersion, projectsVersionData } = await releaseVersion({ - specifier: options.version, - dryRun: options.dryRun, - verbose: options.verbose, - projects: ['tag:package:public'], + projects: ['tag:type:package'], + specifier, + dryRun, + verbose, + firstRelease: false, }); await releaseChangelog({ + projects: ['tag:type:package'], + specifier, versionData: projectsVersionData, version: workspaceVersion, - dryRun: options.dryRun, - verbose: options.verbose, - projects: ['tag:package:public'], + dryRun, + verbose, }); - // The returned number value from releasePublish will be zero if all projects are published successfully, non-zero if not - const publishStatus = await releasePublish({ - dryRun: options.dryRun, - verbose: options.verbose, - projects: ['tag:package:public'], + await execa({ + stdout: process.stdout, + stderr: process.stderr, + })`pnpm run build:packages --skip-nx-cache`; + + const answers = await inquirer.prompt([ + { + type: 'input', + name: 'otp', + message: 'Enter NPM OTP:', + }, + ]); + + await releasePublish({ + projects: ['tag:type:package'], + specifier: 'patch', + dryRun, + verbose, + otp: answers.otp, }); - process.exit(publishStatus); })();