Skip to content

Commit

Permalink
Merge pull request #362 from splitio/refactor_type_definitions
Browse files Browse the repository at this point in the history
Refactor TypeScript declarations
  • Loading branch information
EmilianoSanchez authored Nov 1, 2024
2 parents c1f766f + 5e115c2 commit 05aa2af
Show file tree
Hide file tree
Showing 146 changed files with 2,692 additions and 1,939 deletions.
14 changes: 14 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"eslint-plugin-tsdoc",
"import"
],

Expand Down Expand Up @@ -90,6 +91,19 @@
"sourceType": "module"
}
},
{
"files": ["types/**"],
"rules": {
"no-use-before-define": "off"
}
},
{
// Enable TSDoc rules for TypeScript files, allowing the use of JSDoc in JS files.
"files": ["**/*.ts"],
"rules": {
"tsdoc/syntax": "warn"
}
},
// @TODO remove when moving InLocalStorage to js-browser
{
"files": ["src/storages/inLocalStorage/**/*.ts"],
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
## transpiled code
/esm
/cjs
/types

## coverage info
/coverage
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
2.0.0 (October XX, 2024)
- Added support for targeting rules based on large segments.
- Added `factory.destroy()` method, which invokes the `destroy` method on all SDK clients created by the factory.
- Added `SplitIO` namespace with the public TypeScript definitions to be reused by the SDKs, rather than having each SDK define its own types.
- Updated the handling of timers and async operations inside an `init` factory method to enable lazy initialization of the SDK in standalone mode. This update is intended for the React SDK.
- Bugfixing - Fixed an issue with the server-side polling manager that caused dangling timers when the SDK was destroyed before it was ready.
- BREAKING CHANGES:
Expand Down
Loading

0 comments on commit 05aa2af

Please sign in to comment.