Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to the LaunchDarkly client-side JavaScript SDK will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org).

## [2.1.2] - 2018-06-08
### Fixed:
- Fix the TypeScript definitions to properly support the ES default export.

## [2.1.1] - 2018-06-05
### Fixed:
- Removed two function calls that are not supported in Internet Explorer: `string.startsWith()` and `Object.assign()`.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ldclient-js",
"version": "2.1.1",
"version": "2.1.2",
"description": "LaunchDarkly SDK for JavaScript",
"author": "LaunchDarkly <team@launchdarkly.com>",
"license": "Apache-2.0",
Expand Down
12 changes: 7 additions & 5 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for ldclient-js v1.1.2
// Type definitions for ldclient-js v2.1.2
// Project: https://github.com/launchdarkly/js-client
// Definitions by: Isaac Sukin <https://isaacsukin.com>

Expand All @@ -8,10 +8,12 @@
* Documentation: http://docs.launchdarkly.com/docs/js-sdk-reference
*/
declare module 'ldclient-js' {
/**
* The LaunchDarkly static global.
*/
export function initialize(envKey: string, user: LDUser, options?: LDOptions): LDClient;
const LaunchDarkly : {
initialize: (envKey: string, user: LDUser, options?: LDOptions) => LDClient
version: string
};

export default LaunchDarkly;

/**
* The names of events to which users of the client can subscribe.
Expand Down