@octanejs/window 0.0.8 → 0.0.9

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.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Brian Vaughn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/UPSTREAM.md CHANGED
@@ -15,15 +15,18 @@
15
15
  | Canonical tag archive SHA-256 | `d0b66c0138c6355051a75086ce0681aa5880249c0d14f1e9759185daee16e452` |
16
16
  | License | MIT, copyright Brian Vaughn |
17
17
 
18
- The byte-exact tagged `lib/` tree, published npm declaration bundle, repository
19
- package metadata, and license are vendored under `upstream/` for provenance and
20
- parity evidence. They are audit inputs only and must remain excluded from the
21
- published package.
22
-
23
- Run `pnpm --dir packages/window upstream:verify` to verify all 58 vendored
24
- artifacts, the exact file set, the published declaration bundle, the 14 upstream
25
- test artifacts and their 117 test registrations, package metadata, and the
26
- complete root export inventory.
18
+ The byte-exact tagged tree (the `lib/` sources and tests, repository package
19
+ metadata, Vitest setup, and license) is vendored under `upstream/` and verifies
20
+ offline against the upstream git blob shas recorded in
21
+ `audit/upstream.lock.json`. The published npm declaration bundle is vendored
22
+ under `upstream-artifact/`, hash-pinned by `audit/upstream-contract.json`. The
23
+ pinned license is republished at the package root as `LICENSE.upstream`. All of
24
+ it is audit input only and must remain excluded from the published package.
25
+
26
+ Run `pnpm --dir packages/window upstream:verify` to verify the lock-pinned tree
27
+ and all 57 vendored artifacts, the exact file set, the published declaration
28
+ bundle, the 14 upstream test artifacts and their 117 test registrations, package
29
+ metadata, and the complete root export inventory.
27
30
 
28
31
  ## Public v2.3.0 surface
29
32
 
@@ -43,16 +46,17 @@ the binding contract.
43
46
  The immutable boundary is every file under upstream `lib/`, plus `src/constants.ts`,
44
47
  `vitest.setup.js`, `package.json`, and the MIT license. Production modules are
45
48
  ported source-correspondently under `src/`; test modules are either executed
46
- byte-exact in the pristine lane or generated into `tests/upstream/` using the
47
- audited transformations in `audit/adapted-transformations.json`. Upstream test
48
- utilities remain byte-locked inputs and are mapped to the adapted utilities by
49
- the generator. No vendored file is published.
49
+ byte-exact in the pristine lane or regenerated into `tests/upstream/`
50
+ (gitignored) from the lock's mechanical `adaptedRewrites` plus the two
51
+ committed divergence patches under `audit/upstream-patches/`, with the
52
+ transformation classifications documented in
53
+ `audit/adapted-transformations.json`. No vendored file is published.
50
54
 
51
55
  | Upstream module class | Octane disposition | Evidence |
52
56
  | --- | --- | --- |
53
57
  | `lib/components/**`, `lib/core/**`, `lib/hooks/**`, `lib/utils/**` production files | Source-correspondent port in `src/**`; React imports and renderer syntax are the only framework adaptations | `audit/adapted-transformations.json`, `tests/audit/adapted.test.mjs` |
54
58
  | `lib/**/*.test.{ts,tsx}` | Unchanged pristine execution and generated adapted execution | `audit/pristine-runtime.json`, `audit/adapted-runtime.json` |
55
- | `lib/utils/test/**`, `vitest.setup.js` | Unchanged pristine support; source-correspondent adapted support | `upstream/SHA256SUMS`, `tests/generate-adapted-tests.mjs` |
59
+ | `lib/utils/test/**`, `vitest.setup.js` | Unchanged pristine support; source-correspondent adapted support | `audit/upstream.lock.json` (adapted mapping and rewrites) |
56
60
  | Published declaration bundle | Unchanged pristine oracle; identical shared assertion program targets Octane source | `audit/type-contract.json`, `typetests/**` |
57
61
  | Repository metadata and license | Vendored provenance only | `tests/audit/upstream.test.mjs` |
58
62
 
@@ -79,26 +83,26 @@ the generator. No vendored file is published.
79
83
 
80
84
  ## Upstream test crosswalk
81
85
 
82
- Every row runs unchanged in `react-window-pristine` and as a generator-produced,
83
- audited adaptation in `react-window-adapted`; the inventories prove all 117
86
+ Every row runs unchanged in `react-window-pristine` and as a lock-regenerated
87
+ adaptation in `react-window-adapted`; the inventories prove all 117
84
88
  registered cases are unique and executed.
85
89
 
86
90
  | Upstream test file | Pristine disposition | Adapted disposition |
