launchdarkly-node-client-sdk 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,14 +28,13 @@ jobs:
28
28
 
29
29
  - uses: actions/setup-node@v4
30
30
  with:
31
- node-version: 20.x
31
+ node-version: 24.x
32
32
  registry-url: 'https://registry.npmjs.org'
33
33
 
34
- - uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.2.0
35
- name: 'Get NPM token'
36
- with:
37
- aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
38
- ssm_parameter_pairs: '/production/common/releasing/npm/token = NODE_AUTH_TOKEN'
34
+ - name: Update NPM
35
+ shell: bash
36
+ # Must be greater than 11.5.1 for OIDC.
37
+ run: npm install -g npm@11.6.2
39
38
 
40
39
  - name: Install Dependencies
41
40
  run: npm install
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "3.3.0"
2
+ ".": "3.3.1"
3
3
  }
@@ -6,7 +6,8 @@
6
6
  "type": "client-side",
7
7
  "languages": [
8
8
  "JavaScript", "TypeScript"
9
- ]
9
+ ],
10
+ "userAgents": ["NodeClientSide"]
10
11
  }
11
12
  }
12
13
  }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to the LaunchDarkly Client-Side SDK for Node.js will be documented in this file.
4
4
 
5
+ ## [3.3.1](https://github.com/launchdarkly/node-client-sdk/compare/3.3.0...3.3.1) (2025-12-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Correct typing and prevents warnings for secure mode hash during initialization. ([#59](https://github.com/launchdarkly/node-client-sdk/issues/59)) ([33c129d](https://github.com/launchdarkly/node-client-sdk/commit/33c129de7b7a8032d2749445058e0aeca9e38b10)), closes [#57](https://github.com/launchdarkly/node-client-sdk/issues/57)
11
+
5
12
  ## [3.3.0](https://github.com/launchdarkly/node-client-sdk/compare/3.2.1...3.3.0) (2024-10-18)
6
13
 
7
14
 
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # LaunchDarkly Client-Side SDK for Node.js
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/launchdarkly-node-client-sdk.svg?style=flat-square)](https://www.npmjs.com/package/launchdarkly-node-client-sdk)
4
- [![CircleCI](https://circleci.com/gh/launchdarkly/node-client-sdk.svg?style=svg)](https://circleci.com/gh/launchdarkly/node-client-sdk)
4
+ [![Build and Test](https://github.com/launchdarkly/node-client-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/launchdarkly/node-client-sdk/actions/workflows/ci.yml)
5
5
  [![Documentation](https://img.shields.io/static/v1?label=GitHub+Pages&message=API+reference&color=00add8)](https://launchdarkly.github.io/node-client-sdk)
6
6
 
7
7
  The LaunchDarkly Client-Side SDK for Node.js is designed primarily for use by code that is deployed to an end user, such as in a desktop application or a smart device. It follows the client-side LaunchDarkly model for single-user contexts (much like our mobile or JavaScript SDKs). It is not intended for use in multi-user systems such as web servers and applications.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "launchdarkly-node-client-sdk",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "LaunchDarkly Client-Side SDK for Node.js",
5
5
  "author": "LaunchDarkly <team@launchdarkly.com>",
6
6
  "license": "Apache-2.0",
package/src/index.js CHANGED
@@ -10,6 +10,7 @@ function initialize(env, context, options = {}) {
10
10
  const extraOptionDefs = {
11
11
  localStoragePath: { type: 'string' },
12
12
  tlsParams: { type: 'object' },
13
+ hash: { type: 'string' },
13
14
  };
14
15
  if (!options.logger) {
15
16
  extraOptionDefs.logger = { default: basicLogger() };
package/typings.d.ts CHANGED
@@ -65,6 +65,14 @@ declare module 'launchdarkly-node-client-sdk' {
65
65
  * of the TLS-related parameters supported by `https.request()`, such as `ca`, `cert`, and `key`.
66
66
  */
67
67
  tlsParams?: LDTLSOptions;
68
+
69
+ /**
70
+ * The signed context key for Secure Mode.
71
+ *
72
+ * For more information, see the JavaScript SDK Reference Guide on
73
+ * [Secure mode](https://launchdarkly.com/docs/sdk/features/secure-mode#configure-secure-mode-in-javascript-based-sdks).
74
+ */
75
+ hash?: string;
68
76
  }
69
77
 
70
78
  /**
@@ -1,96 +0,0 @@
1
- version: 2.1
2
-
3
- orbs:
4
- win: circleci/windows@2.4.0
5
-
6
- workflows:
7
- test:
8
- jobs:
9
- # CircleCI's current generation of Node images, cimg/node, allow you to leave the
10
- # patch version unpinned, but require you to specify the minor version. The one
11
- # exception is cimg/node:current, which will always give us the latest release in
12
- # the latest major version-- and the latest major version is where it's most likely
13
- # that there would be a new minor version, anyway.
14
- - build-test-linux:
15
- name: latest Node version
16
- docker-image: cimg/node:current
17
- run-lint: true
18
- - build-test-linux:
19
- name: Node 18.10
20
- docker-image: cimg/node:18.10
21
- - build-test-linux:
22
- name: Node 16.14
23
- docker-image: cimg/node:16.17
24
- - build-test-linux:
25
- name: Node 14.19
26
- docker-image: cimg/node:14.20
27
- - build-test-windows:
28
- name: Windows
29
-
30
- jobs:
31
- build-test-linux:
32
- parameters:
33
- docker-image:
34
- type: string
35
- run-lint:
36
- type: boolean
37
- default: false
38
- run-contract-tests:
39
- type: boolean
40
- default: true
41
-
42
- docker:
43
- - image: <<parameters.docker-image>>
44
-
45
- environment:
46
- NODE_ENV: test
47
-
48
- steps:
49
- - checkout
50
- - run: echo "Node version:" `node --version`
51
-
52
- - run: npm install
53
-
54
- - run: npm run test
55
-
56
- - when:
57
- condition: <<parameters.run-lint>>
58
- steps:
59
- - run: npm run lint:all
60
- - run: npm run check-typescript
61
-
62
- - when:
63
- condition: <<parameters.run-contract-tests>>
64
- steps:
65
- - run:
66
- name: start contact test service
67
- command: npm run contract-test-service
68
- background: true
69
- - run:
70
- name: run contract tests
71
- command: |
72
- mkdir -p reports/junit
73
- TEST_HARNESS_PARAMS="-junit reports/junit/contract-test-results.xml" npm run contract-test-harness
74
-
75
- - run:
76
- name: dependency audit
77
- command: ./scripts/better-audit.sh
78
-
79
- - store_test_results:
80
- path: reports/junit
81
- - store_artifacts:
82
- path: reports/junit
83
-
84
- build-test-windows:
85
- executor:
86
- name: win/default
87
- shell: powershell.exe
88
-
89
- environment:
90
- NODE_ENV: test
91
-
92
- steps:
93
- - checkout
94
- - run: node --version
95
- - run: npm install
96
- - run: npm test
@@ -1,27 +0,0 @@
1
- version: 2
2
-
3
- repo:
4
- public: node-client-sdk
5
- private: node-client-sdk-private
6
-
7
- branches:
8
- - name: main
9
- description: 3.x
10
- - name: 2.x
11
-
12
- publications:
13
- - url: https://www.npmjs.com/package/launchdarkly-node-client-sdk
14
- description: npm
15
-
16
- jobs:
17
- - docker:
18
- image: node:14-buster
19
- template:
20
- name: npm
21
-
22
- documentation:
23
- gitHubPages: true
24
- title: LaunchDarkly Client-Side Node SDK
25
-
26
- sdk:
27
- displayName: "Node.js (client-side)"