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
10 changes: 10 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ N.B. See changelogs for individual packages, where most change will occur:

This log covers the [monorepo](https://en.wikipedia.org/wiki/Monorepo).

## [0.12.0] - 2025-09-30

### Added

- a `build:examples` script, for easy re-building of all examples

### Fixed

- 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/)

## [0.11.0] - 2025-09-29

### Changed
Expand Down
6 changes: 6 additions & 0 deletions 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.2.7] - 2025-09-30

### Changed

- move to use new `onVariantError` plugin hook over `logError` to consume [0.5.0](../../../packages/react-pointcuts/docs/CHANGELOG.md#040---2025-07-06) of `react-pointcuts` package.

## [0.2.6] - 2025-07-15

### Changed
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.6",
"version": "0.2.7",
"type": "module",
"engines": {
"node": ">=20.6.0"
Expand Down
6 changes: 5 additions & 1 deletion examples/express/src/routes/config/togglePoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ const { getFeatures: getActiveFeatures } = featuresStore;
const withTogglePoint = withTogglePointFactory({
getActiveFeatures,
variantKey: "size",
logError: console.log
plugins: [
{
onVariantError: console.error
}
]
});

export default withTogglePoint;
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.3.1] - 2025-09-30

### Changed

- move to use new `onVariantError` plugin hook over `logError` to consume [0.5.0](../../../packages/react-pointcuts/docs/CHANGELOG.md#040---2025-07-06) of `react-pointcuts` package.

## [0.3.0] - 2025-09-29

### Added
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.0",
"version": "0.3.1",
"private": true,
"type": "module",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const getActiveFeatures = () => getFeatures().decisions;

const withTogglePoint = withTogglePointFactory({
getActiveFeatures,
logError: console.log,
plugins: [
{
onVariantError: console.error,
onCodeSelected: ({ matchedFeatures }) => {
if (matchedFeatures?.length) {
const [[feature]] = matchedFeatures;
Expand Down
Loading
Loading