Commit activity
Last 12 weeks · 0 commits
Community health
4 of 6 standards met
Recent PRs & issues
Description The key path of and comes from the URL, and the patch from the request body. , and followed both through , and and into inherited properties, so a request could write to or another shared built-in of the dev server process. The same patches reach every connected client through and . Changes: a key path containing a , or segment is answered with ; ignores such a path and returns for it, and both follow own properties only drops keys; and skip them, and recurses into own properties only ( and stay usable as ordinary data keys in a body) the module id map is created without a prototype, so a key like is plain data a body that is not JSON, or a write below a primitive, is answered with instead of rejecting the middleware Legitimate behaviour is unchanged: nested keys, array patches, /, . Tests covers , , , (object and array), and the middleware. 8 of its 9 cases fail on ; the full suite passes, and is clean. I am happy to adjust the approach (for example a stricter key allowlist instead of the segment check) if you prefer another shape.
Describe the bug That's quite a strange bug but when chrome devtools is open, Server ref are really much slower. If you have two synced clients, one with devtools open and the other one without devtools open: data coming from the client without devtools open is fast (and updates on the other client are also fast) data coming from the client with devtools open is slow (slow outgoing logs when using ) No problem with firefox. Reproduction https://github.com/tonai/vue-app System Info Used Package Manager npm Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [X] The provided reproduction is a minimal reproducible of the bug.
Recent fixes
Clear and concise description of the problem In peerDependencies states that should be 2.x or 3.x. It would be greate if it can be compatible with 4.x. Suggested solution Maybe there is nothing to do but to update Alternative _No response_ Additional context _No response_ Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Describe the bug When using a server ref that has been declared with: Then imported with: When we try to update the ref in a browser instance, there is an error in the other browser instances: . Also I tried to reproduce directly in the repo to add an example in the example app, but I also have an error when trying to start the app: Reproduction https://github.com/tonai/vue-app System Info Used Package Manager pnpm Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [X] The provided reproduction is a minimal reproducible of the bug.
Repository: antfu/vite-plugin-vue-server-ref. Description: Share state between clients and Vite server Stars: 75, Forks: 3. Primary language: TypeScript. Languages: TypeScript (62.9%), JavaScript (33%), Vue (2.6%), HTML (1.5%). Latest release: v1.0.0 (1y ago). Open PRs: 1, open issues: 1. Last activity: 1y ago. Community health: 85%. Top contributors: antfu, tonai.