Skip to content

📝 use typedoc for js-core#4801

Merged
thomas-lebeau merged 3 commits into
mainfrom
worktree-typed-painting-frost
Jun 18, 2026
Merged

📝 use typedoc for js-core#4801
thomas-lebeau merged 3 commits into
mainfrom
worktree-typed-painting-frost

Conversation

@thomas-lebeau

Copy link
Copy Markdown
Collaborator

Motivation

The @datadog/js-core README contained extensive inline API tables for all sub-paths (/time, /monitor, /util). These tables are hard to maintain and drift out of sync as the API evolves. The generated TypeDoc documentation at https://datadoghq.dev/browser-sdk/ is the canonical, always-up-to-date API reference.

Changes

  • Replace the verbose per-sub-path API tables in README.md with a brief sub-path summary table and a link to the generated API docs
  • Add an "Internal package" notice at the top of README.md to clarify this package is not for direct end-user consumption
  • Add a typedoc.json config file to packages/js-core/ listing the entry points for API doc generation
  • Update AGENTS.md to drop the README maintenance instructions (inline API tables) and replace with guidance to add sub-paths to typedoc.json instead

Test instructions

  • Generate the API docs locally to verify js-core sub-paths appear:
    yarn build:docs:html
    open generated-docs/index.html
    Confirm time, monitor, and util sub-paths are listed with their exports
  • Review the updated README.md to confirm the sub-path table and typedoc link are clear
  • Verify packages/js-core/typedoc.json lists all three current entry points

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

- Replace per-sub-path API tables with a brief sub-path index table
- Add "Internal package" notice to README
- Update AGENTS.md: point to typedoc.json instead of README for new sub-paths
- Add typedoc.json to configure API doc generation entry points
@thomas-lebeau thomas-lebeau marked this pull request as ready for review June 17, 2026 12:58
@thomas-lebeau thomas-lebeau requested a review from a team as a code owner June 17, 2026 12:58
@thomas-lebeau thomas-lebeau changed the title 📝 Simplify js-core README: replace inline API tables with typedoc link 📝 use typedoc for js-core Jun 17, 2026
Comment thread packages/js-core/AGENTS.md Outdated
appears in the generated API docs
6. Add a row for the new sub-path to the table in `README.md`

## Current sub-paths

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

suggestion: Can we remove this section? We already have it in README.md

The sub-paths table in AGENTS.md is now redundant — README.md was
already updated to point to typedoc for the API reference. Remove
the duplicate table and the step that asked contributors to maintain it.
@cit-pr-commenter-54b7da

Copy link
Copy Markdown

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 172.37 KiB 172.37 KiB 0 B 0.00%
Rum Profiler 8.01 KiB 8.01 KiB 0 B 0.00%
Rum Recorder 21.09 KiB 21.09 KiB 0 B 0.00%
Logs 54.43 KiB 54.43 KiB 0 B 0.00%
Rum Slim 129.94 KiB 129.94 KiB 0 B 0.00%
Worker 22.96 KiB 22.96 KiB 0 B 0.00%

@datadog-datadog-prod-us1

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 76.81% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 49c2ce0 | Docs | Datadog PR Page | Give us feedback!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 49c2ce0218

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +3 to +5
> **Internal package.** This package is intended for use by Datadog SDKs only and is not designed
> for direct consumption by end users. APIs may change without notice outside of Datadog SDK
> releases.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Remove the no-notice API change disclaimer

issue: This package is still documented in packages/js-core/AGENTS.md as an independently versioned, semver-stable package consumed outside the Browser SDK, with breaking changes explicitly disallowed outside a major release. Publishing a README that says the APIs “may change without notice” contradicts that guarantee for npm consumers and maintainers, and can lead external users to treat stable sub-path APIs as unsupported/internal even though the package policy says otherwise.

Useful? React with 👍 / 👎.

@thomas-lebeau thomas-lebeau merged commit a533261 into main Jun 18, 2026
30 checks passed
@thomas-lebeau thomas-lebeau deleted the worktree-typed-painting-frost branch June 18, 2026 07:39
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants