Skip to content

♻️ replace dateNow from @datadog/browser-core with @datadog/js-core/time#132

Merged
bcaudan merged 1 commit into
mainfrom
refactor/replace-date-now-with-js-core
Jun 5, 2026
Merged

♻️ replace dateNow from @datadog/browser-core with @datadog/js-core/time#132
bcaudan merged 1 commit into
mainfrom
refactor/replace-date-now-with-js-core

Conversation

@thomas-lebeau

Copy link
Copy Markdown
Contributor

Motivation

dateNow has been moved to the more focused @datadog/js-core package. This refactor aligns the electron-sdk with the updated package structure and reduces the dependency on @datadog/browser-core for functionality that is not browser-specific.

Changes

  • Replace dateNow import from @datadog/browser-core with @datadog/js-core/time in BatchProducer.ts and its spec file
  • Add @datadog/js-core@0.0.1 as a dev dependency

Test instructions

No behavior change — this is a pure refactor. Existing unit tests cover the affected code paths.

yarn test

Checklist

  • Tested locally (playground)
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated related documentation.

@thomas-lebeau thomas-lebeau changed the title refactor: replace dateNow from @datadog/browser-core with @datadog/js-core/time ♻️ replace dateNow from @datadog/browser-core with @datadog/js-core/time Jun 5, 2026
@thomas-lebeau thomas-lebeau marked this pull request as ready for review June 5, 2026 13:20
@thomas-lebeau thomas-lebeau requested a review from a team as a code owner June 5, 2026 13:20

@bcaudan bcaudan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's go!

@bcaudan bcaudan merged commit 98c51ed into main Jun 5, 2026
15 checks passed
@bcaudan bcaudan deleted the refactor/replace-date-now-with-js-core branch June 5, 2026 13:34
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