chore: version packages#2751
Merged
Merged
Conversation
dc7c474 to
2c66f5f
Compare
2c66f5f to
72cf6cb
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@vertz/native-compiler@0.2.70
@vertz/native-compiler
0.2.67
Patch Changes
#2725
56e7e2fThanks @viniciusdacal! - fix(native-compiler): add repository/license/description fields to package.jsonnpm publish with
--provenancerejected the 0.2.66 publish with:The
@vertz/native-compilerpackage had never been published before, and its package.json was missingrepository,license, anddescription. npm's provenance attestation requires the manifest'srepository.urlto match the source repo recorded in the provenance bundle. Added all three fields matching the pattern used by the other@vertz/*packages.0.2.66
Patch Changes
4cc0aa9Thanks @viniciusdacal! - Fix false-positivebatchimport injection whenasync batch()appears as an object method definition0.1.1
Patch Changes
#2265
36b0f20Thanks @viniciusdacal! - feat(ui): add form-level onChange with per-input debounce<form onChange={handler}>fires when any child input changes, receiving all current form values as aFormValuesobject. Per-inputdebounce={ms}delays the callback for text inputs while immediate controls (selects, checkboxes) flush instantly.Breaking:
onChangeon<form>now receivesFormValuesinstead of a DOMEvent. Useref+addEventListenerfor the raw DOM event.@vertz/cli@0.2.70
Patch Changes
@vertz/cloudflare@0.2.70
Patch Changes
@vertz/codegen@0.2.70
Patch Changes
@vertz/core@0.2.70
Patch Changes
create-vertz@0.2.70
Patch Changes
@vertz/db@0.2.70
Patch Changes
@vertz/desktop@0.2.70
Patch Changes
@vertz/fetch@0.2.70
Patch Changes
@vertz/runtime@0.2.70
Patch Changes
#2750
f7f05f4Thanks @viniciusdacal! - fix(vtz): vi.mock propagates through transitive imports (resolves @vertz/cli production-build: BuildOrchestrator analyze() call fails with undefined compiler #2731)When a test file did
vi.mock('m', () => ({ fn: ... }))and then droveproduction code that itself called
await import('m'), the production codegot the REAL frozen module namespace —
spyOnmutations from the testdidn't propagate. Static imports of mocked modules were fine; only the
dynamic-import path leaked the real module.
Three concrete fixes, all needed together:
Wrap dynamic
import()in non-test files when the test runner isactive. The mock-hoisting compiler pass already wrapped dynamic imports
in test files via
__vertz_unwrap_moduleso frozen ES module namespacesbecome mutable; this PR extends the same wrap to every module compiled
while
spy_exportsis on (i.e., the entire dependency graph during avtz testrun). Without it,cli.ts → await import('@vertz/compiler')bypassed the spy installed by
cli.test.ts.Restore initial impl on
mockRestore()formock(impl). vtz hadmockRestore = mockResetfor plain mocks, which dropped thefactory-supplied implementation to
null. This broke the common patternvi.mock('m', () => ({ fn: mock(() => obj) }))+vi.restoreAllMocks()in
afterEach— the first cleanup nukedfn's impl for every followingtest. Now matches vitest: "for
vi.fn(impl),mockRestorereverts toimpl".mockResetstill clears, as documented.Union synthetic-polyfill exports into the mock proxy. When mocking a
bare specifier with a vtz polyfill (esbuild,
node:*), the proxy moduleonly exported names declared on disk + names returned by the factory.
CJS modules like esbuild expose nothing the regex-based extractor can see,
so transitive imports of unmocked exports (
import { transformSync } from 'esbuild'in@vertz/ui-server/bun-plugin) failed at import time with"module does not provide an export named transformSync" — even when the
call path never reached
transformSync()at runtime. The proxy nowadvertises the full polyfill surface (values are
undefinedunless thefactory supplied them), preserving spec-compliant import resolution.
Unskipped 3 test blocks that had been parked on this:
packages/cli/src/__tests__/cli.test.ts(codegen command action),packages/cli/src/production-build/__tests__/orchestrator.test.ts(BuildOrchestrator), and
packages/cli/src/production-build/__tests__/ui-build-pipeline.test.ts(buildUI). 133/134 tests pass; one buildUI assertion that expects an actual
Brotli
.brsidecar remains skipped because vtz'snode:zlibpolyfill is apassthrough — tracked separately as a runtime polyfill gap, not a mock issue.
#2749
d5d0a76Thanks @viniciusdacal! - fix(vtz):node:http.createServer()+listen()+fetch()+close()no longer hangs under the vtz test runner (resolves Test runtime gap: node:http server tests in @vertz/ui-server hang under vtz #2718, happy-dom GlobalRegistrator state doesn't persist from preload into test body in @vertz/docs #2720)The synthetic
node:httpmodule exposedcreateServer()whoselisten()implementation treated
globalThis.__vtz_http.serve()as asynchronous —but
serve()is a synchronous op that returns the server object directly.The resulting
.then()on a non-thenable threw aTypeErrorthat wasswallowed by the
new Promise((resolve) => server.listen(0, resolve))idiom, so the listen callback never fired and tests hung at the 120 s
watchdog. The same bug existed in the CJS
require('http')shim.Fixing the shim surfaced three secondary defects in the underlying op
layer:
close()aborted the axum task immediately, cancelling in-flightresponse futures mid-reply so clients hung on
fetch(). Replaced theabort-handle teardown with axum's
with_graceful_shutdown(...)signalso existing connections drain before the task exits.
op_http_serve_respondkeyed the pending oneshot map per server,so replying after close (which removed the
ServerInstancefrom state)silently dropped the response. Moved the pending-responses map onto
HttpServeStateand keyed it globally byrequest_idso in-flightreplies work across close.
op_http_serve_acceptandop_http_serve_respondreturned an"Unknown server id" error when the JS accept loop re-polled after
close(), poisoning the event loop and failing unrelated tests. Bothops now treat a missing server as a soft null/no-op.
The JS
createServer()shim also gained proper Node-compatible semantics:listen(cb)invokes the callback viaqueueMicrotask;close(cb)defers the callback until all in-flight requests finish; new connections
received after
close()receive a503instead of entering the userhandler.
Previously-quarantined
packages/ui-server/src/__tests__/node-handler.local.tsand
packages/docs/src/__tests__/docs-cli-actions.local.tsare restoredto
.test.tsand now run undervtz test. Thetest:integrationnpmscripts that fell back to bun for these files are removed.
@vertz/schema@0.2.70
Patch Changes
@vertz/server@0.2.70
Patch Changes
@vertz/testing@0.2.70
Patch Changes
@vertz/theme-shadcn@0.2.70
Patch Changes
@vertz/tui@0.2.70
Patch Changes
@vertz/ui@0.2.70
Patch Changes
@vertz/ui-canvas@0.2.70
Patch Changes
@vertz/ui-primitives@0.2.70
Patch Changes
@vertz/ui-server@0.2.70
Patch Changes
vertz@0.2.70
Patch Changes
@vertz/compiler@0.2.70
@vertz/create-vertz-app@0.2.70
@vertz/errors@0.2.70
@vertz/icons@0.2.70
@vertz/test@0.2.70
@vertz-benchmarks/vertz-app@0.0.68
Patch Changes
@vertz-examples/task-manager@0.2.70
Patch Changes
@vertz/cli-runtime@0.2.70
Patch Changes
@vertz/native-compiler-darwin-arm64@0.2.70
@vertz/native-compiler-darwin-arm64
0.2.65
@vertz/native-compiler-darwin-x64@0.2.70
@vertz/native-compiler-darwin-x64
0.2.65
@vertz/native-compiler-linux-arm64@0.2.70
@vertz/native-compiler-linux-arm64
0.2.65
@vertz/native-compiler-linux-x64@0.2.70
@vertz/native-compiler-linux-x64
0.2.65
@vertz/runtime-darwin-arm64@0.2.70
@vertz/runtime-darwin-x64@0.2.70
@vertz/runtime-linux-arm64@0.2.70
@vertz/runtime-linux-x64@0.2.70