Skip to content

Commit 710d15f

Browse files
authored
[54] support bi-directional filesystem conventions (#55)
1 parent b2961b0 commit 710d15f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+855
-591
lines changed

docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ N.B. See changelogs for individual packages, where most change will occur:
1414

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

17+
## [0.13.0] - 2025-10-21
18+
19+
### Changed
20+
21+
- updated to `0.11.0` of [`eslint-plugin-workspaces`](https://github.com/joshuajaco/eslint-plugin-workspaces) after [addition of ESLint9 support](https://github.com/joshuajaco/eslint-plugin-workspaces/commit/af855c3a3d8069366d4446747e91828ddf7560c6)
22+
- update `eslint.config.mjs` to utilise flat config
23+
1724
## [0.12.0] - 2025-09-30
1825

1926
### Added

eslint.config.mjs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@ import asosConfig from "./peripheral/eslint-config-asosconfig/index.js";
22
import globals from "globals";
33
import jsdoc from "eslint-plugin-jsdoc";
44
import markdown from "@eslint/markdown";
5-
import { FlatCompat } from "@eslint/eslintrc";
6-
import path from "path";
7-
import { fileURLToPath } from "url";
5+
import workspaces from "eslint-plugin-workspaces";
86

97
const scripts = ["*.{js,mjs}", "**/*.{js,mjs}"];
108
const markDowns = ["*.md", "**/*.md"];
119

12-
const compat = new FlatCompat({
13-
baseDirectory: path.dirname(fileURLToPath(import.meta.url))
14-
});
15-
1610
export default [
17-
...compat.extends("plugin:workspaces/recommended"),
11+
workspaces.configs["flat/recommended"],
1812
...asosConfig.map((config) => ({
1913
files: scripts,
2014
ignores: ["**/docs/**", "**/danger/**"],

examples/express/docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.3.1] - 2025-10-21
9+
10+
### Fixed
11+
12+
- removed "Vary" header from "animals" example, the page is meant to be un-cacheable, and the value was wrong in any case
13+
814
## [0.3.0] - 2025-10-20
915

1016
### Changed

examples/express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-toggle-point-express-example",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"type": "module",
55
"engines": {
66
"node": ">=20.6.0"

examples/express/src/routes/animals/middleware.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const contextMiddleware = (request, response, scopeCallBack) => {
88
response.status(StatusCodes.BAD_REQUEST).end();
99
return;
1010
}
11-
response.header("Vary", version);
1211
featuresStore.setValue({ value: { version }, scopeCallBack });
1312
};
1413

examples/next/docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.4.1] - 2025-10-21
9+
10+
### Changed
11+
12+
- update to take supply static `webpackNormalModule` corresponding to webpack plugin [version 0.9.0](../../../packages/webpack/docs/CHANGELOG.md#090---2025-07-29)
13+
814
## [0.4.0] - 2025-10-20
915

1016
### Changed

examples/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-toggle-point-next-example",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/next/playwright.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { defineConfig, type PlaywrightTestConfig } from "@playwright/test";
2-
// eslint-disable-next-line workspaces/no-relative-imports, workspaces/require-dependency
32
import baseConfig from "../../test/automation/base.config";
43

54
const THREE_MINUTES = 3 * 60 * 1000;

examples/next/src/app/fixtures/experiments/8-toggled-twice/__variants__/test-feature/test-variant/toggleHandlerFactory.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ interface ToggleHandler {
1010
featuresMap: Map<string, Map<string, ReactComponentModuleType>>
1111
) => React.Component;
1212
joinPoint: ReactComponentModuleType;
13-
variants: __WebpackModuleApi.RequireContext;
13+
variantPathMap: Map<string, ReactComponentModuleType>;
1414
}
15-
export default ({ togglePoint, joinPoint, variants }: ToggleHandler) => {
15+
export default ({ togglePoint, joinPoint, variantPathMap }: ToggleHandler) => {
1616
const variantsMap = new Map<string, ReactComponentModuleType>();
1717
const featuresMap = new Map([[FEATURE_KEY, variantsMap]]);
1818

19-
for (const key of variants.keys()) {
19+
for (const key of variantPathMap.keys()) {
2020
const [, , value] = key.split(".");
2121
const [start, end] = value.split("-");
2222

@@ -25,7 +25,7 @@ export default ({ togglePoint, joinPoint, variants }: ToggleHandler) => {
2525
charCode <= end.charCodeAt(0);
2626
charCode++
2727
) {
28-
variantsMap.set(String.fromCharCode(charCode), variants(key));
28+
variantsMap.set(String.fromCharCode(charCode), variantPathMap.get(key)!);
2929
}
3030
}
3131

examples/serve/docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.4.0] - 2025-10-21
9+
10+
### Changed
11+
12+
- updated toggle handlers to take a `variantPathMap` corresponding to webpack [version 0.9.0](../../../packages/webpack/docs/CHANGELOG.md#090---2025-07-29)
13+
814
## [0.3.0] - 2025-10-20
915

1016
### Changed

0 commit comments

Comments
 (0)