Repository navigation
fix(javascript)!: preserve Vite dependency values and uncertainty #1840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
evenafterallisaid
wants to merge
106
commits into
morluto:main
Choose a base branch
from
evenafterallisaid:fix/vite-dependency-values
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+11,974
−685
Open
Changes from 1 commit
Commits
Show all changes
106 commits
Select commit
Hold shift + click to select a range
d04d671
fix(javascript): preserve vite dependency values and indexes
evenafterallisaid 215d21b
fix(javascript): merge main and track shared Vite cache mutations
morluto f029c24
style: format review corrections
morluto 1bb4b1f
fix(javascript): retain Vite cache ownership across copies
morluto a282791
fix(javascript): preserve Vite cache ownership facts
df2fa18
fix(javascript): retain cache ownership for getter overrides
0412c78
fix(javascript): complete Vite cache ownership cases
48fa42b
fix(javascript): preserve Vite cache ownership facts
morluto 3400d75
merge(main): refresh Vite checks against current source
morluto c4ebe5e
Merge branch 'main' into fix/vite-dependency-values
morluto effdc8e
Merge branch 'main' into fix/vite-dependency-values
morluto e1b4e33
fix(javascript): reconcile Vite analysis with current main
evenafterallisaid 2c501ec
fix(javascript): complete Vite cache ownership regressions
evenafterallisaid 3b09741
Merge remote-tracking branch 'upstream/main' into fix/vite-dependency…
evenafterallisaid af3a1ad
fix(javascript): retain inline cache escapes and assign targets
evenafterallisaid a8c7631
Merge remote-tracking branch 'upstream/main' into fix/vite-dependency…
evenafterallisaid 3a8121d
fix(javascript): track restored Vite cache identities and method effects
evenafterallisaid a6d61ca
fix(javascript): preserve Vite container children and property identity
evenafterallisaid 1fcace9
Merge remote-tracking branch 'upstream/main' into fix/vite-dependency…
evenafterallisaid 815c5d5
fix(javascript): preserve Vite cache identities and bounded projection
evenafterallisaid 88ce916
fix(javascript): close Vite cache mutation and decoding gaps
evenafterallisaid b9f0f2a
fix(javascript): reconcile upstream analysis finalizers
evenafterallisaid 7eaa00c
Merge remote-tracking branch 'upstream/main' into fix/vite-dependency…
evenafterallisaid 6222484
fix(javascript): retain cache effects across value transfers
evenafterallisaid 51de9d4
fix(javascript): preserve shared values returned by Vite helpers
evenafterallisaid b4347a2
fix(javascript): keep helper supplied tables from invalidating the de…
evenafterallisaid 41cc28e
chore(ci): align turbo lint inputs with upstream
evenafterallisaid 548c232
Merge remote-tracking branch 'upstream/main' into fix/vite-dependency…
evenafterallisaid c6efc75
fix(javascript): require plain data slots for mapped helper arguments
evenafterallisaid 157d76f
fix(javascript): expose unproven index protocols and inert index slots
evenafterallisaid b11b483
chore(ci): retrigger the required run for the launched-orphan lifecyc…
evenafterallisaid 5ac739c
fix(javascript): expose only selected tables for unproven index proto…
evenafterallisaid 92bf31a
fix(javascript): reuse selected tables for opaque Vite mapping
evenafterallisaid 7ee46c0
fix(javascript): retain selected Vite table allocation on escape
evenafterallisaid 38e5026
fix(javascript): scope escaped slots to reachable cache owners
evenafterallisaid 9455a93
merge main and preserve Vite analysis integration
evenafterallisaid 895c2b8
fix(javascript): retain exported and inherited Vite cache identities
evenafterallisaid a2749a8
fix(javascript): preserve supplied prototype ownership
evenafterallisaid e76ff97
fix(javascript): retain uncertainty after Vite table spreads
evenafterallisaid 8c8d36b
fix(javascript): revisit prototype proofs after late effects
evenafterallisaid 95577bd
merge main and preserve cooperative Vite analysis
evenafterallisaid 62628b3
fix(javascript): stop Vite decoding after effectful reads
evenafterallisaid 1b243e8
Merge branch 'main' into fix/vite-dependency-values
gensokyo-dev 581f875
chore: merge main and preserve Vite integration proofs
evenafterallisaid 8acd05f
fix: repair merged export and formatting checks
evenafterallisaid 72ce50d
fix(javascript): propagate implicit Vite cache effects
evenafterallisaid 6edb272
chore: merge main and preserve Windows Vite validation
evenafterallisaid 52c2a97
chore: merge current main
evenafterallisaid 09bf40f
test(javascript): distinguish cache reads from escapes
evenafterallisaid ffb83ef
fix(javascript): land deferred restrictions and skip constant escapes
evenafterallisaid 80c1c72
fix(javascript): align cache ordering with current main
evenafterallisaid d8e0366
fix(javascript): retain cache ownership through created prototypes
evenafterallisaid be11ee8
fix(javascript): retain cache ownership in loop bindings
evenafterallisaid b875ccd
chore: use the upstream launcher fixture repair
evenafterallisaid e861441
fix(javascript): separate yielded elements from array ownership
evenafterallisaid 727475a
fix(javascript): retain values from uncertain helper selections
evenafterallisaid aeeca27
Merge remote-tracking branch 'origin/main' into codex/vite-1840-prove…
morluto e6a3ce1
fix(javascript): retain Vite output markers after integration
morluto f03dc0d
fix: retain upstream behavior in Vite merge
morluto 4f7a4d6
Merge commit 'refs/rea-audit/latest-main' into codex/vite-1840-main-m…
morluto a9507c7
fix(javascript)!: retain Vite table values as candidates
morluto ccc2dff
fix: preserve Vite index uncertainty in table defaults
morluto 1a2d032
test: verify Vite default mutation at runtime
morluto 353e301
fix(javascript): retain inherited Vite values and iteration identity
morluto 6baf6a8
fix(javascript)!: preserve file occurrence identity in application gr…
morluto eb8e1ea
fix(javascript): classify Vite initializer identifier roles
morluto ffd0fd1
test(javascript): retain Vite candidates with harmless property keys
morluto 6b31f3a
test(javascript): exercise Vite property keys through CLI and MCP
morluto 374bcb4
fix(javascript): preserve selected Vite table value ownership
morluto 26e5551
test(javascript): exercise selected Vite values through CLI and MCP
morluto 64c7f0e
fix(javascript): scope intrinsic exposure to mapped values
morluto 4893a9e
fix(javascript): retain intrinsic prototype escape effects
morluto 37fe1e1
test(javascript): exercise intrinsic prototype escapes through CLI an…
morluto e183bb7
fix(javascript): retain unproven descriptor effects
morluto 8ff9445
test(javascript): exercise unknown prototype descriptors through CLI …
morluto 9dfe1ae
test(javascript): group Vite ownership regressions by behavior
morluto d063b37
fix(javascript): match URL source declarations across versions
morluto 5476350
test(javascript): exercise URL source maps through CLI and MCP
morluto c2766e4
fix(javascript): preserve copied value provenance
morluto faf6e2b
fix(javascript): index copy hazards by semantic order
morluto 8243462
test(javascript): exercise inherited prototype copies through CLI and…
morluto 0578fbf
fix(javascript): include prototype writes in cache read proofs
morluto ab92e4d
fix(javascript): invalidate helper family for shared method effects
morluto 9f6b470
test(javascript): group prototype effect regressions
morluto 8ae2c13
fix(javascript): preserve primitive candidates through shared effects
evenafterallisaid 697899a
test(javascript): verify source occurrence identities at boundaries
evenafterallisaid a9c9d68
fix(javascript): preserve own computed table values
evenafterallisaid 7ce8a45
test(javascript): align resource and template identity assertions
evenafterallisaid 59a948d
test(javascript): align occurrence and input diagnostic assertions
evenafterallisaid cdba1cc
fix(javascript): retain bundle correspondence across container versions
evenafterallisaid 9c119b9
chore: merge current main into vite dependency fix
evenafterallisaid 9888267
test(javascript): compare source maps using retained session evidence
evenafterallisaid 217801b
test(javascript): verify source map occurrence identity
evenafterallisaid 71d723f
test(javascript): select semantic chunks and preserve file occurrences
evenafterallisaid 0587d9d
fix(javascript): preserve copied values and source occurrence compari…
evenafterallisaid 3999f71
test(javascript): supply application view predicate
evenafterallisaid 5e8dbeb
test(javascript): admit module item view requests
evenafterallisaid 64a3bd0
fix(tests): find retained checkpoints by file occurrence
evenafterallisaid 0a88ed2
fix(javascript): preserve Vite receiver facts and index ordered writes
evenafterallisaid 3498d44
merge main and preserve shared JavaScript source facts
evenafterallisaid e1996f5
fix(javascript): guard changed constructors and yield indexed sorting
evenafterallisaid 80711fc
test(javascript): bound the snapshot ordering regression fixture
evenafterallisaid ee6bd3c
merge main and preserve JavaScript loader identity
evenafterallisaid 91a2db2
merge latest main and align Electron applicability tests
evenafterallisaid 97e86f5
fix(javascript): retain call authority and match unchanged Electron s…
evenafterallisaid ae97bb1
merge main and retain Vite constructor and call authority
evenafterallisaid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: preserve Vite index uncertainty in table defaults
- Loading branch information
commit ccc2dff624be48602d126d2540d4328cb0b6e706
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/domain/javascript/javascriptViteHelperDefaults.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| import { describe, expect, it } from "vitest"; | ||
|
|
||
| import { analyzeJavaScriptStaticSource } from "./javascriptStaticAnalysis.js"; | ||
|
|
||
| const candidates = (source: string) => | ||
| analyzeJavaScriptStaticSource(source) | ||
| .references.filter(({ kind }) => kind === "vite-table-candidate") | ||
| .map(({ specifier }) => specifier); | ||
|
|
||
| describe("Vite helper table initializer effects", () => { | ||
| it.each([ | ||
| ["(i = [])", null], | ||
| ["(i.length = 0)", null], | ||
| ["opaque(i)", null], | ||
| ["(arguments[0] = [])", null], | ||
| [`eval("i = []")`, null], | ||
| ["unrelated()", "./first.js"], | ||
| ["((i) => i)(0)", "./first.js"], | ||
| ])("accounts for a lowered default containing %s", (value, expected) => { | ||
| expect( | ||
| candidates(` | ||
| function __vite__mapDeps(i) { | ||
| var m = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : __vite__mapDeps; | ||
| var d = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (m.f || (m.f = [${value}, "./first.js"])); | ||
| return i.map(function (n) { return d[n]; }); | ||
| } | ||
| __vite__mapDeps([1]); | ||
| `), | ||
| ).toEqual([expected]); | ||
| }); | ||
|
|
||
| it.each([ | ||
| `const __vite__mapDeps = (i, m = __vite__mapDeps, d = m.f || (m.f = [(i = []), "./first.js"])) => i.map(n => d[n]);`, | ||
| `function __vite__mapDeps(i, m, d) { if (m === undefined) m = __vite__mapDeps; if (d === undefined) d = m.f || (m.f = [(i = []), "./first.js"]); return i.map(n => d[n]); }`, | ||
| ])("handles index writes in every admitted default form", (helper) => { | ||
| expect(candidates(`${helper}\n__vite__mapDeps([1]);`)).toEqual([null]); | ||
| }); | ||
| }); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.