87
91
  | --- | --- | --- |
88
- | `components/grid/Grid.test.tsx` | byte-exact | generated framework adaptation |
89
- | `components/list/List.test.tsx` | byte-exact | generated framework adaptation |
90
- | `components/list/useDynamicRowHeight.test.ts` | byte-exact | generated framework adaptation |
91
- | `core/createCachedBounds.test.ts` | byte-exact | generated import adaptation |
92
- | `core/getEstimatedSize.test.ts` | byte-exact | generated import adaptation |
93
- | `core/getOffsetForIndex.test.ts` | byte-exact | generated import adaptation |
94
- | `core/getStartStopIndices.test.ts` | byte-exact | generated import adaptation |
95
- | `core/useCachedBounds.test.ts` | byte-exact | generated hook adaptation |
96
- | `core/useVirtualizer.test.ts` | byte-exact | generated hook adaptation |
97
- | `hooks/useMemoizedObject.test.ts` | byte-exact | generated hook adaptation |
98
- | `hooks/useResizeObserver.test.ts` | byte-exact | generated hook adaptation |
99
- | `hooks/useStableCallback.test.tsx` | byte-exact | generated hook adaptation |
100
- | `utils/parseNumericStyleValue.test.ts` | byte-exact | generated import adaptation |
101
- | `utils/shallowCompare.test.ts` | byte-exact | generated import adaptation |
92
+ | `components/grid/Grid.test.tsx` | byte-exact | regenerated framework adaptation |
93
+ | `components/list/List.test.tsx` | byte-exact | regenerated framework adaptation |
94
+ | `components/list/useDynamicRowHeight.test.ts` | byte-exact | regenerated framework adaptation |
95
+ | `core/createCachedBounds.test.ts` | byte-exact | regenerated import adaptation |
96
+ | `core/getEstimatedSize.test.ts` | byte-exact | regenerated import adaptation |
97
+ | `core/getOffsetForIndex.test.ts` | byte-exact | regenerated import adaptation |
98
+ | `core/getStartStopIndices.test.ts` | byte-exact | regenerated import adaptation |
99
+ | `core/useCachedBounds.test.ts` | byte-exact | regenerated hook adaptation |
100
+ | `core/useVirtualizer.test.ts` | byte-exact | regenerated hook adaptation |
101
+ | `hooks/useMemoizedObject.test.ts` | byte-exact | regenerated hook adaptation |
102
+ | `hooks/useResizeObserver.test.ts` | byte-exact | regenerated hook adaptation |
103
+ | `hooks/useStableCallback.test.tsx` | byte-exact | regenerated hook adaptation |
104
+ | `utils/parseNumericStyleValue.test.ts` | byte-exact | regenerated import adaptation |
105
+ | `utils/shallowCompare.test.ts` | byte-exact | regenerated import adaptation |
102
106
 
103
107
  ## Port-authored evidence crosswalk
104
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/window",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -31,9 +31,10 @@
31
31
  "types": "src/index.ts",
32
32
  "files": [
33
33
  "src",
34
+ "LICENSE.md",
35
+ "LICENSE.upstream",
34
36
  "README.md",
35
- "UPSTREAM.md",
36
- "LICENSE.md"
37
+ "UPSTREAM.md"
37
38
  ],
38
39
  "exports": {
39
40
  ".": "./src/index.ts"
@@ -42,7 +43,7 @@
42
43
  "@types/react": "^19.2.17"
43
44
  },
44
45
  "peerDependencies": {
45
- "octane": "0.1.42"
46
+ "octane": "0.1.43"
46
47
  },
47
48
  "devDependencies": {
48
49
  "@testing-library/jest-dom": "^6.9.1",
@@ -53,11 +54,11 @@
53
54
  "react-dom": "^19.2.7",
54
55
  "react-window": "2.3.0",
55
56
  "vitest": "^4.1.10",
56
- "@octanejs/testing-library": "0.1.39",
57
- "octane": "0.1.42"
57
+ "@octanejs/testing-library": "0.1.40",
58
+ "octane": "0.1.43"
58
59
  },
59
60
  "scripts": {
60
- "adapted:generate": "node tests/generate-adapted-tests.mjs",
61
+ "adapted:generate": "node ../../scripts/react-port/materialize.mjs run --package-dir .",
61
62
  "test": "pnpm upstream:verify && pnpm test:audit && node ../../scripts/react-parity/harness.mjs run-required --manifest packages/window/audit/react-parity.json",
62
63
  "upstream:verify": "node tests/audit/verify-upstream.mjs",
63
64
  "test:audit": "node --test tests/audit/*.test.mjs",