Skip to content

Commit a471805

Browse files
authored
feat!: remove 3.x compatability layer (#1063)
This PR will remove the browser compatability layer <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Removes the deprecated 3.x browser compatibility layer and its build/test surface. > > - Deletes `src/compat/*` (compat client, options, emitter, helpers) and `__tests__/compat/LDClientCompatImpl.test.ts` > - Removes compat entrypoints from `package.json` `exports` and from `tsup.config.ts` (no more `compat` bundle) > - Build now only targets `src/index.ts`; package no longer exposes `./compat` > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 3964c52. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 258c478 commit a471805

File tree

9 files changed

+0
-1159
lines changed

9 files changed

+0
-1159
lines changed

packages/sdk/browser/__tests__/compat/LDClientCompatImpl.test.ts

Lines changed: 0 additions & 531 deletions
This file was deleted.

packages/sdk/browser/package.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,6 @@
3030
"types": "./dist/index.d.ts",
3131
"import": "./dist/index.js"
3232
}
33-
},
34-
"./compat": {
35-
"require": {
36-
"types": "./dist/compat.d.cts",
37-
"require": "./dist/compat.cjs"
38-
},
39-
"import": {
40-
"types": "./dist/compat.d.ts",
41-
"import": "./dist/compat.js"
42-
}
4333
}
4434
},
4535
"files": [

packages/sdk/browser/src/compat/LDClientCompat.ts

Lines changed: 0 additions & 151 deletions
This file was deleted.

0 commit comments

Comments
 (0)