Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

launchdarkly-js-sdk-common

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

launchdarkly-js-sdk-common - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Change log

## [4.0.2] - 2022-01-25
### Removed:
- Removed the `version` export which was originally a constant inserted by the Rollup build, but was no longer usable since Rollup is no longer being used. The SDKs never used this export, since they have `version` properties of their own; the version string of `launchdarkly-js-sdk-common` was never meant to be exposed to applications.
## [4.0.1] - 2022-01-21

@@ -7,0 +11,0 @@ ### Changed:

2

docs/typedoc.js

@@ -7,3 +7,3 @@ module.exports = {

],
name: "LaunchDarkly Javascript SDK Core Components (4.0.1)",
name: "LaunchDarkly Javascript SDK Core Components (4.0.2)",
readme: 'none', // don't add a home page with a copy of README.md

@@ -10,0 +10,0 @@ entryPoints: "/tmp/project-releaser/project/typings.d.ts",

@@ -12,5 +12,2 @@ const version = process.env.npm_package_version;

},
globals: {
VERSION: version,
},
};
{
"name": "launchdarkly-js-sdk-common",
"version": "4.0.1",
"version": "4.0.2",
"description": "LaunchDarkly SDK for JavaScript - common code",

@@ -43,4 +43,2 @@ "author": "LaunchDarkly <team@launchdarkly.com>",

"readline-sync": "^1.4.9",
"semver": "^5.5.0",
"semver-compare": "^1.0.0",
"typescript": "~4.4.4"

@@ -47,0 +45,0 @@ },

@@ -5,3 +5,2 @@ import * as LDClient from '../index';

import semverCompare from 'semver-compare';
import { eventSink, promisifySingle, sleepAsync, withCloseable, AsyncQueue } from 'launchdarkly-js-test-helpers';

@@ -110,9 +109,2 @@

it('should contain package version', () => {
const version = LDClient.version;
// All client bundles above 1.0.7 should contain package version
const result = semverCompare(version, '1.0.6');
expect(result).toEqual(1);
});
async function verifyCustomHeader(sendLDHeaders, shouldGetHeaders) {

@@ -119,0 +111,0 @@ await withServers(async (baseConfig, pollServer) => {

@@ -123,7 +123,7 @@ import {

describe('getLDUserAgentString', () => {
it('uses platform user-agent and package version by default', () => {
it('uses platform user-agent and unknown version by default', () => {
const platform = stubPlatform.defaults();
platform.version = undefined;
const ua = getLDUserAgentString(platform);
expect(ua).toEqual('stubClient/' + VERSION);
expect(ua).toEqual('stubClient/?');
});

@@ -130,0 +130,0 @@

@@ -763,4 +763,2 @@ const EventProcessor = require('./EventProcessor');

const version = VERSION;
module.exports = {

@@ -772,3 +770,2 @@ initialize,

utils,
version,
};

@@ -149,3 +149,3 @@ const base64 = require('base64-js');

function getLDUserAgentString(platform) {
const version = platform.version || VERSION;
const version = platform.version || '?';
return platform.userAgent + '/' + version;

@@ -152,0 +152,0 @@ }

@@ -7,4 +7,2 @@

var ver: string = ld.version;
var userWithKeyOnly: ld.LDUser = { key: 'user' };

@@ -11,0 +9,0 @@ var anonUserWithNoKey: ld.LDUser = { anonymous: true };

@@ -5,9 +5,3 @@ /**

declare module 'launchdarkly-js-sdk-common' {
/**
* The current version string of the SDK.
*/
export const version: string;
/**
* The types of values a feature flag can have.

@@ -14,0 +8,0 @@ *

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc