Skip to content

Commit

Permalink
Using importHelpers TypeScript option to avoid duplicated helpers in …
Browse files Browse the repository at this point in the history
…output files
  • Loading branch information
EmilianoSanchez committed Mar 26, 2024
1 parent 1b46893 commit 80fac0f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 36 deletions.
3 changes: 2 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1.10.1 (March 26, 2023)
- Updated @splitsoftware/splitio package to version 10.25.2 that includes vulnerability fixes and other improvements.
- Updated the build process and added the `tslib` package as an explicit dependency to import TypeScript helpers, thereby avoiding duplicated helper code in the output files.
- Updated @splitsoftware/splitio package to version 10.25.2, which includes vulnerability fixes and other improvements.

1.10.0 (December 18, 2023)
- Added support for Flag Sets on the SDK, which enables grouping feature flags and interacting with the group rather than individually (more details in our documentation):
Expand Down
55 changes: 22 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
},
"homepage": "https://github.com/splitio/redux-client#readme",
"dependencies": {
"@splitsoftware/splitio": "10.25.2"
"@splitsoftware/splitio": "10.25.2",
"tslib": "^2.3.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// "noEmit": true, /* Do not emit outputs. */

// @TODO uncomment the following when migrating to JS-commons and Rollup, to avoid duplicated helpers code in builds.
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
"importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

Expand Down

0 comments on commit 80fac0f

Please sign in to comment.