Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ This log covers the [monorepo](https://en.wikipedia.org/wiki/Monorepo).

- added a `prepare-publish.mjs` script to prepare packages for npm publishing (moving `README.md` and `LICENSE` files into package roots), replacing the prior `shx` based solution, and adding [`transform-markdown-links`](https://github.com/gakimball/transform-markdown-links) to fix relative paths that otherwise incorrectly link on [npmjs.com](https://www.npmjs.com/)

### Changed

- updated [`danger-js`](https://github.com/danger/danger-js) to [version 13.0.3](https://github.com/danger/danger-js/blob/main/CHANGELOG.md#1303), to remove high vulnerabilities

## [0.11.0] - 2025-09-29

### Changed
Expand Down
8 changes: 7 additions & 1 deletion examples/express/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.0] - 2025-10-20

### Changed

- updated to features [version 0.5.0](../../../packages/features/docs/CHANGELOG.md#050---2025-10-20)

## [0.2.7] - 2025-09-30

### Changed
Expand All @@ -25,7 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- updated to use `variantGlobs` array, with updated webpack plugin [0.8.0][version 0.8.0](../../../packages/webpack/docs/CHANGELOG.md#080---2025-05-27)
- updated to use `variantGlobs` array, with updated webpack plugin [version 0.8.0](../../../packages/webpack/docs/CHANGELOG.md#080---2025-05-27)
- used some differing syntax from [`micromatch`](https://github.com/micromatch/micromatch) to define `variantGlobs`, for coverage and where may be preferred

## [0.2.4] - 2024-02-07
Expand Down
2 changes: 1 addition & 1 deletion examples/express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-toggle-point-express-example",
"version": "0.2.7",
"version": "0.3.0",
"type": "module",
"engines": {
"node": ">=20.6.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/express/src/routes/animals/featuresStore.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// eslint-disable-next-line import/no-unresolved -- https://github.com/import-js/eslint-plugin-import/issues/1810
import featuresStoreFactory from "@asos/web-toggle-point-features/storeFactories/nodeRequestScopedFeaturesStoreFactory";

const featuresStore = featuresStoreFactory();
const featuresStore = featuresStoreFactory({ toggleType: "api version" });

export default featuresStore;
2 changes: 1 addition & 1 deletion examples/express/src/routes/config/featuresStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import featuresStoreFactory from "@asos/web-toggle-point-features/storeFactories/ssrBackedReactContextFeaturesStoreFactory";

const featuresStore = featuresStoreFactory({
name: "config",
toggleType: "config",
logWarning: console.log
});

Expand Down
6 changes: 6 additions & 0 deletions examples/next/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.0] - 2025-10-20

### Changed

- updated to features [version 0.5.0](../../../packages/features/docs/CHANGELOG.md#050---2025-10-20)

## [0.3.1] - 2025-09-30

### Changed
Expand Down
2 changes: 1 addition & 1 deletion examples/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-toggle-point-next-example",
"version": "0.3.1",
"version": "0.4.0",
"private": true,
"type": "module",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import featuresStoreFactory from "@asos/web-toggle-point-features/storeFactories/reactContextFeaturesStoreFactory";

const reactContextStore = featuresStoreFactory({
name: "Content Management"
toggleType: "Content Management"
});

export default reactContextStore;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import featuresStoreFactory from "@asos/web-toggle-point-features/storeFactories/reactContextFeaturesStoreFactory";

const reactContextStore = featuresStoreFactory({
name: "Experiments"
toggleType: "experiments"
});

export default reactContextStore;
6 changes: 6 additions & 0 deletions examples/serve/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.0] - 2025-10-20

### Changed

- updated to features [version 0.5.0](../../../packages/features/docs/CHANGELOG.md#050---2025-10-20)

## [0.2.7] - 2025-07-15

### Changed
Expand Down
2 changes: 1 addition & 1 deletion examples/serve/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-toggle-point-serve-example",
"version": "0.2.7",
"version": "0.3.0",
"type": "module",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/serve/src/fixtures/audience/__featuresStore.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line import/no-unresolved -- https://github.com/import-js/eslint-plugin-import/issues/1810
import featuresStoreFactory from "@asos/web-toggle-point-features/storeFactories/globalFeaturesStoreFactory";

const featuresStore = featuresStoreFactory();
const featuresStore = featuresStoreFactory({ toggleType: "audience" });

const [, audience] = document.cookie.match(/audience=(.+?)(;|$)/) || [];

Expand Down
2 changes: 1 addition & 1 deletion examples/serve/src/fixtures/config/__featuresStore.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line import/no-unresolved -- https://github.com/import-js/eslint-plugin-import/issues/1810
import featuresStoreFactory from "@asos/web-toggle-point-features/storeFactories/globalFeaturesStoreFactory";

const featuresStore = featuresStoreFactory();
const featuresStore = featuresStoreFactory({ toggleType: "config" });

featuresStore.setValue({ value: new URL(document.URL).pathname.slice(1) });

Expand Down
2 changes: 1 addition & 1 deletion examples/serve/src/fixtures/event/__featuresStore.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line import/no-unresolved -- https://github.com/import-js/eslint-plugin-import/issues/1810
import featuresStoreFactory from "@asos/web-toggle-point-features/storeFactories/globalFeaturesStoreFactory";

const featuresStore = featuresStoreFactory();
const featuresStore = featuresStoreFactory({ toggleType: "events" });

const getEvent = () => {
const dateString = new Intl.DateTimeFormat("en-GB").format(new Date());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line import/no-unresolved -- https://github.com/import-js/eslint-plugin-import/issues/1810
import featuresStoreFactory from "@asos/web-toggle-point-features/storeFactories/globalFeaturesStoreFactory";

const featuresStore = featuresStoreFactory();
const featuresStore = featuresStoreFactory({ toggleType: "language" });

featuresStore.setValue({
value: navigator.language || document.documentElement.lang
Expand Down
Loading
Loading