Skip to content

Conversation

@eli-darkly
Copy link
Contributor

[2.9.4] - 2019-02-22

Fixed:

  • Running inside an iframe on Chrome with third-party cookies disabled-- which also disables HTML5 local storage-- would cause a security exception (due to the SDK attempting to check whether window.localStorage exists). This was a long-standing problem, but became worse in the 2.9.0 release since the SDK now checks for browser capabilities like this regardless of whether you've attempted to use them yet. It should now simply log a warning if you try to use bootstrap: "localstorage" when local storage is disabled. (#138)
  • If the SDK received streaming updates out of order (rare, but possible) such that it received "flag X was deleted" prior to "flag X was created", an uncaught exception would be logged in the browser console (but would not otherwise affect anything).
  • A supported user property, privateAttributeNames, was not usable from TypeScript because it was omitted from the TypeScript declarations.
  • Several TypeScript declarations had been changed from interface to type. They all now use interface, except for LDFlagValue which is a type alias. This should not affect regular usage of the SDK in TypeScript, but it is easier to extend an interface than a type if desired.
  • Removed a window message listener that was previously used for integration with the LaunchDarkly dashboard, but is no longer used.

eli-darkly and others added 30 commits October 9, 2018 17:13
(1) create common package, move one file into it
(2) move entire client implementation into common package
(3) move references to doNotTrack and window.location.href into browser-specific code
(4) refactor config validation + make config available to platform client
5. move some usages of "window" into ldclient-js
6. move all goals logic into ldclient-js
7. move EventSource implementation into ldclient-js
eli-darkly and others added 26 commits February 7, 2019 17:23
ensure that build happens before publish for ldclient-react
…es (#157)

* [ch31880] Initial commit

* Update yarn.lock

* Update initLDClient.test.ts

* Update package-lock.json

* Update package-lock.json
# Conflicts:
#	packages/ldclient-js-common/typings.d.ts
#	packages/ldclient-react/package-lock.json
(docs 1) improve TypeScript docs and add TypeDoc build script
(docs 2) fix TypeDoc build to include types from the common package
handle security error when we're not allowed to use window.localStorage
add release script that releases all packages in js-client
…dshake

remove iframe handshake code for click event UI
change TS declarations to prefer interfaces over types
# Conflicts:
#	packages/ldclient-react/package-lock.json
@eli-darkly eli-darkly requested a review from apucacao February 23, 2019 00:48
@eli-darkly eli-darkly merged commit 3f6302f into master Feb 23, 2019
@eli-darkly eli-darkly deleted the 2.9.4 branch February 23, 2019 01:02
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.

7 participants