Skip to content

Commit 656d6e8

Browse files
authored
[sc-169460] Add releaser configuration. Update module name. Minor documentation changes. (#3)
1 parent e340214 commit 656d6e8

File tree

5 files changed

+38
-9
lines changed

5 files changed

+38
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ dist/
33
node_modules/
44
coverage/
55
reports/
6+
docs/

.ldrelease/config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: 2
2+
3+
branches:
4+
- name: main
5+
6+
publications:
7+
- url: https://www.npmjs.com/package/@launchdarkly/openfeature-node-server
8+
description: npm
9+
10+
jobs:
11+
- docker:
12+
image: node:18-bullseye
13+
template:
14+
name: npm
15+
16+
documentation:
17+
gitHubPages: true
18+
title: LaunchDarkly OpenFeature provider for the Server-Side SDK for Node.js
19+
20+
sdk:
21+
displayName: "LaunchDarkly OpenFeature Node Server-Side"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@launchdarkly/open-feature-node-server",
2+
"name": "@launchdarkly/openfeature-node-server",
33
"version": "0.0.1",
44
"description": "LaunchDarkly OpenFeature provider for node.",
55
"main": "./dist/index.js",

src/LaunchDarklyProvider.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import translateContext from './translateContext';
88
import translateResult from './translateResult';
99

1010
/**
11-
* Create a {@link ResolutionDetails} for an evaluation that produced a type different
11+
* Create a ResolutionDetails for an evaluation that produced a type different
1212
* than the expected type.
13-
* @param value The default value to populate the {@link ResolutionDetails} with.
14-
* @returns An {@link ResolutionDetails} with the default value.
13+
* @param value The default value to populate the ResolutionDetails with.
14+
* @returns A ResolutionDetails with the default value.
1515
*/
1616
function wrongTypeResult<T>(value: T): ResolutionDetails<T> {
1717
return {
@@ -30,7 +30,7 @@ export default class LaunchDarklyProvider implements Provider {
3030
};
3131

3232
/**
33-
* Construct an {@link LaunchDarklyProvider}.
33+
* Construct a {@link LaunchDarklyProvider}.
3434
* @param client The LaunchDarkly client instance to use.
3535
*/
3636
constructor(private readonly client: LDClient) {
@@ -47,7 +47,7 @@ export default class LaunchDarklyProvider implements Provider {
4747
* from LaunchDarkly.
4848
* @param context The context requesting the flag. The client will generate an analytics event to
4949
* register this context with LaunchDarkly if the context does not already exist.
50-
* @returns A promise which will resolve to an {@link EvaluationDetails}.
50+
* @returns A promise which will resolve to a ResolutionDetails.
5151
*/
5252
async resolveBooleanEvaluation(
5353
flagKey: string,
@@ -72,7 +72,7 @@ export default class LaunchDarklyProvider implements Provider {
7272
* from LaunchDarkly.
7373
* @param context The context requesting the flag. The client will generate an analytics event to
7474
* register this context with LaunchDarkly if the context does not already exist.
75-
* @returns A promise which will resolve to an {@link EvaluationDetails}.
75+
* @returns A promise which will resolve to a ResolutionDetails.
7676
*/
7777
async resolveStringEvaluation(
7878
flagKey: string,
@@ -97,7 +97,7 @@ export default class LaunchDarklyProvider implements Provider {
9797
* from LaunchDarkly.
9898
* @param context The context requesting the flag. The client will generate an analytics event to
9999
* register this context with LaunchDarkly if the context does not already exist.
100-
* @returns A promise which will resolve to an {@link EvaluationDetails}.
100+
* @returns A promise which will resolve to a ResolutionDetails.
101101
*/
102102
async resolveNumberEvaluation(
103103
flagKey: string,
@@ -120,7 +120,7 @@ export default class LaunchDarklyProvider implements Provider {
120120
* from LaunchDarkly.
121121
* @param context The context requesting the flag. The client will generate an analytics event to
122122
* register this context with LaunchDarkly if the context does not already exist.
123-
* @returns A promise which will resolve to an {@link EvaluationDetails}.
123+
* @returns A promise which will resolve to a ResolutionDetails.
124124
*/
125125
async resolveObjectEvaluation<U extends JsonValue>(
126126
flagKey: string,

src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* This is the API reference for the LaunchDarkly OpenFeature provider for the Server-Side SDK for
3+
* Node.js
4+
*
5+
* @module @launchdarkly/openfeature-node-server
6+
*/
7+
18
/* eslint-disable import/prefer-default-export */
29
import LaunchDarklyProvider from './LaunchDarklyProvider';
310

0 commit comments

Comments
 (0)