[2.9.0] - 2019-02-01
Added:
- The new
ldclient-react
package provides a convenient mechanism for using the LaunchDarkly SDK within the React framework. - The new
getUser()
method returns the current user object. - The client options can now have a
logger
property that defines a custom logging mechanism. The default is still to useconsole.warn
andconsole.error
; you could override this to send log messages to another destination or to suppress them. SeeLDLogger
andcreateConsoleLogger
in the TypeScript definitions.
Changed:
- The SDK now uses an additional package,
ldclient-js-common
, consisting of code that is also used by other LaunchDarkly SDKs. This is automatically loaded as a dependency ofldclient-js
so you should notice any difference. However, the source code has been reorganized so that this project is now a monorepo containing multiple packages.