Skip to content

[notification-hubs] Use workspace specifiers for internal @azure/* deps#38845

Open
jeremymeng wants to merge 2 commits into
mainfrom
jeremymeng/notification-hubs-workspace-deps
Open

[notification-hubs] Use workspace specifiers for internal @azure/* deps#38845
jeremymeng wants to merge 2 commits into
mainfrom
jeremymeng/notification-hubs-workspace-deps

Conversation

@jeremymeng
Copy link
Copy Markdown
Member

@jeremymeng jeremymeng commented Jun 5, 2026

Use workspace:^ for @azure* runtime deps as well now that we won't bump package versions unless there are src/ changes.

Packages impacted by this PR

  • @azure/notification-hubs

Issues associated with this PR

N/A

Notes for reviewers

Two commits:

  1. Workspace deps swap - only touches sdk/notificationhubs/notification-hubs/package.json (and the lockfile). All 10 internal @azure-rest/* / @azure/* runtime deps move from caret ranges to workspace:^. tslib is left unchanged.
  2. Samples regeneration - running npx dev-tool samples publish after the swap produced drift updates to the published v2 JS/TS samples (tsconfig modernization, latest rewrites for non-pinned deps, minor sample source refresh). These are mechanical outputs of the current dev-tool templates, not behavior changes.

jeremymeng and others added 2 commits June 5, 2026 09:22
Switch all internal @azure-rest/* and @azure/* runtime dependencies in @azure/notification-hubs from caret semver ranges to `workspace:^` to match the convention used by other packages in the monorepo.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Run `npx dev-tool samples publish` to bring the published v2 JavaScript and TypeScript samples in sync with the current dev-tool templates (tsconfig, package.json layout, and sample sources).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 5, 2026 16:23
@jeremymeng jeremymeng requested a review from a team as a code owner June 5, 2026 16:23
@jeremymeng
Copy link
Copy Markdown
Member Author

I'd like to trial with notification-hubs first.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR targets @azure/notification-hubs dependency specifiers, intending to switch in-repo @azure/* runtime dependencies to workspace:^, and includes mechanically regenerated v2 JS/TS sample outputs from npx dev-tool samples publish.

Changes:

  • Updated sdk/notificationhubs/notification-hubs/package.json to use workspace:^ for several @azure/* and @azure-rest/* runtime dependencies.
  • Regenerated v2 samples (TypeScript + JavaScript), including tsconfig modernization and small sample code/README tweaks.
  • Minor sample code cleanups (e.g., removing await before Array.prototype.push).

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sdk/notificationhubs/notification-hubs/samples/v2/typescript/tsconfig.json Modernized sample TS config (NodeNext/moduleResolution, lib/types/rootDir).
sdk/notificationhubs/notification-hubs/samples/v2/typescript/src/updateRegistration.ts Removed unnecessary await on tags.push(...).
sdk/notificationhubs/notification-hubs/samples/v2/typescript/src/importRegistrationsJob.ts Formatting-only header whitespace change.
sdk/notificationhubs/notification-hubs/samples/v2/typescript/src/importRegistrationsJob.poller.ts Updated type-only imports and added a poller type assertion.
sdk/notificationhubs/notification-hubs/samples/v2/typescript/src/exportRegistrationsJob.polling.ts Updated type-only imports and added a poller type assertion.
sdk/notificationhubs/notification-hubs/samples/v2/typescript/src/createInstallation.fcmV1.ts Formatting-only header whitespace change.
sdk/notificationhubs/notification-hubs/samples/v2/typescript/README.md Adjusted wording and switched to npx cross-env example.
sdk/notificationhubs/notification-hubs/samples/v2/typescript/package.json Sample dependency updates (incl. adding cross-env, version bumps).
sdk/notificationhubs/notification-hubs/samples/v2/javascript/updateRegistration.js Removed unnecessary await on tags.push(...).
sdk/notificationhubs/notification-hubs/samples/v2/javascript/README.md Adjusted wording and switched to npx cross-env example.
sdk/notificationhubs/notification-hubs/samples/v2/javascript/package.json Sample dependency updates (incl. adding cross-env).
sdk/notificationhubs/notification-hubs/samples/v2/javascript/importRegistrationsJob.poller.js Removed stray blank line in require block.
sdk/notificationhubs/notification-hubs/samples/v2/javascript/importRegistrationsJob.js Formatting-only header whitespace change.
sdk/notificationhubs/notification-hubs/samples/v2/javascript/exportRegistrationsJob.polling.js Removed stray blank line in require block.
sdk/notificationhubs/notification-hubs/samples/v2/javascript/createInstallation.fcmV1.js Formatting-only header whitespace change.
sdk/notificationhubs/notification-hubs/package.json Swapped multiple runtime deps from semver ^ ranges to workspace:^.
pnpm-lock.yaml Lockfile updated to reflect package.json specifier changes.

Comment on lines +88 to 98
"@azure-rest/core-client": "workspace:^",
"@azure/abort-controller": "workspace:^",
"@azure/core-auth": "workspace:^",
"@azure/core-lro": "workspace:^",
"@azure/core-paging": "workspace:^",
"@azure/core-rest-pipeline": "workspace:^",
"@azure/core-tracing": "workspace:^",
"@azure/core-util": "workspace:^",
"@azure/core-xml": "workspace:^",
"@azure/logger": "workspace:^",
"tslib": "^2.8.1"
Comment on lines +36 to 40
const poller = (await beginSubmitNotificationHubJob(
context,
importJob,
)) as unknown as NotificationHubJobPoller;
importJob = await poller.pollUntilDone();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants