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
6 changes: 6 additions & 0 deletions libs/node/feature-flag/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @shipfox/node-feature-flag

## 0.4.1

### Patch Changes

- osef: Force release trigger

## 0.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/node/feature-flag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@shipfox/node-feature-flag",
"license": "MIT",
"private": false,
"version": "0.4.0",
"version": "0.4.1",
"packageManager": "pnpm@9.15.9",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion libs/node/feature-flag/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('feature-flag', () => {
expect(isValid).toBe(true);
});

it('should not validate a JSON feature flag', () => {
it('should not validate a JSON feature flag', () => {
const payload = {default: 'virtual-machine'};
const isValid = isValidJsonFeatureFlagPayload(testSchema, payload);
expect(isValid).toBe(false);
Expand Down
6 changes: 1 addition & 5 deletions libs/node/feature-flag/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ export type Context = BlankContext | OrganizationContext | UserContext | RunnerC
function mapContext(context: Context): LDContext {
if (context.kind === 'blank') return {kind: 'blank', anonymous: true, key: 'blank'};
const {kind, id, ...rest} = context;
return {
kind,
key: id,
...rest,
};
return {kind, key: id, ...rest};
}

export function getBooleanFeatureFlag(
Expand Down
Loading