Skip to content

fix: restore ES2017 lib in tsconfig.base.json#34

Merged
Vadman97 merged 1 commit into
mainfrom
tsconfig-lib-es2017
Jun 11, 2026
Merged

fix: restore ES2017 lib in tsconfig.base.json#34
Vadman97 merged 1 commit into
mainfrom
tsconfig-lib-es2017

Conversation

@Vadman97

Copy link
Copy Markdown
Contributor

The upstream refresh (#29) took upstream's "lib": ["es6", "dom"] in tsconfig.base.json. That setting only compiles by accident in this repo standalone: vitest's type declarations pull in modern ES lib references, masking the source's uses of Array.prototype.includes (ES2016) and Object.entries (ES2017). Inside the observability-sdk workspace the type layout differs and @highlight-run/rrweb's tsc -noEmit fails with TS2550 errors, breaking o11y's build:sdk.

Restores the fork's previous ES2017 lib, which matches the APIs the source actually uses. lib only affects type-checking — emitted output is governed by target/vite config, so no runtime change.

Validated: standalone tsc -noEmit green for rrweb + rrweb-snapshot; observability-sdk build:sdk goes 9/11 failed → 18/18 green with this change.

🤖 Generated with Claude Code

The upstream refresh took upstream's "lib": ["es6", "dom"], which only
compiles by accident in this repo: vitest's type declarations pull in
modern ES lib references, masking uses of Array.prototype.includes and
Object.entries. Inside the observability-sdk workspace the type layout
differs and tsc fails with TS2550. Restore the fork's ES2017 lib, which
matches the APIs the source actually uses.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Vadman97 Vadman97 requested a review from a team June 11, 2026 16:47
@Vadman97 Vadman97 merged commit d82b2c9 into main Jun 11, 2026
14 checks passed
@Vadman97 Vadman97 deleted the tsconfig-lib-es2017 branch June 11, 2026 16:49
Vadman97 added a commit to launchdarkly/observability-sdk that referenced this pull request Jun 11, 2026
## Summary

Bumps the `rrweb` submodule to current fork main, which includes:

- **Upstream refresh to rrweb v2.0.1** (launchdarkly/rrweb#29) — first
upstream sync in ~2 years, plus standalone CI (build/lint/tests) for the
fork
- **Dependabot updates** (launchdarkly/rrweb#31) — vite 6, vitest 3,
happy-dom 20, turbo 2.9
- **tsconfig lib fix** (launchdarkly/rrweb#34) — restores ES2017 lib so
`@highlight-run/rrweb` type-checks inside this workspace

Only the submodule pin and the regenerated `yarn.lock` change — no SDK
source changes needed (main already migrated to vite 6 / vitest 4, which
covers the previously-required companion changes).

## Validation (local, against this exact pin)

- `yarn install` + `yarn dedupe --check` clean
- `yarn build:sdk` 18/18 tasks green
- `yarn enforce-size` 9/9 (highlight.run within the 256 kB brotli limit)
- `yarn turbo run test --filter=highlight.run` — 437/437 tests pass

## Release

`feat:` commit → release-please cuts a **minor** for `highlight.run`;
the `node-workspace` plugin cascades linked bumps to
`@launchdarkly/observability` and `@launchdarkly/session-replay`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **High Risk**
> Large session-replay dependency refresh after a long upstream gap;
replay fidelity and bundle behavior depend on rrweb even though SDK code
is unchanged in this PR.
> 
> **Overview**
> Updates the vendored **launchdarkly/rrweb** workspace (submodule
refresh to upstream **v2.0.1**) and regenerates **`yarn.lock`** so
Highlight’s session-replay stack matches the fork’s current packages and
tooling.
> 
> The lockfile shifts rrweb workspaces toward **Vite 6**, **Vitest 3**,
**happy-dom 20**, **Playwright 1.60**, and **turbo 2.9**, and wires in
new fork packages such as **`@highlight-run/rrweb-browser-client`** and
the **network record/replay** plugins. **`sdk/highlight-run/README.md`**
now states that recording uses the LaunchDarkly rrweb fork synced to
v2.0.1.
> 
> No `highlight.run` SDK source changes in this diff—only
dependency/workspace metadata and documentation.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
16df13f. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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