@trackunit/eslint-plugin-trackunit 0.6.105 → 0.6.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
## 0.6.107 (2026-08-17)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated css-classname-utils to 0.0.13
|
|
6
|
+
- Updated shared-utils to 1.16.10
|
|
7
|
+
|
|
8
|
+
## 0.6.106 (2026-08-17)
|
|
9
|
+
|
|
10
|
+
### 🩹 Fixes
|
|
11
|
+
|
|
12
|
+
- **GLU-1820:** revert reload guard off the shared storage helpers ([4a8d2d8780b](https://github.com/Trackunit/manager/commit/4a8d2d8780b))
|
|
13
|
+
|
|
14
|
+
### 🧱 Updated Dependencies
|
|
15
|
+
|
|
16
|
+
- Updated css-classname-utils to 0.0.12
|
|
17
|
+
- Updated shared-utils to 1.16.9
|
|
18
|
+
|
|
19
|
+
### ❤️ Thank You
|
|
20
|
+
|
|
21
|
+
- Cursor @cursoragent
|
|
22
|
+
- Mikkel Thorbjørn Andersen
|
|
23
|
+
|
|
1
24
|
## 0.6.105 (2026-08-13)
|
|
2
25
|
|
|
3
26
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/eslint-plugin-trackunit",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.107",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"engines": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@nx/eslint-plugin": "23.1.0",
|
|
11
|
-
"@trackunit/css-classname-utils": "0.0.
|
|
11
|
+
"@trackunit/css-classname-utils": "0.0.13",
|
|
12
12
|
"@typescript-eslint/eslint-plugin": "8.58.1",
|
|
13
13
|
"@typescript-eslint/utils": "8.58.1",
|
|
14
14
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -2,3 +2,4 @@ import type { Linter } from "eslint";
|
|
|
2
2
|
export declare const noDirectStorageGlobalsRule: Linter.RuleEntry;
|
|
3
3
|
export declare const noDirectStoragePropertiesRule: Linter.RuleEntry;
|
|
4
4
|
export declare const noDirectStoragePropertyExceptionOverrides: Linter.Config;
|
|
5
|
+
export declare const noDirectStorageGlobalsExceptionOverrides: Linter.Config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.noDirectStoragePropertyExceptionOverrides = exports.noDirectStoragePropertiesRule = exports.noDirectStorageGlobalsRule = void 0;
|
|
3
|
+
exports.noDirectStorageGlobalsExceptionOverrides = exports.noDirectStoragePropertyExceptionOverrides = exports.noDirectStoragePropertiesRule = exports.noDirectStorageGlobalsRule = void 0;
|
|
4
4
|
const utils_1 = require("../utils");
|
|
5
5
|
const localStorageMessage = "Use useLocalStorage or useLocalStorageReducer from @trackunit/react-components instead of direct localStorage access.";
|
|
6
6
|
const sessionStorageMessage = "Use useSessionStorage or useSessionStorageReducer from @trackunit/react-components instead of direct sessionStorage access.";
|
|
@@ -52,4 +52,24 @@ exports.noDirectStoragePropertyExceptionOverrides = {
|
|
|
52
52
|
"no-restricted-properties": "off",
|
|
53
53
|
},
|
|
54
54
|
};
|
|
55
|
+
// Files exempted from the bare `localStorage`/`sessionStorage` globals check (as opposed to
|
|
56
|
+
// `window.localStorage`, covered by noDirectStoragePropertyExceptionOverrides above).
|
|
57
|
+
// Deliberately narrow: only for bundles where pulling in the shared storage helpers' zod +
|
|
58
|
+
// superjson runtime is itself the problem, not a call site that merely predates the migration.
|
|
59
|
+
const directStorageGlobalExceptionFiles = [
|
|
60
|
+
// A <script defer> loaded synchronously in the <head> of every Iris app iframe (see
|
|
61
|
+
// libs/iris-app-sdk/iris-app-build-utilities/src/plugin-shared/index.html and
|
|
62
|
+
// apps/iris-app-sdk-server/src/app/iris-app-content.ts). Routing its two-number reload
|
|
63
|
+
// guard through readLocalStorageValue/writeLocalStorageValue pulls zod and superjson into
|
|
64
|
+
// this bundle, roughly 4x'ing its size (measured ~31.9 KB -> ~128.6 KB raw, ~9.4 KB -> ~30.4
|
|
65
|
+
// KB gzip) for every one of the ~118 Iris apps' iframe boots — not worth it for two numbers.
|
|
66
|
+
"apps/iris-app-loader/src/iris-app-loader.ts",
|
|
67
|
+
];
|
|
68
|
+
exports.noDirectStorageGlobalsExceptionOverrides = {
|
|
69
|
+
basePath: (0, utils_1.findMonorepoRoot)(),
|
|
70
|
+
files: directStorageGlobalExceptionFiles,
|
|
71
|
+
rules: {
|
|
72
|
+
"no-restricted-globals": "off",
|
|
73
|
+
},
|
|
74
|
+
};
|
|
55
75
|
//# sourceMappingURL=no-direct-storage-access.js.map
|