Skip to content

Basic array support#5

Open
54145a wants to merge 31 commits into
mainfrom
wip
Open

Basic array support#5
54145a wants to merge 31 commits into
mainfrom
wip

Conversation

@54145a

@54145a 54145a commented Jun 6, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 6, 2026 09:12

This comment was marked as resolved.

@54145a 54145a marked this pull request as draft June 6, 2026 09:34
@54145a 54145a marked this pull request as draft June 6, 2026 09:34
@54145a 54145a marked this pull request as draft June 6, 2026 09:34
@54145a 54145a marked this pull request as ready for review June 6, 2026 13:16
@54145a 54145a requested a review from Copilot June 6, 2026 13:17

This comment was marked as resolved.

54145a and others added 5 commits June 6, 2026 21:34
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

Comment thread storage.js
Comment thread storage.js
Comment thread storage.js
Comment thread storage.js
54145a and others added 2 commits June 6, 2026 22:04
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@54145a 54145a marked this pull request as draft June 7, 2026 02:17
@54145a 54145a changed the title Merge latest changes Basic array support Jun 9, 2026
@54145a 54145a marked this pull request as ready for review June 9, 2026 13:36
@54145a 54145a requested a review from Copilot June 9, 2026 13:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

Comments suppressed due to low confidence (1)

storage.js:59

  • When the same target object is encountered with a different currentPath, createDeepProxy() logs a warning but still returns the cached proxy. Because currentPath is captured in the proxy handler closure, reusing the old proxy can cause path-aware handlers (e.g. ones that persist updates by path.join('.')) to observe and write the wrong path, potentially corrupting stored keys.
	const cacheEntry = deepProxyCache.get(target);
	if (cacheEntry) {
		if (cacheEntry.firstPath.join(".") !== currentPath.join(".")) {
			console.warn(
				"Same object with different paths.",

Comment thread storage.js Outdated
Comment thread README.md Outdated
Comment thread README.md
Comment thread test.js Outdated
54145a and others added 3 commits June 9, 2026 21:44
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@54145a 54145a marked this pull request as draft June 9, 2026 14:37
@54145a 54145a marked this pull request as ready for review June 10, 2026 12:34
@54145a 54145a requested a review from Copilot June 10, 2026 12:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread storage.js
Comment on lines +479 to +482
const isOldBranch = oldNodeType === FlatSchemaValueType.FLAT_LINK || oldNodeType === FlatSchemaValueType.DEBOUNCE_ARRAY;
if (isOldBranch && !(oldNodeType === FlatSchemaValueType.DEBOUNCE_ARRAY && newNodeType === FlatSchemaValueType.DEBOUNCE_ARRAY)) {
this._clearCache(path);
}
Comment thread storage.js
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@54145a

54145a commented Jun 11, 2026

Copy link
Copy Markdown
Owner Author

Almost there…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants