Socket
Socket
Sign inDemoInstall

@atlaskit/platform-feature-flags

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/platform-feature-flags - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

46

CHANGELOG.md
# @atlaskit/platform-feature-flags
## 0.2.5
### Patch Changes
- [#42550](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42550) [`c9c2b136ecb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c9c2b136ecb) - Add a type to globalThis and dummy index.js file to fix failing typecheck and eslint check in AFM
## 0.2.4

@@ -7,3 +13,3 @@

- [`d6a9413f008`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6a9413f008) - Store the Platform Feaature Flags booleanFeatureFlagResolver on the global so that it won't matter if multiple different versions of the library are installed
- [#35772](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35772) [`d6a9413f008`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6a9413f008) - Store the Platform Feaature Flags booleanFeatureFlagResolver on the global so that it won't matter if multiple different versions of the library are installed

@@ -14,3 +20,3 @@ ## 0.2.3

- [`71902efa32d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/71902efa32d) - Added logging for any feature flags that are called before the platform feature flags resolver is created
- [#35628](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35628) [`71902efa32d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/71902efa32d) - Added logging for any feature flags that are called before the platform feature flags resolver is created

@@ -21,3 +27,3 @@ ## 0.2.2

- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8

@@ -28,3 +34,3 @@ ## 0.2.1

- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`

@@ -35,3 +41,3 @@ ## 0.2.0

- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump

@@ -42,3 +48,3 @@ ## 0.1.2

- [`49c6941535b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49c6941535b) - This package is now declared as a singleton within its package.json file. Consumers should provide tooling to assist in deduplication and enforcement of the singleton pattern.
- [#31785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31785) [`49c6941535b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49c6941535b) - This package is now declared as a singleton within its package.json file. Consumers should provide tooling to assist in deduplication and enforcement of the singleton pattern.

@@ -49,3 +55,3 @@ ## 0.1.1

- [`bcbc0232ef1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bcbc0232ef1) - [ux] Update documentation around platform feature flag implementation and integration
- [#30973](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30973) [`bcbc0232ef1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bcbc0232ef1) - [ux] Update documentation around platform feature flag implementation and integration

@@ -56,3 +62,3 @@ ## 0.1.0

- [`1d3a3683ed9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1d3a3683ed9) - Revamp platform feature flag package to allow deferral to outside client instead
- [#29445](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29445) [`1d3a3683ed9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1d3a3683ed9) - Revamp platform feature flag package to allow deferral to outside client instead

@@ -63,3 +69,3 @@ ## 0.0.12

- [`fdefe6037f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fdefe6037f9) - Add PFF to Jira push consumption model
- [#29225](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29225) [`fdefe6037f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fdefe6037f9) - Add PFF to Jira push consumption model

@@ -70,3 +76,3 @@ ## 0.0.11

- [`d603f6fb55b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d603f6fb55b) - Fix Platform Feature Flag overrides
- [#29220](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29220) [`d603f6fb55b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d603f6fb55b) - Fix Platform Feature Flag overrides

@@ -77,3 +83,3 @@ ## 0.0.10

- [`be91072734f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be91072734f) - Remove dynamic typegen - going with static analysis instead
- [#28824](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28824) [`be91072734f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be91072734f) - Remove dynamic typegen - going with static analysis instead

@@ -84,3 +90,3 @@ ## 0.0.9

- [`0ba3b02365e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ba3b02365e) - Fix postinstall hook and ship less dependencies
- [#28668](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28668) [`0ba3b02365e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ba3b02365e) - Fix postinstall hook and ship less dependencies

@@ -91,3 +97,3 @@ ## 0.0.8

- [`7888ba61c3b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7888ba61c3b) - Add platform feature flag registration and dynamic type generation for platform feature flag client
- [#28158](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28158) [`7888ba61c3b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7888ba61c3b) - Add platform feature flag registration and dynamic type generation for platform feature flag client

@@ -98,3 +104,3 @@ ## 0.0.7

- [`f81aa3efb8b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f81aa3efb8b) - Fix overriding platform FFs by Storybook and test's runners
- [#28326](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28326) [`f81aa3efb8b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f81aa3efb8b) - Fix overriding platform FFs by Storybook and test's runners

@@ -105,3 +111,3 @@ ## 0.0.6

- [`cfc66979dd1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfc66979dd1) - FLEX-78: Fix browser runtime compatibility
- [#28103](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28103) [`cfc66979dd1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfc66979dd1) - FLEX-78: Fix browser runtime compatibility

@@ -112,3 +118,3 @@ ## 0.0.5

- [`1f19e1fe8c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1f19e1fe8c9) - Fix running unit tests and Storybook when Platform FF are enabled
- [#27830](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27830) [`1f19e1fe8c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1f19e1fe8c9) - Fix running unit tests and Storybook when Platform FF are enabled

@@ -119,3 +125,3 @@ ## 0.0.4

- [`d446d03215b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d446d03215b) - Add storybook enviornment variable for setting all platform feature flags to be true
- [#27782](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27782) [`d446d03215b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d446d03215b) - Add storybook enviornment variable for setting all platform feature flags to be true

@@ -126,3 +132,3 @@ ## 0.0.3

- [`f366312e13a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f366312e13a) - Add support for toggling on all the Platform Feature Flags when running unit tests
- [#27765](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27765) [`f366312e13a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f366312e13a) - Add support for toggling on all the Platform Feature Flags when running unit tests

@@ -133,3 +139,3 @@ ## 0.0.2

- [`f9705321c00`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f9705321c00) - Update logs content
- [#27644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27644) [`f9705321c00`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f9705321c00) - Update logs content

@@ -140,2 +146,2 @@ ## 0.0.1

- [`a37abc471e9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a37abc471e9) - Add new platform FF package
- [#27561](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27561) [`a37abc471e9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a37abc471e9) - Add new platform FF package

@@ -7,8 +7,8 @@ "use strict";

exports.debug = void 0;
var _ref, _globalThis$process, _globalThis$process$e, _globalThis$process2, _globalThis$process2$;
var _ref, _process, _process2;
// We can't rely on NODE_ENV === 'test' if its value is already configured by the consumer to some other value, so better to use JEST_WORKER_ID
// https://jestjs.io/docs/environment-variables#jest_worker_id
var TESTS_MODE = (_ref = (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$process = globalThis.process) === null || _globalThis$process === void 0 ? void 0 : (_globalThis$process$e = _globalThis$process.env) === null || _globalThis$process$e === void 0 ? void 0 : _globalThis$process$e.JEST_WORKER_ID) !== undefined) !== null && _ref !== void 0 ? _ref : false;
var DEBUG_MODE = !TESTS_MODE && (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$process2 = globalThis.process) === null || _globalThis$process2 === void 0 ? void 0 : (_globalThis$process2$ = _globalThis$process2.env) === null || _globalThis$process2$ === void 0 ? void 0 : _globalThis$process2$.NODE_ENV) !== 'production';
var debug = function debug() {
var TESTS_MODE = (_ref = (globalThis === null || globalThis === void 0 || (_process = globalThis.process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.JEST_WORKER_ID) !== undefined) !== null && _ref !== void 0 ? _ref : false;
var DEBUG_MODE = !TESTS_MODE && (globalThis === null || globalThis === void 0 || (_process2 = globalThis.process) === null || _process2 === void 0 || (_process2 = _process2.env) === null || _process2 === void 0 ? void 0 : _process2.NODE_ENV) !== 'production';
var debug = exports.debug = function debug() {
var _console;

@@ -21,3 +21,2 @@ if (!DEBUG_MODE) {

(_console = console).debug.apply(_console, arguments);
};
exports.debug = debug;
};

@@ -11,4 +11,3 @@ "use strict";

var pkgName = '@atlaskit/platform-feature-flags';
var PFF_GLOBAL_KEY = '__PLATFORM_FEATURE_FLAGS__';
exports.PFF_GLOBAL_KEY = PFF_GLOBAL_KEY;
var PFF_GLOBAL_KEY = exports.PFF_GLOBAL_KEY = '__PLATFORM_FEATURE_FLAGS__';
var hasProcessEnv = typeof process !== 'undefined' && typeof process.env !== 'undefined';

@@ -45,4 +44,4 @@

if (process.env.NODE_ENV !== 'production') {
var _globalVar$PFF_GLOBAL, _globalVar$PFF_GLOBAL2;
if (((_globalVar$PFF_GLOBAL = globalVar[PFF_GLOBAL_KEY]) === null || _globalVar$PFF_GLOBAL === void 0 ? void 0 : (_globalVar$PFF_GLOBAL2 = _globalVar$PFF_GLOBAL.earlyResolvedFlags) === null || _globalVar$PFF_GLOBAL2 === void 0 ? void 0 : _globalVar$PFF_GLOBAL2.size) > 0) {
var _globalVar$PFF_GLOBAL;
if (((_globalVar$PFF_GLOBAL = globalVar[PFF_GLOBAL_KEY]) === null || _globalVar$PFF_GLOBAL === void 0 || (_globalVar$PFF_GLOBAL = _globalVar$PFF_GLOBAL.earlyResolvedFlags) === null || _globalVar$PFF_GLOBAL === void 0 ? void 0 : _globalVar$PFF_GLOBAL.size) > 0) {
(0, _debug.debug)("[%s]: The following list of Feature Flags were called, the following number of times, before setBooleanResolver.", pkgName, Array.from(globalVar[PFF_GLOBAL_KEY].earlyResolvedFlags.entries()));

@@ -59,4 +58,4 @@ globalVar[PFF_GLOBAL_KEY].earlyResolvedFlags.clear();

try {
var _globalVar$PFF_GLOBAL3;
var result = (_globalVar$PFF_GLOBAL3 = globalVar[PFF_GLOBAL_KEY]) === null || _globalVar$PFF_GLOBAL3 === void 0 ? void 0 : _globalVar$PFF_GLOBAL3.booleanResolver(flagKey);
var _globalVar$PFF_GLOBAL2;
var result = (_globalVar$PFF_GLOBAL2 = globalVar[PFF_GLOBAL_KEY]) === null || _globalVar$PFF_GLOBAL2 === void 0 ? void 0 : _globalVar$PFF_GLOBAL2.booleanResolver(flagKey);
if (typeof result !== 'boolean') {

@@ -63,0 +62,0 @@ // eslint-disable-next-line no-console

@@ -1,6 +0,6 @@

var _ref, _globalThis$process, _globalThis$process$e, _globalThis$process2, _globalThis$process2$;
var _ref, _process, _process$env, _process2, _process2$env;
// We can't rely on NODE_ENV === 'test' if its value is already configured by the consumer to some other value, so better to use JEST_WORKER_ID
// https://jestjs.io/docs/environment-variables#jest_worker_id
const TESTS_MODE = (_ref = (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$process = globalThis.process) === null || _globalThis$process === void 0 ? void 0 : (_globalThis$process$e = _globalThis$process.env) === null || _globalThis$process$e === void 0 ? void 0 : _globalThis$process$e.JEST_WORKER_ID) !== undefined) !== null && _ref !== void 0 ? _ref : false;
const DEBUG_MODE = !TESTS_MODE && (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$process2 = globalThis.process) === null || _globalThis$process2 === void 0 ? void 0 : (_globalThis$process2$ = _globalThis$process2.env) === null || _globalThis$process2$ === void 0 ? void 0 : _globalThis$process2$.NODE_ENV) !== 'production';
const TESTS_MODE = (_ref = (globalThis === null || globalThis === void 0 ? void 0 : (_process = globalThis.process) === null || _process === void 0 ? void 0 : (_process$env = _process.env) === null || _process$env === void 0 ? void 0 : _process$env.JEST_WORKER_ID) !== undefined) !== null && _ref !== void 0 ? _ref : false;
const DEBUG_MODE = !TESTS_MODE && (globalThis === null || globalThis === void 0 ? void 0 : (_process2 = globalThis.process) === null || _process2 === void 0 ? void 0 : (_process2$env = _process2.env) === null || _process2$env === void 0 ? void 0 : _process2$env.NODE_ENV) !== 'production';
export const debug = (...args) => {

@@ -7,0 +7,0 @@ if (!DEBUG_MODE) {

@@ -1,6 +0,6 @@

var _ref, _globalThis$process, _globalThis$process$e, _globalThis$process2, _globalThis$process2$;
var _ref, _process, _process2;
// We can't rely on NODE_ENV === 'test' if its value is already configured by the consumer to some other value, so better to use JEST_WORKER_ID
// https://jestjs.io/docs/environment-variables#jest_worker_id
var TESTS_MODE = (_ref = (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$process = globalThis.process) === null || _globalThis$process === void 0 ? void 0 : (_globalThis$process$e = _globalThis$process.env) === null || _globalThis$process$e === void 0 ? void 0 : _globalThis$process$e.JEST_WORKER_ID) !== undefined) !== null && _ref !== void 0 ? _ref : false;
var DEBUG_MODE = !TESTS_MODE && (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$process2 = globalThis.process) === null || _globalThis$process2 === void 0 ? void 0 : (_globalThis$process2$ = _globalThis$process2.env) === null || _globalThis$process2$ === void 0 ? void 0 : _globalThis$process2$.NODE_ENV) !== 'production';
var TESTS_MODE = (_ref = (globalThis === null || globalThis === void 0 || (_process = globalThis.process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.JEST_WORKER_ID) !== undefined) !== null && _ref !== void 0 ? _ref : false;
var DEBUG_MODE = !TESTS_MODE && (globalThis === null || globalThis === void 0 || (_process2 = globalThis.process) === null || _process2 === void 0 || (_process2 = _process2.env) === null || _process2 === void 0 ? void 0 : _process2.NODE_ENV) !== 'production';
export var debug = function debug() {

@@ -7,0 +7,0 @@ var _console;

@@ -35,4 +35,4 @@ import { debug } from './debug';

if (process.env.NODE_ENV !== 'production') {
var _globalVar$PFF_GLOBAL, _globalVar$PFF_GLOBAL2;
if (((_globalVar$PFF_GLOBAL = globalVar[PFF_GLOBAL_KEY]) === null || _globalVar$PFF_GLOBAL === void 0 ? void 0 : (_globalVar$PFF_GLOBAL2 = _globalVar$PFF_GLOBAL.earlyResolvedFlags) === null || _globalVar$PFF_GLOBAL2 === void 0 ? void 0 : _globalVar$PFF_GLOBAL2.size) > 0) {
var _globalVar$PFF_GLOBAL;
if (((_globalVar$PFF_GLOBAL = globalVar[PFF_GLOBAL_KEY]) === null || _globalVar$PFF_GLOBAL === void 0 || (_globalVar$PFF_GLOBAL = _globalVar$PFF_GLOBAL.earlyResolvedFlags) === null || _globalVar$PFF_GLOBAL === void 0 ? void 0 : _globalVar$PFF_GLOBAL.size) > 0) {
debug("[%s]: The following list of Feature Flags were called, the following number of times, before setBooleanResolver.", pkgName, Array.from(globalVar[PFF_GLOBAL_KEY].earlyResolvedFlags.entries()));

@@ -49,4 +49,4 @@ globalVar[PFF_GLOBAL_KEY].earlyResolvedFlags.clear();

try {
var _globalVar$PFF_GLOBAL3;
var result = (_globalVar$PFF_GLOBAL3 = globalVar[PFF_GLOBAL_KEY]) === null || _globalVar$PFF_GLOBAL3 === void 0 ? void 0 : _globalVar$PFF_GLOBAL3.booleanResolver(flagKey);
var _globalVar$PFF_GLOBAL2;
var result = (_globalVar$PFF_GLOBAL2 = globalVar[PFF_GLOBAL_KEY]) === null || _globalVar$PFF_GLOBAL2 === void 0 ? void 0 : _globalVar$PFF_GLOBAL2.booleanResolver(flagKey);
if (typeof result !== 'boolean') {

@@ -53,0 +53,0 @@ // eslint-disable-next-line no-console

{
"name": "@atlaskit/platform-feature-flags",
"version": "0.2.4",
"version": "0.2.5",
"description": "Platform Feature Flags",

@@ -37,2 +37,6 @@ "publishConfig": {

},
"files": [
"dist",
"CHANGELOG.md"
],
"af:exports": {

@@ -39,0 +43,0 @@ ".": "./src/index.ts"

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