@atlaskit/platform-feature-flags
Advanced tools
Comparing version 0.2.5 to 0.2.6
# @atlaskit/platform-feature-flags | ||
## 0.2.6 | ||
### Patch Changes | ||
- [#114530](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114530) | ||
[`32d09d1f69b95`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32d09d1f69b95) - | ||
Add `fg` function to supersede `getBooleanFF`. This aligns platform usage with Jira usage. | ||
## 0.2.5 | ||
@@ -7,3 +15,5 @@ | ||
- [#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 | ||
- [#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 | ||
@@ -14,3 +24,6 @@ ## 0.2.4 | ||
- [#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 | ||
- [#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 | ||
@@ -21,3 +34,6 @@ ## 0.2.3 | ||
- [#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 | ||
- [#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 | ||
@@ -28,3 +44,5 @@ ## 0.2.2 | ||
- [#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 | ||
- [#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 | ||
@@ -35,3 +53,5 @@ ## 0.2.1 | ||
- [#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` | ||
- [#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` | ||
@@ -42,3 +62,5 @@ ## 0.2.0 | ||
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`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 | ||
@@ -49,3 +71,6 @@ ## 0.1.2 | ||
- [#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. | ||
- [#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. | ||
@@ -56,3 +81,5 @@ ## 0.1.1 | ||
- [#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 | ||
- [#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 | ||
@@ -63,3 +90,5 @@ ## 0.1.0 | ||
- [#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 | ||
- [#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 | ||
@@ -70,3 +99,5 @@ ## 0.0.12 | ||
- [#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 | ||
- [#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 | ||
@@ -77,3 +108,5 @@ ## 0.0.11 | ||
- [#29220](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29220) [`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 | ||
@@ -84,3 +117,5 @@ ## 0.0.10 | ||
- [#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 | ||
- [#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 | ||
@@ -91,3 +126,5 @@ ## 0.0.9 | ||
- [#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 | ||
- [#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 | ||
@@ -98,3 +135,5 @@ ## 0.0.8 | ||
- [#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 | ||
- [#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 | ||
@@ -105,3 +144,5 @@ ## 0.0.7 | ||
- [#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 | ||
- [#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 | ||
@@ -112,3 +153,5 @@ ## 0.0.6 | ||
- [#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 | ||
- [#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 | ||
@@ -119,3 +162,5 @@ ## 0.0.5 | ||
- [#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 | ||
- [#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 | ||
@@ -126,3 +171,5 @@ ## 0.0.4 | ||
- [#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 | ||
- [#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 | ||
@@ -133,3 +180,5 @@ ## 0.0.3 | ||
- [#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 | ||
- [#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 | ||
@@ -140,3 +189,5 @@ ## 0.0.2 | ||
- [#27644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27644) [`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 | ||
@@ -147,2 +198,4 @@ ## 0.0.1 | ||
- [#27561](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27561) [`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 |
@@ -6,2 +6,3 @@ "use strict"; | ||
}); | ||
exports.fg = fg; | ||
exports.getBooleanFF = getBooleanFF; | ||
@@ -23,2 +24,3 @@ exports.setBooleanFeatureFlagResolver = setBooleanFeatureFlagResolver; | ||
* | ||
* @deprecated Use {@link fg} function instead. | ||
* @param name | ||
@@ -28,2 +30,11 @@ */ | ||
return (0, _resolvers.resolveBooleanFlag)(name); | ||
} | ||
/** | ||
* Returns the value of a feature flag. If the flag does not resolve, it returns the "false" as a default value. | ||
* | ||
* @param name | ||
*/ | ||
function fg(name) { | ||
return (0, _resolvers.resolveBooleanFlag)(name); | ||
} |
@@ -16,2 +16,3 @@ import { setBooleanResolver, resolveBooleanFlag } from './resolvers'; | ||
* | ||
* @deprecated Use {@link fg} function instead. | ||
* @param name | ||
@@ -21,2 +22,11 @@ */ | ||
return resolveBooleanFlag(name); | ||
} | ||
/** | ||
* Returns the value of a feature flag. If the flag does not resolve, it returns the "false" as a default value. | ||
* | ||
* @param name | ||
*/ | ||
export function fg(name) { | ||
return resolveBooleanFlag(name); | ||
} |
@@ -16,2 +16,3 @@ import { setBooleanResolver, resolveBooleanFlag } from './resolvers'; | ||
* | ||
* @deprecated Use {@link fg} function instead. | ||
* @param name | ||
@@ -21,2 +22,11 @@ */ | ||
return resolveBooleanFlag(name); | ||
} | ||
/** | ||
* Returns the value of a feature flag. If the flag does not resolve, it returns the "false" as a default value. | ||
* | ||
* @param name | ||
*/ | ||
export function fg(name) { | ||
return resolveBooleanFlag(name); | ||
} |
@@ -1,2 +0,2 @@ | ||
import { FeatureFlagResolverBoolean } from './resolvers'; | ||
import { type FeatureFlagResolverBoolean } from './resolvers'; | ||
/** | ||
@@ -12,4 +12,11 @@ * This creates a boolean flag resolver that allows calls to `getBooleanFF` inside of Platform components to use a Product's | ||
* | ||
* @deprecated Use {@link fg} function instead. | ||
* @param name | ||
*/ | ||
export declare function getBooleanFF(name: string): boolean; | ||
/** | ||
* Returns the value of a feature flag. If the flag does not resolve, it returns the "false" as a default value. | ||
* | ||
* @param name | ||
*/ | ||
export declare function fg(name: string): boolean; |
@@ -1,2 +0,2 @@ | ||
import { FeatureFlagResolverBoolean } from './resolvers'; | ||
import { type FeatureFlagResolverBoolean } from './resolvers'; | ||
/** | ||
@@ -12,4 +12,11 @@ * This creates a boolean flag resolver that allows calls to `getBooleanFF` inside of Platform components to use a Product's | ||
* | ||
* @deprecated Use {@link fg} function instead. | ||
* @param name | ||
*/ | ||
export declare function getBooleanFF(name: string): boolean; | ||
/** | ||
* Returns the value of a feature flag. If the flag does not resolve, it returns the "false" as a default value. | ||
* | ||
* @param name | ||
*/ | ||
export declare function fg(name: string): boolean; |
106
package.json
{ | ||
"name": "@atlaskit/platform-feature-flags", | ||
"version": "0.2.5", | ||
"description": "Platform Feature Flags", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://bitbucket.org/atlassian/atlassian-frontend-mirror.git" | ||
}, | ||
"author": "Atlassian Pty Ltd", | ||
"license": "Apache-2.0", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"module:es2019": "dist/es2019/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"typesVersions": { | ||
">=4.5 <4.9": { | ||
"*": [ | ||
"dist/types-ts4.5/*", | ||
"dist/types-ts4.5/index.d.ts" | ||
] | ||
} | ||
}, | ||
"sideEffects": false, | ||
"atlaskit:src": "src/index.ts", | ||
"atlassian": { | ||
"team": "UIP - Platform Integration Trust (PITa)", | ||
"singleton": true, | ||
"inPublicMirror": true, | ||
"releaseModel": "continuous", | ||
"productPushConsumption": [ | ||
"jira" | ||
] | ||
}, | ||
"files": [ | ||
"dist", | ||
"CHANGELOG.md" | ||
], | ||
"af:exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.0.0" | ||
}, | ||
"peerDependencies": {}, | ||
"devDependencies": { | ||
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1" | ||
}, | ||
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1", | ||
"bugs": { | ||
"url": "https://bitbucket.org/atlassian/atlassian-frontend-mirror/issues" | ||
}, | ||
"homepage": "https://bitbucket.org/atlassian/atlassian-frontend-mirror#readme", | ||
"keywords": [] | ||
"name": "@atlaskit/platform-feature-flags", | ||
"version": "0.2.6", | ||
"description": "Platform Feature Flags", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://bitbucket.org/atlassian/atlassian-frontend-mirror.git" | ||
}, | ||
"author": "Atlassian Pty Ltd", | ||
"license": "Apache-2.0", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"module:es2019": "dist/es2019/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"typesVersions": { | ||
">=4.5 <4.9": { | ||
"*": [ | ||
"dist/types-ts4.5/*", | ||
"dist/types-ts4.5/index.d.ts" | ||
] | ||
} | ||
}, | ||
"sideEffects": false, | ||
"atlaskit:src": "src/index.ts", | ||
"atlassian": { | ||
"team": "UIP - Platform Integration Trust (PITa)", | ||
"singleton": true, | ||
"inPublicMirror": true, | ||
"releaseModel": "continuous", | ||
"productPushConsumption": [ | ||
"jira" | ||
] | ||
}, | ||
"files": [ | ||
"dist", | ||
"CHANGELOG.md" | ||
], | ||
"af:exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.0.0" | ||
}, | ||
"peerDependencies": {}, | ||
"bugs": { | ||
"url": "https://bitbucket.org/atlassian/atlassian-frontend-mirror/issues" | ||
}, | ||
"homepage": "https://bitbucket.org/atlassian/atlassian-frontend-mirror#readme", | ||
"keywords": [] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26524
0
350