Skip to content

Commit a66fcdf

Browse files
LaunchDarklyReleaseBotyusintobwoskow-ldeli-darklyLaunchDarklyCI
authored
prepare 3.0.0 release (#165)
* Initial commit * Delete extraneous files from lib. * Update initLDClient.test.ts * Update withLDProvider.tsx (#18) * update JS SDK dependency to 2.16.3 * use JS SDK 2.17.0 * improve tests to clarify which options we're passing in and which ones are added by the wrapper * set wrapperName to react-client-sdk * lint * Update withLDProvider.test.tsx * update JS SDK to 2.17.5 + a few dev dependency bumps (#21) * downgrade typescript to 3.8.3 (#22) * [Fixes for] Expose LDProvider as a standalone component (#31) * remove startsWith usage (#23) * Fix the broken build (#24) * Expose ld provider (#40) * Add tests for the LDProvider * Add LDProvider component * Add LDProvider to main export * Update provider tests * Remove unused EnhancedComponent * Abstract function to generate react options * add waitForUserToInitializeClient flag to Provider * rename to LDProvider.tsx * fix tests * remove async from componentDidMount * fixes from CR * add test * cleanup * update types for componentDidUpdate * await initLDClient Co-authored-by: Nicholas Mitchell <[email protected]> Co-authored-by: Martin Heller <[email protected]> * update to JS SDK 2.18.0 (adds disableSyncEventPost) (#25) * 45 fix providers to respect subscribed flags (#46) * Fixed asyncWithLDProvider.tsx and provider.tsx so that they only provide flag changes for subscribed flags. * Removed unused imports. * Addressed PR feedback. Fixed linting errors. Co-authored-by: Clay Embry <[email protected]> * targetflags simplified logic (#26) * remove client-side ids from examples (#27) * update JS SDK to 2.18.1 * Fixing camelCaseKeys export (#44) * new js-common-sdk version (#30) * adding alias functionality (#31) * pin typedoc to unblock our releases (#32) * Removed the guides link * add inlineUsersToEvents to TypeScript defs by updating js-client-sdk (#33) * debugging * Fix linting errors * [ch103643] Fix examples to use local sdk * Remove unwanted changes. * Update package.json * Update yarn.lock * Update lock files. * Update package-lock.json * Update package-lock.json * Update package.json * Update link-dev.sh Co-authored-by: Ben Woskow <[email protected]> * Update link-dev.sh * Update yarn.lock * Add react 17 peer dep (#61) * Update common JS SDK library to use fixes for debug event generation issues. (#36) * HOC static hoisting (#71) * Added a test for hoisting react statics in withLDProvider HOC * Fixed linting errors * Fixed more linting errors * update example app deps (#38) * Updated asyncWithLDProvider to fetch latest flag values when the Provider renders (#39) * Updated asyncWithLDProvider to fetch latest flag values when the Provider renders * Fixed linting * Updates docs URLs * fix: improve types of withLDProvider (#97) * [sc-107070] Include src for sourcemaps to work * [sc-127032] Omit deferInitialization from asyncWithLDProvider config * Removed and ignored lock files. * Update types.ts * Update typescript version (#44) * Update Makefile * Update Makefile * Deleting test-types.ts (#45) * [sc-132394] Add typedoc for AsyncProviderConfig (#47) Co-authored-by: Molly <[email protected]> * Pass in client (#105) * [sc134057] Fix react sdk lint errors (#48) * remove custom TypeDoc build, use Releaser's standard logic (#49) * update js-client-sdk to 2.20.1 for localstorage error-handling fix and others * export more public symbols from entry point * [sc134364] Upgrade typescript, tslint and jest. (#50) Co-authored-by: Eli Bishop <[email protected]> * update js-client-sdk to 2.20.2 for sc-142333 fix (#53) * First commit. TODO: migrate enzyme to rtl. * Removed enzyme. Fixed prettier parentheses rule. * Fixed broken snapshot tests. Removed unused imports. * Update package.json * Update the version of the js-client-sdk * Update patch version. * Rename master to main (#56) * Set sendEventsOnlyForVariation by default * Add jest-environment-jsdom as explicit dependency * Fix TS error * Add jest-environment-jsdom as explicit dependency * Fix TS error * Update tests * Move wrapper options into base options obj * Target ES6 * Add tests for camel case cases * Remove vestigial package * Make targetFlags doc more clear * Add error hook and handler * Revert changes to original docs * Add context and flags proxy util * Use flags proxy and update tests * Fixup * Fixup * Don't call variation when initializing * Add option and failing test * Passing test * Remove incorrect comment and fix typo * Update proxy's get trap * except after c * Remove unproxied flags from context * Restore ldClient dec and clean up camelization * Update src/types.ts Co-authored-by: Molly <[email protected]> * Fixup * Handle symbols * Add type constraint to withLDProvider * Remove getter setter * Remove error handler and fix bad merge * Update snapshots * Update releaser config * Fixup * Update version of js-client-sdk used. (#82) * Upgrade js-client-sdk version to 2.24.0 (#83) * Upgrade common to 2.24.2 (#84) * Populate the context with the initial flag state and proxy. (#85) * [sc-178045] u2c changes for v3.0 release (#90) * Update js sdk version to prerelease * Renamed LDContext to ReactSdkContext * Added context to provider config. Replaced LDUser with context in init client function. Deprecated user prop in provider config. * Added getContextOrUser helper function. Replaced user props with getContextOrUser function. * Update js sdk to v3 alpha 2 to fix messages error * Replaced LDUser with LDContext. Added kind prop to test cases. * Update circleci node image version * Renamed wording "user" to "context". Added more test cases for provider. * Added more unit tests to cover backwards compatibility and new context. Renamed user to context in test data and comments. * Force async example to use js sdk alpha version * Update package.json * Add manual resolution for acorn to make webpack 4 work with optional chaining. Add context to init code. * [sc-177377] Update js dep to alpha3 * Update alpha packages * Removed redundant null coalescence. Added more unit tests for getContextOrUser. * Update package.json * Remove un-used import * Minor comment fixes * Removed unnecessary context arg in example init * Update app.js * Set default context kind to user * Create CODEOWNERS Co-authored-by: Yusinto Ngadiman <[email protected]> * [sc-178466] Bugfix flags proxy errors when using native functions (#91) * [sc-178466] Fix native function proxy errors * Added unit tests. * Fix ts any error * Update getFlagsProxy.test.ts Co-authored-by: Yusinto Ngadiman <[email protected]> * Update package.json (#92) Co-authored-by: Yusinto Ngadiman <[email protected]> Co-authored-by: Yusinto Ngadiman <[email protected]> Co-authored-by: Ben Woskow <[email protected]> Co-authored-by: Eli Bishop <[email protected]> Co-authored-by: LaunchDarklyCI <[email protected]> Co-authored-by: Martin Heller <[email protected]> Co-authored-by: Ben Woskow <[email protected]> Co-authored-by: bezreyhan <[email protected]> Co-authored-by: Nicholas Mitchell <[email protected]> Co-authored-by: Martin Heller <[email protected]> Co-authored-by: clayembry <[email protected]> Co-authored-by: Clay Embry <[email protected]> Co-authored-by: Jonathan Felchlin <[email protected]> Co-authored-by: Mac Lockard <[email protected]> Co-authored-by: Gavin Whelan <[email protected]> Co-authored-by: Nathan Waddell <[email protected]> Co-authored-by: Clifford Tawiah <[email protected]> Co-authored-by: Cliff Tawiah <[email protected]> Co-authored-by: LaunchDarklyReleaseBot <[email protected]> Co-authored-by: Ember Stevens <[email protected]> Co-authored-by: ember-stevens <[email protected]> Co-authored-by: Derek Sifford <[email protected]> Co-authored-by: Jaz White <[email protected]> Co-authored-by: Molly <[email protected]> Co-authored-by: Tim Lee <[email protected]> Co-authored-by: Louis Chan <[email protected]> Co-authored-by: Louis Chan <[email protected]> Co-authored-by: Ryan Lamb <[email protected]> Co-authored-by: Christie Williams <[email protected]> Co-authored-by: Yusinto Ngadiman <[email protected]>
1 parent d3109c8 commit a66fcdf

23 files changed

+410
-159
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: circleci/node:11.10.1
5+
- image: cimg/node:18.12.1
66
steps:
77
- checkout
88

@@ -12,7 +12,7 @@ jobs:
1212
- run:
1313
command: npm test
1414
environment:
15-
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
15+
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
1616
- run: npm run check-typescript
1717
- run:
1818
name: dependency audit

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @kinyoklion @yusinto @louis-launchdarkly

examples/async-provider/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"dependencies": {
2828
"@babel/polyfill": "^7.2.5",
2929
"express": "^4.16.4",
30-
"launchdarkly-react-client-sdk": "^2.22.1",
30+
"launchdarkly-react-client-sdk": "^3.0.0-alpha.1",
3131
"lodash": "^4.17.21",
3232
"prop-types": "^15.7.2",
3333
"react": "^16.11.0",
@@ -58,5 +58,8 @@
5858
"webpack-cli": "^3.3.7",
5959
"webpack-node-externals": "^1.7.2",
6060
"webpack-serve": "^3.1.1"
61+
},
62+
"resolutions": {
63+
"acorn": "npm:acorn-with-stage3"
6164
}
6265
}

examples/async-provider/yarn.lock

Lines changed: 85 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,15 +1250,70 @@ accepts@^1.3.5, accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.7:
12501250
mime-types "~2.1.24"
12511251
negotiator "0.6.2"
12521252

1253+
"acorn-base@npm:acorn@^7.3.1":
1254+
version "7.4.1"
1255+
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
1256+
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
1257+
1258+
acorn-class-fields@^0.3.7:
1259+
version "0.3.7"
1260+
resolved "https://registry.yarnpkg.com/acorn-class-fields/-/acorn-class-fields-0.3.7.tgz#a35122f3cc6ad2bb33b1857e79215677fcfdd720"
1261+
integrity sha512-jdUWSFce0fuADUljmExz4TWpPkxmRW/ZCPRqeeUzbGf0vFUcpQYbyq52l75qGd0oSwwtAepeL6hgb/naRgvcKQ==
1262+
dependencies:
1263+
acorn-private-class-elements "^0.2.7"
1264+
12531265
acorn-jsx@^5.0.0:
12541266
version "5.3.2"
12551267
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
12561268
integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
12571269

1258-
acorn@^6.0.7, acorn@^6.4.1:
1259-
version "6.4.2"
1260-
resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.2.tgz#35866fd710528e92de10cf06016498e47e39e1e6"
1261-
integrity sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==
1270+
acorn-logical-assignment@^0.1.4:
1271+
version "0.1.4"
1272+
resolved "https://registry.yarnpkg.com/acorn-logical-assignment/-/acorn-logical-assignment-0.1.4.tgz#1a143a21f022e1707b2bc82f587ae2943f0a570e"
1273+
integrity sha512-SeqO1iRtc/NeXo4bTkyK0hN0CIoKi/FQMN1NqhTr5UxqEn4p2wKNTZl+xzvU7i2u/k0f66YR7pNPi2ckPwYubg==
1274+
1275+
acorn-numeric-separator@^0.3.6:
1276+
version "0.3.6"
1277+
resolved "https://registry.yarnpkg.com/acorn-numeric-separator/-/acorn-numeric-separator-0.3.6.tgz#af7f0abaf8e74bd9ca1117602954d0a3b75804f3"
1278+
integrity sha512-jUr5esgChu4k7VzesH/Nww3EysuyGJJcTEEiXqILUFKpO96PNyEXmK21M6nE0TSqGA1PeEg1MzgqJaoFsn9JMw==
1279+
1280+
acorn-private-class-elements@^0.2.7:
1281+
version "0.2.7"
1282+
resolved "https://registry.yarnpkg.com/acorn-private-class-elements/-/acorn-private-class-elements-0.2.7.tgz#b14902c705bcff267adede1c9f61c1a317ef95d2"
1283+
integrity sha512-+GZH2wOKNZOBI4OOPmzpo4cs6mW297sn6fgIk1dUI08jGjhAaEwvC39mN2gJAg2lmAQJ1rBkFqKWonL3Zz6PVA==
1284+
1285+
acorn-private-methods@^0.3.3:
1286+
version "0.3.3"
1287+
resolved "https://registry.yarnpkg.com/acorn-private-methods/-/acorn-private-methods-0.3.3.tgz#724414ce5b2fec733089d73a5cbba8f7beff75b1"
1288+
integrity sha512-46oeEol3YFvLSah5m9hGMlNpxDBCEkdceJgf01AjqKYTK9r6HexKs2rgSbLK81pYjZZMonhftuUReGMlbbv05w==
1289+
dependencies:
1290+
acorn-private-class-elements "^0.2.7"
1291+
1292+
acorn-stage3@^3.0.0:
1293+
version "3.1.0"
1294+
resolved "https://registry.yarnpkg.com/acorn-stage3/-/acorn-stage3-3.1.0.tgz#545dea4d78c8405190463fc8e79413273e7b19f0"
1295+
integrity sha512-iKDUmzlsw5Rs3lOTCuq3lcOddHTn3xX9gpCfoXSXAr5E9IxqJWkECKBVcSYJZRCaiNGCGNops87AdB8I1fIl2A==
1296+
dependencies:
1297+
acorn-class-fields "^0.3.7"
1298+
acorn-logical-assignment "^0.1.4"
1299+
acorn-numeric-separator "^0.3.6"
1300+
acorn-private-methods "^0.3.3"
1301+
acorn-static-class-features "^0.2.4"
1302+
1303+
acorn-static-class-features@^0.2.4:
1304+
version "0.2.4"
1305+
resolved "https://registry.yarnpkg.com/acorn-static-class-features/-/acorn-static-class-features-0.2.4.tgz#a0f5261dd483f25196716854f2d7652a1deb39ee"
1306+
integrity sha512-5X4mpYq5J3pdndLmIB0+WtFd/mKWnNYpuTlTzj32wUu/PMmEGOiayQ5UrqgwdBNiaZBtDDh5kddpP7Yg2QaQYA==
1307+
dependencies:
1308+
acorn-private-class-elements "^0.2.7"
1309+
1310+
acorn@^6.0.7, acorn@^6.4.1, "acorn@npm:acorn-with-stage3":
1311+
version "1.0.2"
1312+
resolved "https://registry.yarnpkg.com/acorn-with-stage3/-/acorn-with-stage3-1.0.2.tgz#7ab1d6aa346072f8c6b19c8ef7eb0fc26cb89756"
1313+
integrity sha512-9RQEyavZ1djNZJrT1QH7yu0OpgcLtlTZHMK22N1tD7O+sXnXfGCT1kbgtFtCu47Rf05ddV9XNVzqFANU2CuF1Q==
1314+
dependencies:
1315+
acorn-base "npm:acorn@^7.3.1"
1316+
acorn-stage3 "^3.0.0"
12621317

12631318
ajv-errors@^1.0.0:
12641319
version "1.0.1"
@@ -2656,6 +2711,11 @@ escape-string-regexp@^1.0.5:
26562711
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
26572712
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
26582713

2714+
escape-string-regexp@^4.0.0:
2715+
version "4.0.0"
2716+
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
2717+
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
2718+
26592719
eslint-config-airbnb-base@^13.2.0:
26602720
version "13.2.0"
26612721
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-13.2.0.tgz#f6ea81459ff4dec2dda200c35f1d8f7419d57943"
@@ -4318,32 +4378,31 @@ language-tags@^1.0.5:
43184378
dependencies:
43194379
language-subtag-registry "~0.3.2"
43204380

4321-
launchdarkly-js-client-sdk@2.19.2:
4322-
version "2.19.2"
4323-
resolved "https://registry.yarnpkg.com/launchdarkly-js-client-sdk/-/launchdarkly-js-client-sdk-2.19.2.tgz#e652d7169c01f191be67f1a05b4988624a521670"
4324-
integrity sha512-qkCtIf6RPJV2Aftxy/XjXFy5A3+XTafd+DiC9EpdzA+MPse2e542cm9+lt4tr69hT7HoPGJQk9bqZXhrSTfotg==
4381+
launchdarkly-js-client-sdk@^3.0.0-alpha.3:
4382+
version "3.0.0-alpha.4"
4383+
resolved "https://registry.yarnpkg.com/launchdarkly-js-client-sdk/-/launchdarkly-js-client-sdk-3.0.0-alpha.4.tgz#fcea9bc37e05bb2a3373a4cddf1df7c6101edbd4"
4384+
integrity sha512-tJXCEx/8bwBTL+PbWHiP2QOgQ3kj4w5XS2nD1GlD6Mbm13o7lXabAQLCMpIfSytFErbBU7OuoS9+rOSPegwYeg==
43254385
dependencies:
4326-
escape-string-regexp "^1.0.5"
4327-
launchdarkly-js-sdk-common "3.3.2"
4386+
escape-string-regexp "^4.0.0"
4387+
launchdarkly-js-sdk-common "5.0.0-alpha.5"
43284388

4329-
launchdarkly-js-sdk-common@3.3.2:
4330-
version "3.3.2"
4331-
resolved "https://registry.yarnpkg.com/launchdarkly-js-sdk-common/-/launchdarkly-js-sdk-common-3.3.2.tgz#6e6166606c645b45275f154f921941ad949aa9b5"
4332-
integrity sha512-0445DdhkGrByaI+8f+2OcLAEazoFAkBBqItyGg5uL50kAlvLsjIF3v5d/2U8fp7OF9CGwvPdfPDWYMr3zrCrfA==
4389+
launchdarkly-js-sdk-common@5.0.0-alpha.5:
4390+
version "5.0.0-alpha.5"
4391+
resolved "https://registry.yarnpkg.com/launchdarkly-js-sdk-common/-/launchdarkly-js-sdk-common-5.0.0-alpha.5.tgz#52fe835ad4c51e2579a3bcd6af2012a2e424280a"
4392+
integrity sha512-YvPAMm/El6y9pCv3yEVZy0ck5R1FRyoqjMUYRxOo73z/wqmMXuRVOY5KQMmnM6Sqvhv0lanSJK77oIpMyj0IZw==
43334393
dependencies:
43344394
base64-js "^1.3.0"
43354395
fast-deep-equal "^2.0.1"
4336-
uuid "^3.3.2"
4396+
uuid "^8.0.0"
43374397

4338-
launchdarkly-react-client-sdk@^2.22.1:
4339-
version "2.23.0"
4340-
resolved "https://registry.yarnpkg.com/launchdarkly-react-client-sdk/-/launchdarkly-react-client-sdk-2.23.0.tgz#02a041d1b9f64e741bd9f7439fbbe2bcec9a194d"
4341-
integrity sha512-HtQVfDilGZSDMLNyDV/kWWl3kSdTGzYXLh3gnCYzvN7RtYekqPVwKeZ/CrZUBOgTSRZWJxwCRPmauvYL+iSYTw==
4398+
launchdarkly-react-client-sdk@^3.0.0-alpha.1:
4399+
version "3.0.0-alpha.1"
4400+
resolved "https://registry.yarnpkg.com/launchdarkly-react-client-sdk/-/launchdarkly-react-client-sdk-3.0.0-alpha.1.tgz#666e675439426ea5fc13ff8fdc887ee1f6c5c3d7"
4401+
integrity sha512-A5BZcPHu5o0mLXWe/xlF7Ofl3ba8+Ocell1oTkWQOKAYXNuA4CsF9opxjLbG671fZDtjAuX3Yfud/SXKA5C71g==
43424402
dependencies:
43434403
hoist-non-react-statics "^3.3.2"
4344-
launchdarkly-js-client-sdk "2.19.2"
4404+
launchdarkly-js-client-sdk "^3.0.0-alpha.3"
43454405
lodash.camelcase "^4.3.0"
4346-
uuid "^3.3.2"
43474406

43484407
levn@^0.3.0, levn@~0.3.0:
43494408
version "0.3.0"
@@ -6794,6 +6853,11 @@ uuid@^3.3.2, uuid@^3.4.0:
67946853
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
67956854
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
67966855

6856+
uuid@^8.0.0:
6857+
version "8.3.2"
6858+
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
6859+
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
6860+
67976861
v8-compile-cache@^2.0.2, v8-compile-cache@^2.1.1:
67986862
version "2.3.0"
67996863
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"

examples/hoc/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"dependencies": {
2828
"@babel/polyfill": "^7.2.5",
2929
"express": "^4.16.4",
30-
"launchdarkly-react-client-sdk": "^2.22.1",
30+
"launchdarkly-react-client-sdk": "^3.0.0-alpha.1",
3131
"lodash": "^4.17.21",
3232
"prop-types": "^15.7.2",
3333
"react": "^16.11.0",
@@ -57,5 +57,8 @@
5757
"webpack-cli": "^3.1.2",
5858
"webpack-node-externals": "^1.7.2",
5959
"webpack-serve": "^2.0.3"
60+
},
61+
"resolutions": {
62+
"acorn": "npm:acorn-with-stage3"
6063
}
6164
}

examples/hoc/src/universal/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ const App = () => (
2222

2323
// Set clientSideID to your own Client-side ID. You can find this in
2424
// your LaunchDarkly portal under Account settings / Projects
25-
export default withLDProvider({ clientSideID: '' })(App);
25+
export default withLDProvider({
26+
clientSideID: '',
27+
})(App);

examples/hoc/yarn.lock

Lines changed: 85 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,15 +1289,70 @@ accepts@^1.3.5, accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.7:
12891289
mime-types "~2.1.24"
12901290
negotiator "0.6.2"
12911291

1292+
"acorn-base@npm:acorn@^7.3.1":
1293+
version "7.4.1"
1294+
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
1295+
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
1296+
1297+
acorn-class-fields@^0.3.7:
1298+
version "0.3.7"
1299+
resolved "https://registry.yarnpkg.com/acorn-class-fields/-/acorn-class-fields-0.3.7.tgz#a35122f3cc6ad2bb33b1857e79215677fcfdd720"
1300+
integrity sha512-jdUWSFce0fuADUljmExz4TWpPkxmRW/ZCPRqeeUzbGf0vFUcpQYbyq52l75qGd0oSwwtAepeL6hgb/naRgvcKQ==
1301+
dependencies:
1302+
acorn-private-class-elements "^0.2.7"
1303+
12921304
acorn-jsx@^5.0.0:
12931305
version "5.3.2"
12941306
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
12951307
integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
12961308

1297-
acorn@^6.0.7, acorn@^6.4.1:
1298-
version "6.4.2"
1299-
resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.2.tgz#35866fd710528e92de10cf06016498e47e39e1e6"
1300-
integrity sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==
1309+
acorn-logical-assignment@^0.1.4:
1310+
version "0.1.4"
1311+
resolved "https://registry.yarnpkg.com/acorn-logical-assignment/-/acorn-logical-assignment-0.1.4.tgz#1a143a21f022e1707b2bc82f587ae2943f0a570e"
1312+
integrity sha512-SeqO1iRtc/NeXo4bTkyK0hN0CIoKi/FQMN1NqhTr5UxqEn4p2wKNTZl+xzvU7i2u/k0f66YR7pNPi2ckPwYubg==
1313+
1314+
acorn-numeric-separator@^0.3.6:
1315+
version "0.3.6"
1316+
resolved "https://registry.yarnpkg.com/acorn-numeric-separator/-/acorn-numeric-separator-0.3.6.tgz#af7f0abaf8e74bd9ca1117602954d0a3b75804f3"
1317+
integrity sha512-jUr5esgChu4k7VzesH/Nww3EysuyGJJcTEEiXqILUFKpO96PNyEXmK21M6nE0TSqGA1PeEg1MzgqJaoFsn9JMw==
1318+
1319+
acorn-private-class-elements@^0.2.7:
1320+
version "0.2.7"
1321+
resolved "https://registry.yarnpkg.com/acorn-private-class-elements/-/acorn-private-class-elements-0.2.7.tgz#b14902c705bcff267adede1c9f61c1a317ef95d2"
1322+
integrity sha512-+GZH2wOKNZOBI4OOPmzpo4cs6mW297sn6fgIk1dUI08jGjhAaEwvC39mN2gJAg2lmAQJ1rBkFqKWonL3Zz6PVA==
1323+
1324+
acorn-private-methods@^0.3.3:
1325+
version "0.3.3"
1326+
resolved "https://registry.yarnpkg.com/acorn-private-methods/-/acorn-private-methods-0.3.3.tgz#724414ce5b2fec733089d73a5cbba8f7beff75b1"
1327+
integrity sha512-46oeEol3YFvLSah5m9hGMlNpxDBCEkdceJgf01AjqKYTK9r6HexKs2rgSbLK81pYjZZMonhftuUReGMlbbv05w==
1328+
dependencies:
1329+
acorn-private-class-elements "^0.2.7"
1330+
1331+
acorn-stage3@^3.0.0:
1332+
version "3.1.0"
1333+
resolved "https://registry.yarnpkg.com/acorn-stage3/-/acorn-stage3-3.1.0.tgz#545dea4d78c8405190463fc8e79413273e7b19f0"
1334+
integrity sha512-iKDUmzlsw5Rs3lOTCuq3lcOddHTn3xX9gpCfoXSXAr5E9IxqJWkECKBVcSYJZRCaiNGCGNops87AdB8I1fIl2A==
1335+
dependencies:
1336+
acorn-class-fields "^0.3.7"
1337+
acorn-logical-assignment "^0.1.4"
1338+
acorn-numeric-separator "^0.3.6"
1339+
acorn-private-methods "^0.3.3"
1340+
acorn-static-class-features "^0.2.4"
1341+
1342+
acorn-static-class-features@^0.2.4:
1343+
version "0.2.4"
1344+
resolved "https://registry.yarnpkg.com/acorn-static-class-features/-/acorn-static-class-features-0.2.4.tgz#a0f5261dd483f25196716854f2d7652a1deb39ee"
1345+
integrity sha512-5X4mpYq5J3pdndLmIB0+WtFd/mKWnNYpuTlTzj32wUu/PMmEGOiayQ5UrqgwdBNiaZBtDDh5kddpP7Yg2QaQYA==
1346+
dependencies:
1347+
acorn-private-class-elements "^0.2.7"
1348+
1349+
acorn@^6.0.7, acorn@^6.4.1, "acorn@npm:acorn-with-stage3":
1350+
version "1.0.2"
1351+
resolved "https://registry.yarnpkg.com/acorn-with-stage3/-/acorn-with-stage3-1.0.2.tgz#7ab1d6aa346072f8c6b19c8ef7eb0fc26cb89756"
1352+
integrity sha512-9RQEyavZ1djNZJrT1QH7yu0OpgcLtlTZHMK22N1tD7O+sXnXfGCT1kbgtFtCu47Rf05ddV9XNVzqFANU2CuF1Q==
1353+
dependencies:
1354+
acorn-base "npm:acorn@^7.3.1"
1355+
acorn-stage3 "^3.0.0"
13011356

13021357
ajv-errors@^1.0.0:
13031358
version "1.0.1"
@@ -2833,6 +2888,11 @@ escape-string-regexp@^1.0.5:
28332888
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
28342889
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
28352890

2891+
escape-string-regexp@^4.0.0:
2892+
version "4.0.0"
2893+
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
2894+
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
2895+
28362896
eslint-config-airbnb-base@^13.2.0:
28372897
version "13.2.0"
28382898
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-13.2.0.tgz#f6ea81459ff4dec2dda200c35f1d8f7419d57943"
@@ -4512,32 +4572,31 @@ latest-version@^3.0.0:
45124572
dependencies:
45134573
package-json "^4.0.0"
45144574

4515-
launchdarkly-js-client-sdk@2.19.2:
4516-
version "2.19.2"
4517-
resolved "https://registry.yarnpkg.com/launchdarkly-js-client-sdk/-/launchdarkly-js-client-sdk-2.19.2.tgz#e652d7169c01f191be67f1a05b4988624a521670"
4518-
integrity sha512-qkCtIf6RPJV2Aftxy/XjXFy5A3+XTafd+DiC9EpdzA+MPse2e542cm9+lt4tr69hT7HoPGJQk9bqZXhrSTfotg==
4575+
launchdarkly-js-client-sdk@^3.0.0-alpha.3:
4576+
version "3.0.0-alpha.4"
4577+
resolved "https://registry.yarnpkg.com/launchdarkly-js-client-sdk/-/launchdarkly-js-client-sdk-3.0.0-alpha.4.tgz#fcea9bc37e05bb2a3373a4cddf1df7c6101edbd4"
4578+
integrity sha512-tJXCEx/8bwBTL+PbWHiP2QOgQ3kj4w5XS2nD1GlD6Mbm13o7lXabAQLCMpIfSytFErbBU7OuoS9+rOSPegwYeg==
45194579
dependencies:
4520-
escape-string-regexp "^1.0.5"
4521-
launchdarkly-js-sdk-common "3.3.2"
4580+
escape-string-regexp "^4.0.0"
4581+
launchdarkly-js-sdk-common "5.0.0-alpha.5"
45224582

4523-
launchdarkly-js-sdk-common@3.3.2:
4524-
version "3.3.2"
4525-
resolved "https://registry.yarnpkg.com/launchdarkly-js-sdk-common/-/launchdarkly-js-sdk-common-3.3.2.tgz#6e6166606c645b45275f154f921941ad949aa9b5"
4526-
integrity sha512-0445DdhkGrByaI+8f+2OcLAEazoFAkBBqItyGg5uL50kAlvLsjIF3v5d/2U8fp7OF9CGwvPdfPDWYMr3zrCrfA==
4583+
launchdarkly-js-sdk-common@5.0.0-alpha.5:
4584+
version "5.0.0-alpha.5"
4585+
resolved "https://registry.yarnpkg.com/launchdarkly-js-sdk-common/-/launchdarkly-js-sdk-common-5.0.0-alpha.5.tgz#52fe835ad4c51e2579a3bcd6af2012a2e424280a"
4586+
integrity sha512-YvPAMm/El6y9pCv3yEVZy0ck5R1FRyoqjMUYRxOo73z/wqmMXuRVOY5KQMmnM6Sqvhv0lanSJK77oIpMyj0IZw==
45274587
dependencies:
45284588
base64-js "^1.3.0"
45294589
fast-deep-equal "^2.0.1"
4530-
uuid "^3.3.2"
4590+
uuid "^8.0.0"
45314591

4532-
launchdarkly-react-client-sdk@^2.22.1:
4533-
version "2.23.0"
4534-
resolved "https://registry.yarnpkg.com/launchdarkly-react-client-sdk/-/launchdarkly-react-client-sdk-2.23.0.tgz#02a041d1b9f64e741bd9f7439fbbe2bcec9a194d"
4535-
integrity sha512-HtQVfDilGZSDMLNyDV/kWWl3kSdTGzYXLh3gnCYzvN7RtYekqPVwKeZ/CrZUBOgTSRZWJxwCRPmauvYL+iSYTw==
4592+
launchdarkly-react-client-sdk@^3.0.0-alpha.1:
4593+
version "3.0.0-alpha.1"
4594+
resolved "https://registry.yarnpkg.com/launchdarkly-react-client-sdk/-/launchdarkly-react-client-sdk-3.0.0-alpha.1.tgz#666e675439426ea5fc13ff8fdc887ee1f6c5c3d7"
4595+
integrity sha512-A5BZcPHu5o0mLXWe/xlF7Ofl3ba8+Ocell1oTkWQOKAYXNuA4CsF9opxjLbG671fZDtjAuX3Yfud/SXKA5C71g==
45364596
dependencies:
45374597
hoist-non-react-statics "^3.3.2"
4538-
launchdarkly-js-client-sdk "2.19.2"
4598+
launchdarkly-js-client-sdk "^3.0.0-alpha.3"
45394599
lodash.camelcase "^4.3.0"
4540-
uuid "^3.3.2"
45414600

45424601
levn@^0.3.0, levn@~0.3.0:
45434602
version "0.3.0"
@@ -7120,6 +7179,11 @@ uuid@^3.1.0, uuid@^3.3.2, uuid@^3.4.0:
71207179
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
71217180
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
71227181

7182+
uuid@^8.0.0:
7183+
version "8.3.2"
7184+
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
7185+
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
7186+
71237187
v8-compile-cache@^2.0.0, v8-compile-cache@^2.1.1:
71247188
version "2.3.0"
71257189
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"check-typescript": "tsc",
3030
"prepublishOnly": "npm run build",
3131
"prettier": "prettier --write 'src/*.@(js|ts|tsx|json|css)'",
32-
"link-dev": "./link-dev.sh"
32+
"link-dev": "./link-dev.sh",
33+
"check": "npm i && npm run prettier && npm run lint && tsc && npm run test"
3334
},
3435
"repository": {
3536
"type": "git",
@@ -64,7 +65,7 @@
6465
},
6566
"dependencies": {
6667
"hoist-non-react-statics": "^3.3.2",
67-
"launchdarkly-js-client-sdk": "2.24.2",
68+
"launchdarkly-js-client-sdk": "^3.0.0",
6869
"lodash.camelcase": "^4.3.0"
6970
},
7071
"peerDependencies": {

0 commit comments

Comments
 (0)