Compare commits

..
2 Commits
Author SHA1 Message Date
Lauri Ojansivu a99de56eba Merge remote-tracking branch 'origin/main' 2026-11-13 20:21:51 +02:00
Lauri Ojansivu 1ac1ed4bb8 Updated Meteor skills 2026-11-13 20:21:40 +02:00
82 changed files with 2087 additions and 618 deletions

No files matched your search

+40 -47
View File
@@ -7,7 +7,8 @@ description: >
ServiceConfiguration.configurations.upsertAsync, Accounts.createUserAsync,
Accounts.setPasswordAsync, Accounts.forgotPassword, Accounts.resetPassword,
Accounts.verifyEmail, useHttpOnlyCookies, clientStorage,
Meteor.loginWithPasswordAnd2faCode, email verification. Use this skill
Meteor.loginWithPasswordAnd2faCode, email verification, accounts-express,
authFetchAllowedOrigins. Use this skill
when the user asks about signups, signins, or asks about token storage
vs HttpOnly cookies.
metadata:
@@ -17,7 +18,7 @@ metadata:
area: auth
tagline: "Wire up authentication in Meteor 3 (accounts-password, OAuth providers, 2FA, passwordless, email verification)."
bundle: ["fullstack"]
docs_synced_at: "2026-09-29"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -37,6 +38,11 @@ the client a resume token mapped to that document.
5. Token storage on the client? Default is Web Storage. Meteor 3.3+
supports an HttpOnly cookie flow; see the section below.
For a custom users collection, configure both runtimes before app reads or
validators. Meteor 3.6 fixes collection setup and publication lookup; review
[collection identity and client-write policy](references/users-collection.md)
before changing profile rules.
## Username + password
```javascript
@@ -114,21 +120,21 @@ Meteor.startup(() => {
}
```
After restart and login, `Meteor.loginToken*` no longer appears in
`localStorage`; the browser receives an HttpOnly `meteor_login_token`
cookie. Each tab keeps its own in-memory credentials. DDP authentication still
reads the resume token into memory; this does not protect it from a malicious
script already executing in the application origin.
After restart and login, verify an HttpOnly `meteor_login_token` cookie and
no persisted `Meteor.loginToken*`. Tabs still hold credentials in memory
for DDP; active same-origin XSS can access them.
With `accounts-base@3.3.1` (Meteor 3.5.2), the server handles cookie endpoints
only when it is opted in too. A client-only setting can therefore produce an
HTML response or 404 from later handlers. The `/set` body limit is 4096 bytes;
larger requests return HTTP 413. See
[cookie endpoint troubleshooting](references/http-only-cookies.md) for the
routes, version boundary, and diagnostic checks. Meteor 3.6-beta.1's
`accounts-base@3.4.0-beta360.1` also requires trusted origins and valid tokens,
routes, version boundary, and diagnostic checks. Meteor 3.6's
`accounts-base@3.4.0` also requires trusted origins and valid tokens,
uses `SameSite=Strict`, and adds a separate per-address endpoint rate limit.
Review custom callers and cross-site entry flows before upgrading.
These protections are also backported in Meteor 3.5.5's `accounts-base@3.3.2`.
Review custom callers and cross-site entry flows before upgrading. Distinguish invalid sessions from transient or
rate-limit responses before retrying or discarding credentials.
## OAuth (Google example)
@@ -162,43 +168,28 @@ Meteor.loginWithGoogle(
`accounts-facebook`, `accounts-twitter`, `accounts-apple`,
`accounts-meetup`, `accounts-weibo`.
To encrypt OAuth secrets at rest, add `oauth-encryption` and pass
`oauthSecretKey` to `Accounts.config`. This seals the provider application
secret in `ServiceConfiguration.configurations.secret` and the supported
provider-specific user token fields. It does not create a generic
`Meteor.users.services.<provider>.secret` field. See `meteor-security`.
For native Google/Facebook login, see
[native token validation](references/oauth-services.md#native-google-and-facebook-tokens).
For production setup on 3.4.4, 3.5.5 and 3.6.1, use server configuration;
see [client configuration restrictions](references/oauth-services.md#production-service-configuration).
For `accounts-express` authenticated fetch, check the resolved version and
[trusted destinations](references/authenticated-fetch.md) before forwarding
credentials to another origin. Cookie endpoint and fetch allowlists are separate.
For provider and per-user credential encryption, use `oauth-encryption`
and top-level `Accounts.config({ oauthSecretKey })`. See `meteor-security`
and the OAuth reference for supported fields and key requirements.
## Email verification and reset
```javascript
// client
Accounts.forgotPassword({ email }, (err) => { ... });
The 3.4.4, 3.5.5 and 3.6.1 security releases add verification-link expiry
and password-change revocation. Follow [password flows](references/password-flows.md)
for exact package pairings, configuration and earlier-version behavior.
// reset page
Accounts.resetPassword(token, newPassword, (err) => { ... });
// verify email
Accounts.verifyEmail(token, (err) => { ... });
```
Customize the URL pattern that lands in the email:
```javascript
Accounts.urls.resetPassword = (token) =>
Meteor.absoluteUrl(`reset/${token}`);
Accounts.urls.verifyEmail = (token) =>
Meteor.absoluteUrl(`verify/${token}`);
```
Both setters accept async functions too (Meteor 3.x).
Customize the message:
```javascript
Accounts.emailTemplates.resetPassword.subject = () => "Reset your password";
Accounts.emailTemplates.resetPassword.text = (user, url) =>
`Reset link: ${url}`;
```
Use the client callbacks for `forgotPassword`, `resetPassword` and
`verifyEmail`; await their server email APIs. The reference also covers
`Accounts.urls` and email-template customization, stale links and 2FA.
## Passwordless
@@ -226,11 +217,13 @@ Set `userCreationDisabled: true` for sign-in-only flows. Configure
`tokenSequenceLength`, `loginTokenExpirationHours`, and the
`Accounts.emailTemplates.sendLoginToken` template on the server. Treat the
token-request method as an abuse-sensitive endpoint and rate-limit repeated
requests. With Meteor 3.6-beta.1's `accounts-passwordless@3.1.2-beta360.1`
and `accounts-base@3.4.0-beta360.1`, the complete request is validated before
lookup/creation and joins the default Accounts DDP rate rule. See
requests. With Meteor 3.6's `accounts-passwordless@3.1.2`
and `accounts-base@3.4.0`, the complete request is validated before
lookup/creation and joins the default Accounts DDP rate rule. The 3.4.4 and
3.5.5 backports also validate/throttle requests. See
[passwordless request boundaries](references/passwordless-requests.md)
for custom callers and earlier packages.
for custom callers, one-time completion, 2FA and earlier packages. Retain the
default limiter and handle callback errors without an immediate retry loop.
## 2FA
@@ -0,0 +1,58 @@
# Authenticated fetch destinations
Use for browser fetch integration supplied by `accounts-express`. The
trusted-origin behavior ships in
Meteor 3.5.5 with `accounts-express@1.0.0_1` and 3.6.1 with `1.0.1`.
Inspect `.meteor/versions`; earlier packages do not enforce this boundary,
and the 3.4.4 release does not include `accounts-express`.
`Meteor.fetch` and `fetch` from `meteor/fetch` default to `auth: false`.
The `fetch` exported by `meteor/accounts-express` defaults to `auth: true`.
When `accounts-express` is loaded, its client wrapper also guards the first
two entry points if called with `auth: true`; it is not limited to its own export.
On the patched client, automatic credentials go only to the page origin,
the `Meteor.absoluteUrl()` (`ROOT_URL`) origin, or an explicitly allowed
HTTP(S) origin. An unrelated origin still receives the request, but without
an automatically added Bearer header or `credentials: 'include'`.
## Configure a trusted API
For an application-owned API, list the exact origin in public settings:
```json
{
"public": {
"packages": {
"accounts-express": {
"authFetchAllowedOrigins": ["https://api.example.com"]
}
}
}
}
```
An origin is scheme, host and port. A different subdomain, scheme or port
does not match. Relative URLs follow the document base URL; an external
`<base>` does not make its origin trusted. Do not allowlist an unknown host
merely because its request is missing authentication.
| Situation | Decision |
|---|---|
| Trusted API returns a browser CORS error | Verify its CORS handling, including `Authorization` and credentialed requests as applicable. This setting does not configure the API server. |
| Explicit `Authorization` header | Preserved even for an untrusted destination. The caller owns that disclosure; the automatic-origin guard is not a universal credential scrubber. |
| `auth: false` | Disables automatic Bearer and cookie-credentials behavior; it does not remove manually supplied headers. |
| Explicit `credentials` option or a `Request` with `credentials: 'omit'` | Respect the caller's choice. Do not override it to repair authentication. |
| HttpOnly cookies | Enable both runtimes and retain browser SameSite policy. The fetch allowlist does not change cookie attributes or grant cross-origin cookie refresh. |
| Server-side fetch | This client allowlist does not establish server destination trust. Verify the server's explicit token, destination and authorization policy separately. |
`httpOnlyCookieAllowedOrigins` is a different server setting for cookie
set/clear endpoints. Do not substitute it for `authFetchAllowedOrigins` or
promise that either defeats `SameSite=Strict`. See
[cookie troubleshooting](http-only-cookies.md).
Test a trusted and an unrelated destination without logging real tokens.
For an earlier constrained package, keep credentials limited to verified
destinations and plan a compatible update before relying on the new guard.
---
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/packages/accounts-express.md
@@ -111,7 +111,7 @@ cookies only in client startup. /_accounts/cookie/refresh returns HTML. Should
I replace the server route?"
Pass if the agent checks both runtime flags, enables the intended flow in
shared code or loaded public package settings, and explains fall-through to
shared code or separate loaded server/private and client/public package settings, and explains fall-through to
later handlers rather than a guaranteed 404. It must preserve the cookie
design, not return to localStorage or install a replacement token endpoint.
@@ -137,30 +137,30 @@ the fixed package shipped with 3.5.2, and proposes a compatible upgrade. Fail
if it enables cookies against the app's intent or assumes the new protections
apply to every release with HttpOnly support.
## Case 15: beta cookie endpoint failures
## Case 15: Meteor 3.6 cookie endpoint failures
Prompt: "On Meteor 3.6-beta.1 with accounts-base 3.4.0-beta360.1, our custom cookie set caller gets 403, then 415 after fixing Origin, then 401 with a made-up token. Can we loosen the route to restore login?"
Prompt: "On Meteor 3.6 with accounts-base 3.4.0, our custom cookie set caller gets 403, then 415 after fixing Origin, then 401 with a made-up token. Can we loosen the route to restore login?"
Pass if the agent: Checks trusted origin, JSON content type and a real unexpired login token in order; preserves the 4096-byte limit and server opt-in. Keeps tokens out of logs. Rejects bypasses and does not treat any string as a valid credential.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 16: Strict cookie cross-site entry
Prompt: "After upgrading to Meteor 3.6-beta.1, our accounts-express page is unauthenticated on the first navigation from another website. Would httpOnlyCookieAllowedOrigins fix it? Does HttpOnly mean active XSS cannot obtain our DDP token?"
Prompt: "After upgrading to Meteor 3.6, our accounts-express page is unauthenticated on the first navigation from another website. Would httpOnlyCookieAllowedOrigins fix it? Does HttpOnly mean active XSS cannot obtain our DDP token?"
Pass if the agent: Explains SameSite=Strict and the initial cross-site navigation boundary, distinguishes origin allowlisting from browser cookie policy, and proposes validating/adapting the entry flow. States that DDP still obtains the token in memory and active same-origin XSS remains a risk.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 17: HTTP versus DDP rate limits
Prompt: "On accounts-base 3.4.0-beta360.1, cookie refresh returns 429 behind our proxy. Should I call Accounts.removeDefaultRateLimit?"
Prompt: "On accounts-base 3.4.0, cookie refresh returns 429 behind our proxy. Should I call Accounts.removeDefaultRateLimit?"
Pass if the agent: Distinguishes the cookie endpoint default of 30 requests/10 seconds/client address from the Accounts DDP connection rule. Checks request loops and the actual trusted proxy count via HTTP_FORWARDED_COUNT before tuning. Does not remove the DDP rule as an HTTP fix.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 18: custom passwordless caller
Prompt: "Our Meteor 3.6-beta.1 custom DDP caller sends requestLoginTokenForUser with selector {email, username}, a top-level campaign field and userData.email set to an array. We want sign-in only. What changes and errors should we handle?"
Prompt: "Our Meteor 3.6 custom DDP caller sends requestLoginTokenForUser with selector {email, username}, a top-level campaign field and userData.email set to an array. We want sign-in only. What changes and errors should we handle?"
Pass if the agent: Requires exactly one nonempty selector field, documented top-level fields, correctly shaped userData/options and userCreationDisabled: true. Handles validation 400 and too-many-requests; states the default five requests/ten seconds per matched method per DDP connection, not a combined counter or mail quota per address.
Fail if it contradicts these boundaries or invents unsupported APIs.
@@ -169,12 +169,12 @@ Fail if it contradicts these boundaries or invents unsupported APIs.
Prompt: "We stay on Meteor 3.5.2 with accounts-base 3.3.1 and the older accounts-passwordless package. Can we rely on Strict cookies, trusted-origin token checks and the default limiter for token requests?"
Pass if the agent: Checks resolved versions and distinguishes 3.5.2 server opt-in/body limits from beta.1 hardening. Recommends a compatible upgrade or explicit earlier-version protections without claiming the new defaults already apply.
Pass if the agent: Checks resolved versions and distinguishes 3.5.2 server opt-in/body limits from 3.6 hardening. Recommends a compatible upgrade or explicit earlier-version protections without claiming the new defaults already apply.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 20: allowlisted set is not cross-origin refresh
Prompt: "On accounts-base 3.4.0-beta360.1, our custom same-site sibling-origin caller can set the cookie after allowlisting its origin. Can it use the same allowlist to refresh the DDP token cross-origin?"
Prompt: "On accounts-base 3.4.0, our custom same-site sibling-origin caller can set the cookie after allowlisting its origin. Can it use the same allowlist to refresh the DDP token cross-origin?"
Pass if the agent distinguishes credentialed CORS/preflight for set and clear
from the same-origin refresh flow. Refresh rejects same-site/cross-site Fetch
@@ -184,7 +184,7 @@ Fail if it treats successful set as proof of remote refresh support.
## Case 21: one default rule does not mean one shared counter
Prompt: "On Meteor 3.6-beta.1, do five login calls exhaust the default passwordless requestLoginTokenForUser allowance on that same DDP connection?"
Prompt: "On Meteor 3.6, do five login calls exhaust the default passwordless requestLoginTokenForUser allowance on that same DDP connection?"
Pass if the agent checks the default matcher's bucket fields: type, method
name and connectionId contribute, while userId/clientAddress are null. The
@@ -197,7 +197,7 @@ interval reset.
## Case 22: Nested OAuth completion
Prompt: "A beta.1 Meteor OAuth login opens a second login popup and reuses the first window. A cross-origin opener can also throw SecurityError. Does beta.3 help or should we relax CORS and trust any origin?"
Prompt: "A Meteor 3.5.2 OAuth login opens a second login popup and reuses the first window. A cross-origin opener can also throw SecurityError. Does 3.6 help or should we relax CORS and trust any origin?"
Pass if the agent checks oauth package, identifies unique popup name and caught opener fallback/close fixes, verifies login and callback origins, rejects permissive CORS and cross-origin shared-storage assumptions.
@@ -205,8 +205,142 @@ Fail if it disables origin protection, promises every cross-origin flow now work
## Case 23: Failure hooks and service domains
Prompt: "After adopting beta.3, what should our login-failure hook expect in attempt.user? Also restrictCreationByEmailDomain rejects users depending on service order. What if user.emails is nonempty but invalid and one service email matches?"
Prompt: "After adopting 3.6, what should our login-failure hook expect in attempt.user? Also restrictCreationByEmailDomain rejects users depending on service order. What if user.emails is nonempty but invalid and one service email matches?"
Pass if the agent uses resolved Accounts package, resolved user when found with absent-user/projection handling, preserves any valid service match when no user emails, retains nonempty user.emails precedence and policy.
Fail if it logs full user records, treats domain acceptance as verified email, removes restrictions or lets a service rescue an invalid nonempty email list.
## Case 24: Strict cookie entry navigation and transient failures
Prompt: "With accounts-base@3.4.0, the first request from an email link has no login cookie. We added httpOnlyCookieAllowedOrigins and credentials include, but it still happens. Refresh sometimes returns 429; should we erase credentials or retry immediately?"
Pass if the agent explains SameSite=Strict first cross-site navigation and that allowed origins/credentials do not override it, adapts the entry flow, distinguishes invalid-cookie 401 from transient/429, and uses bounded delayed recovery without changing to Web Storage or weakening the cookie.
## Case 25: Custom cookie set request
Prompt: "Our accounts-base@3.4.0 cookie client POSTs a full profile and a token as text/plain to /_accounts/cookie/set from a different origin. The token may have expired. How do we diagnose the failure behind a reverse proxy?"
Pass if the agent checks both runtime opt-in, trusted origin/ROOT_URL/Host, JSON content type, full 4096 UTF-8-byte payload and valid unexpired token, rejects logging credentials, and configures the actual proxy chain for client-address rate buckets. Fail if it replaces the core endpoint, bypasses token/size/origin validation or trusts arbitrary forwarded headers.
## Case 26: Users collection identity and instance ownership
Prompt: "In Meteor 3.6 with accounts-base@3.4.0, configure appUsers for both runtimes. What happens if we configure the same name again or change a separate AccountsServer instance? Does this copy old users?"
Pass if the agent configures early before application reads/validators, preserves same-name instance/validators and secondary-instance isolation from Meteor.users, and separates document migration from collection selection. Fail if it claims a live transactional switch or automatic copy.
## Case 27: Users collection without client mutation methods
Prompt: "Our custom Accounts users collection has defineMutationMethods false on the 3.6 pairing. Do we need to enable client writes for account indexes, or attach allow/deny validators to make setup work?"
Pass if the agent keeps the method-only policy, says 3.6 account indexes are still created, and avoids validators on a collection without mutation methods. Fail if it enables client writes to obtain indexes or silently applies this fixed setup to an older unresolved package.
## Case 28: Passwordless validation and request throttling
Prompt: "With accounts-passwordless@3.1.2 and accounts-base@3.4.0, direct DDP token requests use selector {$or:[{email:"a@example.com"}]} and await Accounts.requestLoginTokenForUser. We also retry too-many-requests immediately. Is the public wrapper still allowed to take a string selector and options.extra data for email templates? Can you correct this sign-in-only flow?"
Pass if the agent uses exactly one nonempty id/username/email object for direct DDP, distinguishes the public string convenience and preserves supported options.extra with application validation, wraps the client callback rather than assuming a Promise, sets userCreationDisabled true, handles validation/rate errors and preserves the default five-per-ten-second per-method/connection rule. Fail if it forwards operators or disables the limiter.
## Case 29: Older cookie contract
Prompt: "Our app must remain on Meteor 3.5.2 with accounts-base@3.3.1. Can we assume the 3.6 Strict cookie and endpoint origin/token/rate checks are already present? We have configured both runtimes."
Pass if the agent retains that release and its server opt-in/4096-byte limit, distinguishes the later hardened pairing, and proposes a compatible upgrade only if those additional guarantees are required. Fail if it promises every 3.6 protection or forces an unrequested provider/storage change.
## Case 30: Native Google audience
Prompt: "Meteor 3.6 native Google login rejects our Android access token because it targets the native client, not the configured web client. Can we accept it without the audience check?"
Pass if the agent keeps verification, configures an ID token for an accepted client with Google issuer and matching subject, or explicitly lists only the app's own native client IDs in additionalClientIds. Checks resolved google-oauth version. Fail if it trusts arbitrary IDs, decodes an unverified JWT as proof, or disables validation.
## Case 31: Facebook wrong-app token
Prompt: "On Meteor 3.6 facebookSignIn, debug_token says is_valid=true but app_id belongs to another app. Can we accept the returned user? Our second app is pinned to 3.5.3."
Pass if the agent rejects the wrong app, requires matching app ID and valid identity, keeps secrets out of diagnostics and recognizes the 3.5.3 facebook-oauth@1.12.0 backport. Fail if is_valid alone authorizes login or the guard is described as exclusive to 3.6.
## Case 32: Passwordless user token with 2FA
Prompt: "With accounts-passwordless@3.1.2, we send the user-level onCreateLoginToken token through a custom channel. A 2FA user first omits a code, then gives an invalid code. Can they retry that token? Should login verify their email? Two devices might submit it simultaneously."
Pass if the agent keeps the token usable after missing/invalid 2FA, uses passwordlessLoginWithTokenAnd2faCode with matching selector, permits only one successful atomic consumption and leaves email unverified for a user-level token. Fail if it bypasses 2FA, verifies email or relies only on disabled buttons.
## Case 33: Email-code completion and older packages
Prompt: "Does a successful email-code login on accounts-passwordless@3.1.2 verify that address and allow the code again? A second app uses 3.1.1. Can we assume both have the same concurrency protection?"
Pass if the agent verifies only the matching email and consumes the token once, requests a new token after use, and checks a compatible fix for 3.1.1 rather than promising identical atomic behavior.
## Case 34: Stale verification and 2FA
Prompt: "On accounts-password@3.3.2, an old verification link races with changing the email address. Another user gets 2fa-enabled from verifyEmail. Should we mark emails verified manually or treat both callbacks as successful login?"
Pass if the agent preserves token/address conditional checks, treats stale/replayed links as errors and requests a fresh current-address link. Distinguishes verified-email-but-no-login under 2FA and continues normal 2FA login. Keeps the later expiry/revocation patch separate from this atomic-consumption package. Fail if it manually verifies, bypasses login checks or applies the later options to this older pairing.
## Case 35: Verification expiry and password-change revocation
Prompt: "On Meteor 3.5.5 with accounts-base@3.3.2 and accounts-password@3.3.1_2, a four-day-old verification link fails. A newer link also fails after setPasswordAsync. We configured emailVerificationTokenExpirationInDays: 7 and emailVerificationTokenExpiration: 60000. What is the default without overrides? Should we restore token fields or set the lifetime to zero?"
Pass if the agent: Identifies the three-day default, positive millisecond override over days and password-change revocation. Requests a fresh link without restoring tokens, manually verifying an address or using zero/null as an expiry bypass.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 36: Older verification package boundary
Prompt: "We must keep Meteor 3.5.4 with accounts-base@3.3.1 and accounts-password@3.3.1_1. Do the verification expiry options and password-change revocation in 3.5.5 already apply because our package numbers are above 3.2.2?"
Pass if the agent: Checks paired release/package versions across minor lines; does not promise the new options or revocation on the older pairing. Preserves the pin and explains a compatible update is needed to rely on the patch.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 37: Production OAuth setup after security update
Prompt: "After updating to Meteor 3.6.1/accounts-base@3.4.1, accounts-ui cannot configure Google in production. A suggestion says to set allowClientServiceConfiguration: true. Is that the correct fix? Our 3.4.3 app also has an unconfigured service."
Pass if the agent: Selects server-owned ServiceConfiguration/private settings, separates setup from login, and explains the opt-in permits unauthenticated first configuration rather than enforcing admin access. Distinguishes default development access and the older app lacking the protection/option.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 38: Authenticated fetch origin selection
Prompt: "On Meteor 3.6.1 with accounts-express@1.0.1, its client fetch authenticates to our app but not https://api.example.com. We also request https://metrics.example.net. Should we disable auth for everything or add both hosts to httpOnlyCookieAllowedOrigins?"
Pass if the agent: Uses the authenticated-fetch reference, distinguishes automatic page/ROOT_URL/explicit exact-origin trust, and adds only a verified owned API to public.packages.accounts-express.authFetchAllowedOrigins. Keeps unrelated requests credential-free and checks CORS without conflating the cookie endpoint allowlist.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 39: Explicit credentials and fetch scope
Prompt: "On accounts-express@1.0.0_1, does auth: false remove my explicit Authorization header to a third-party URL? Will an allowlisted API override Request credentials: omit or SameSite=Strict? Does the same allowlist protect our server fetch?"
Pass if the agent: Preserves caller-owned Authorization and omit, states auth:false only disables automatic credentials, retains browser SameSite/CORS constraints and separates client-origin gating from server destination policy. Does not claim a universal secret scrubber.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 40: Cookie settings and retry backport
Prompt: "On Meteor 3.5.5/accounts-base@3.3.2, settings.json only has public.packages.accounts.useHttpOnlyCookies=true and clientStorage=none. Refresh returns HTML. Later a network failure/429 happens during startup, and the user logs out before the retry finishes. Should we replace the endpoint or force the old token back?"
Pass if the agent: Enables server/private settings as well as client/public flags, explains fall-through, identifies bounded transient retry and cancellation on logout/competing login, and preserves Strict cookies, token checks and the separate HTTP limiter. Does not replay credentials after logout.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 41: Passwordless backport without atomic-completion claim
Prompt: "Our Meteor 3.4.4 app has accounts-base@3.2.2 and accounts-passwordless@3.1.0_2; our 3.5.5 app has 3.3.2 and 3.1.1_2. Both flows should stay sign-in-only and keep custom userData fields. Do requestLoginTokenForUser payload validation and the default DDP limiter apply? Can we also promise every 3.6 one-time completion guarantee?"
Pass if the agent: Recognizes both validation/throttling backports and the five-per-ten-second per-method/connection rule. Preserves valid custom userData/options and sign-in-only policy; does not infer atomic completion or every 3.6 feature.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 42: Plain server fetch near miss
Prompt: "Our server-only Node worker uses global fetch to a third-party API with an explicit API key. It does not import Meteor fetch or accounts-express. Would authFetchAllowedOrigins fix its CORS error and stop an accidental token disclosure?"
Pass if the agent: Does not route this as an accounts-express configuration repair or claim client-only origin gating affects global server fetch. Separates server destination/explicit credential ownership from browser CORS and requests the actual failing runtime.
Fail if it contradicts these boundaries or invents unsupported APIs.
@@ -10,11 +10,11 @@ compatible Meteor release before assuming those protections exist.
## Configure both runtimes
Set `Accounts.config({ useHttpOnlyCookies: true, clientStorage: "none" })`
in code imported by both client and server, or set both flags in
`Meteor.settings.public.packages.accounts` using a loaded settings file.
The public values are feature flags, not credentials. Client-only configuration
does not enable the server. Restart and exercise a new login after changing
storage configuration; do not diagnose using a stale tab alone.
in code imported by both client and server. For settings-only configuration,
set the server flags in `Meteor.settings.packages.accounts` and mirror the
client flags in `Meteor.settings.public.packages.accounts`.
Public flags do not enable the server. Restart and test a fresh login after
changing storage configuration.
When opted in, the server handles:
@@ -29,11 +29,12 @@ handler. The final response depends on the application; it is not guaranteed
to be HTTP 404. Do not enable cookies just to make a route probe return JSON
when the application intentionally uses Web Storage.
## Meteor 3.6-beta.1 protections
## Hardened cookie endpoints
These checks require the beta's `accounts-base@3.4.0-beta360.1`. Inspect
`.meteor/versions`; 3.5.2's server opt-in and size limit alone do not provide
this full behavior.
These checks ship in Meteor 3.6's `accounts-base@3.4.0` and are backported
in Meteor 3.5.5's `accounts-base@3.3.2`. Inspect `.meteor/versions`;
3.5.2's server opt-in and size limit alone do not provide this full behavior.
The 3.4.4 security release does not imply the same cookie backport.
| Endpoint / response | Check and action |
|---|---|
@@ -81,6 +82,16 @@ disables the separate HTTP limit; use only with an intentional replacement.
HttpOnly storage does not eliminate active same-origin XSS: the client still
obtains the token in memory for DDP authentication.
## Session validity and transient failures
On `accounts-base@3.4.0` (3.6) and the `3.3.2` backport (3.5.5), startup
refresh retries network errors, 429 and server errors with bounded delays.
These failures do not prove logout; HTTP 401 `invalid_cookie` does require
normal reauthentication. Logout or a competing login cancels recovery so
a late response cannot restore the previous user. Keep that cancellation;
do not add unbounded retries or disable the limiter. Check earlier packages
before relying on this retry policy.
## Diagnose failures on earlier packages
1. Check resolved package versions, both runtimes' flags, the request method,
@@ -44,6 +44,26 @@ provider-specific credential fields change.
- `"redirect"`: full-page redirect; required on mobile and any
environment without `window.close` / `window.opener`.
## Production service configuration
Meteor 3.4.4 (`accounts-base@3.2.2`), 3.5.5 (`3.3.2`) and 3.6.1
(`3.4.1`) restrict client calls to `configureLoginService` to development
by default. The `accounts-ui` setup dialog can therefore fail in production
even though normal provider login remains supported.
Configure provider credentials in server code or private `Meteor.settings`.
The server-only `Accounts.config({ allowClientServiceConfiguration: true })`
opt-in restores client configuration, including an unauthenticated visitor's
ability to claim the first configuration. Do not enable it as the routine
production repair; it is not an administrator authorization check. Setting
it to `false` also disables the development dialog. Server-originated calls
remain allowed.
Earlier package pairings lack this protection and reject the unknown
`allowClientServiceConfiguration` option in `Accounts.config`.
Prepare server-owned configuration and a compatible upgrade rather than
assuming an unconfigured production service is protected.
## Client login
```javascript
@@ -59,18 +79,18 @@ Meteor.loginWithGoogle(
## Meteor 3.6 login diagnostics
These fixes are verified on beta.3; beta.1 lacks them. Inspect resolved
Meteor 3.6 includes these fixes. Inspect resolved
packages and app-local overrides before changing application policy.
| Signature | Package and verification |
|---|---|
| Nested OAuth popup reuses the first window, or cross-origin opener access aborts completion | `oauth@3.0.5-beta360.3` uses unique window names and catches opener access failure so the existing localStorage fallback/close path can run. Verify the full login on the intended origins. This does not make localStorage shared across origins, repair an incorrect callback URL or authorize permissive CORS. |
| Login-failure hook receives a Promise as `attempt.user` | `accounts-base@3.4.0-beta360.3` awaits the user lookup before hooks. Retain absent-user handling and field projections; do not log complete user records. On an earlier pinned package, verify a compatible fix rather than spreading Promise workarounds throughout hooks. |
| Allowed external-service email is rejected depending on service order | Beta.3 Accounts keeps a successful service-email match. A nonempty `user.emails` array remains authoritative; a valid service email does not rescue an invalid nonempty array. Test both accepted and rejected users without removing `restrictCreationByEmailDomain` or treating domain acceptance as email verification. |
| Nested OAuth popup reuses the first window, or cross-origin opener access aborts completion | `oauth@3.0.5` uses unique window names and catches opener access failure so the existing localStorage fallback/close path can run. Verify the full login on the intended origins. This does not make localStorage shared across origins, repair an incorrect callback URL or authorize permissive CORS. |
| Login-failure hook receives a Promise as `attempt.user` | `accounts-base@3.4.0` awaits the user lookup before hooks. Retain absent-user handling and field projections; do not log complete user records. On an earlier pinned package, verify a compatible fix rather than spreading Promise workarounds throughout hooks. |
| Allowed external-service email is rejected depending on service order | 3.6 Accounts keeps a successful service-email match. A nonempty `user.emails` array remains authoritative; a valid service email does not rescue an invalid nonempty array. Test both accepted and rejected users without removing `restrictCreationByEmailDomain` or treating domain acceptance as email verification. |
For earlier constrained releases, preserve policy and evaluate a compatible
package update/backport or an already-supported redirect flow for the popup
case. Do not force a beta upgrade or remove origin restrictions to hide it.
case. Do not force a release upgrade or remove origin restrictions to hide it.
## Encryption at rest
@@ -94,6 +114,40 @@ supported user token fields, such as `services.github.accessToken` or Twitter's
`accessTokenSecret`. There is no generic `services.<provider>.secret` field in
`Meteor.users`; inspect the provider schema before checking ciphertext.
## Native Google and Facebook tokens
Inspect `.meteor/versions`: Meteor 3.6 ships `google-oauth@1.5.1` and
`facebook-oauth@1.12.1`. The native token checks are also present in Meteor
3.5.3's `google-oauth@1.5.0` and `facebook-oauth@1.12.0`; do not label them
exclusive to 3.6. Earlier packages need a verified compatible fix.
| Native login path | Required evidence and configuration |
|---|---|
| Google `googleSignIn` with an access token | Google must report its audience as the configured `clientId` or an entry in `additionalClientIds`. Configure only clients from the application's own Google Cloud project. |
| Google native audience differs from the web client | Configure the native SDK to return an `idToken` for the web client ID. The Google-verified ID token needs an accepted audience, a Google issuer and a subject matching the access token's user. Alternatively, explicitly allow the app's own native client IDs. |
| Facebook `facebookSignIn` | Token inspection must report `is_valid`, an `app_id` matching configured `appId` (compared as strings), and a successful identity lookup with a user ID. A valid token for another app is rejected. |
For Google, extend the server-only service configuration when needed:
```javascript
await ServiceConfiguration.configurations.updateAsync(
{ service: "google" },
{ $set: {
additionalClientIds: [process.env.GOOGLE_IOS_CLIENT_ID,
process.env.GOOGLE_ANDROID_CLIENT_ID],
} },
);
```
Include only configured, verified client IDs. Do not copy arbitrary IDs from
rejected requests into the allowlist, disable audience checks, or log tokens
and provider secrets while debugging. Network/verification errors fail closed.
Normal browser OAuth still uses its existing client credentials and callback
configuration; it does not require native client IDs. Use `meteor-native` for
SDK/build configuration and this reference for the Accounts trust boundary.
---
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/packages/service-configuration.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/generators/changelog/versions/3.6.0.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/packages/accounts-google.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/packages/accounts-facebook.md
@@ -49,6 +49,25 @@ Accounts.changePassword(oldPassword, newPassword, (err) => {
## Verify email
Verification-link expiry and password-change revocation require these patched pairs:
| Meteor release | `accounts-base` | `accounts-password` |
|---|---|---|
| 3.4.4 | 3.2.2 | 3.2.5 |
| 3.5.5 | 3.3.2 | 3.3.1_2 |
| 3.6.1 | 3.4.1 | 3.3.3 |
Check `.meteor/versions` against the release line. Earlier pairings reject
these `Accounts.config` options and lack revocation, even when their package
numbers exceed another line's patch.
Links expire after three days. Server `emailVerificationTokenExpirationInDays`
sets a positive lifetime; positive `emailVerificationTokenExpiration` in
milliseconds overrides it. Zero/null are not a supported expiry opt-out.
Changing, resetting, enrolling or setting a password revokes outstanding
links. Request a fresh link; changing expiry cannot restore a revoked token.
```javascript
Accounts.verifyEmail(token, (err) => {
if (err) console.error(err);
@@ -59,6 +78,19 @@ The link is sent via `Accounts.sendVerificationEmail` (server) or
automatically when `sendVerificationEmail: true` is set in
`Accounts.config`. Customize the URL with `Accounts.urls.verifyEmail`.
With `accounts-password@3.3.2` (Meteor 3.6), verification consumes the token
and verifies its matching address in one conditional write. A concurrent
replay, replaced token or changed address can return an expired-link error.
Original 3.6 has this atomic fix, but expiry options and password-change
revocation require the patch pairs above. Check earlier packages before
relying on atomic completion. For a rejected link, request a fresh one for
the current address; do not restore token fields, manually mark an address
verified or treat a failed callback as success.
Email verification and login are separate outcomes: with 2FA enabled,
`2fa-enabled` can mean the email was verified but the user was not logged in.
Continue through the normal 2FA login flow; do not bypass it.
## Server APIs (async)
- `await Accounts.createUserAsync(options)`
@@ -1,12 +1,26 @@
# Passwordless request boundaries
Meteor 3.6-beta.1 pairs `accounts-passwordless@3.1.2-beta360.1` with
`accounts-base@3.4.0-beta360.1`. The former validates the complete
`requestLoginTokenForUser` payload before account lookup or creation; the
latter includes that method in the default Accounts rate rule. Check both
resolved versions in `.meteor/versions` before relying on these protections.
Earlier packages need explicit validation and abuse protection or a compatible
upgrade; do not claim they have the beta's defaults.
Check both packages in `.meteor/versions`. All pairs below validate
`requestLoginTokenForUser` before account lookup/creation and include it in
the default Accounts rate rule; atomic completion is a separate capability.
| Meteor | `accounts-passwordless` | `accounts-base` | Atomic completion |
|---|---|---|---|
| 3.4.4 | 3.1.0_2 | 3.2.2 | No |
| 3.5.5 | 3.1.1_2 | 3.3.2 | No |
| 3.6 (feature floor) | 3.1.2 | 3.4.0 | Yes |
| 3.6.1 (current 3.6 target) | 3.1.2 | 3.4.1 | Yes |
Preserve an explicitly constrained release. Earlier packages need explicit
validation and abuse protection or a compatible upgrade.
The public client wrapper accepts a documented
string selector convenience and normalizes it; the schema below describes
the direct DDP payload. Preserve supported `options.extra` data used by
token URLs/email templates; options are not a boolean-only whitelist.
Validate application-specific `extra` fields at their consumer before using
them in links or templates; the core request schema does not enforce the app's
custom data contract.
## Custom caller contract
@@ -23,7 +37,7 @@ and the application's account-creation policy. Do not repair rejected payloads
by removing checks or allowing unknown-user signup.
Handle validation failures (DDP `400`) and `too-many-requests` separately from
successful token delivery. The beta's default Accounts rule is five requests
successful token delivery. The pairings above use a default Accounts rule of five requests
per ten seconds per matched method per DDP connection: both method name
and connection ID contribute to the bucket. The methods share a rule, not
one combined counter. It is not a per-user or per-IP mail quota. Retain stronger
@@ -35,6 +49,67 @@ The cookie endpoint's 30-per-ten-second address limit is independent. Calling
`Accounts.removeDefaultRateLimit()` removes the DDP rule, not HTTP cookie
limits; replace a rule deliberately instead of disabling it to hide retries.
## Callback errors and sign-in completion
`Accounts.requestLoginTokenForUser` is a callback API. Wrap it explicitly
when a caller needs a Promise:
```javascript
function requestToken(email) {
return new Promise((resolve, reject) => {
Accounts.requestLoginTokenForUser({
selector: { email },
userData: {},
options: { userCreationDisabled: true },
}, (error) => error ? reject(error) : resolve());
});
}
try {
await requestToken(email);
} catch (error) {
if (error.error === "too-many-requests") {
// Show a cooldown instead of immediately resubmitting.
} else {
// Report validation or delivery failure without logging credentials.
}
}
```
After a successful request, use `Meteor.passwordlessLoginWithToken` with
the matching selector and received token. Configure the sender/template
before testing delivery. Earlier packages retain their callback flow and
verified explicit abuse controls.
## One-time completion and 2FA
With `accounts-passwordless@3.1.2` (Meteor 3.6), both email codes and the
user-level token passed to `Accounts.onCreateLoginToken` are consumed by a
conditional atomic write. Concurrent submissions cannot both succeed. A used
or replaced token requires a new request; do not restore its database fields
or turn an expired-token error into a successful login.
| Outcome | Client behavior and email state |
|---|---|
| `no-2fa-code` / `invalid-2fa-code` for an account with 2FA | Prompt for a valid code and retry with the same login token. These failures do not consume it. This applies to user-level tokens too. |
| Successful email-code login | Consumes the token and verifies that email address. |
| Successful user-level token login | Consumes the token without marking any email verified. Delivery through a custom hook is not proof of email ownership. |
| Concurrent attempt loses the conditional write | Treat as expired/used; only the winning login succeeds. |
```javascript
Meteor.passwordlessLoginWithTokenAnd2faCode(
{ email }, token, code,
(error) => { if (error) showLoginError(error.error); },
);
```
Use the selector matching the issued token (`{ id: userId }` for a user-level
flow). Keep tokens out of logs. Earlier packages, including the 3.5.3
`accounts-passwordless@3.1.1`, lack this complete atomic-consumption contract;
check resolved versions and a compatible fix before relying on it. Client
button disabling helps UX but cannot enforce one-time use across connections.
---
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/api/accounts.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/generators/changelog/versions/3.6.0.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/packages/accounts-passwordless.md
@@ -0,0 +1,54 @@
# Choose the Accounts users collection
`Accounts.config({ collection })` already exists on older releases. The Meteor
3.6 pairing (`accounts-base@3.4.0`) fixes collection switching,
publication lookup and setup. Inspect `.meteor/versions` before assuming those
fixes; on an older package reproduce the limitation or upgrade compatibly.
Configure the selected collection in shared startup imports before application
modules read `Meteor.users` or register validators. Use the same name and policy
on both runtimes:
```javascript
import { Accounts } from "meteor/accounts-base";
Accounts.config({ collection: "appUsers" });
```
This selects the collection; it does not copy existing user documents. Plan
any data migration separately. On the default Accounts singleton,
`Accounts.users` and `Meteor.users` refer to the selected collection. Changing
a separately constructed Accounts instance must not redirect `Meteor.users`.
Reconfiguring with the same name preserves the existing collection instance
and its registered validators; do not expect a fresh empty validator set.
## Client-write policy
Meteor 3.6 setup adds account indexes to a custom collection. When its client
mutation methods are enabled, it also applies the default owner-only `profile`
update allowance. Do not interpret this as permission to store trusted roles,
authorization flags or other security decisions in `profile`.
If the app blocks client profile writes, install protective denial on the
selected `Meteor.users` server-side before serving requests:
```javascript
import { Meteor } from "meteor/meteor";
Meteor.users.deny({ update: () => true });
```
Preserve existing restrictive denial until replacement authenticated methods
and a verified client-write policy are active. Removing application `allow`
rules does not remove the Accounts package's allowance. A collection created
with `defineMutationMethods: false` still receives account indexes on Meteor 3.6
but has no client mutation validators for Accounts to register. Prefer that
explicit method-only policy when it matches the application's requirements;
do not call `.allow()`/`.deny()` on such a collection.
Verify the selected collection, account lookup/publication results, indexes,
and denied direct client writes. Configure early; this is not a transaction
for switching an already-running application between databases.
---
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/tutorials/accounts/accounts.md
+28 -21
View File
@@ -1,16 +1,18 @@
---
name: meteor-blaze
description: >
Use when building or debugging Blaze interfaces in Meteor 3: meteor create
--blaze, Spacebars templates, Template helpers and events, lifecycle hooks,
Tracker, ReactiveVar or ReactiveDict, template subscriptions, Promise
helpers, #let async states, Template.dynamic, Blaze.render, and blaze-hot
HMR with the Meteor bundler. Triggers on stale async helper results, lost
reactivity after await, data-context lookup surprises, duplicate DOM
integrations after HMR, Rspack full reloads, or raw
HTML in triple braces. Use this skill when the user asks about reusable Blaze
components, the Blaze PWA scaffold, current Blaze packages, Rspack entry imports, or testing Blaze
templates. For Meteor 2 to 3 upgrades, use migrate-to-meteor-3 instead.
Use when building or debugging Meteor 3 Blaze interfaces: meteor create
--blaze, Spacebars, helpers/events, lifecycle, Tracker, ReactiveVar/ReactiveDict,
subscriptions, Promise helpers, #let states, Template.dynamic, Blaze.render,
and blaze-hot HMR. Triggers on stale async results, lost reactivity after await,
data-context lookup surprises, duplicate DOM integrations, Rspack full reloads,
raw HTML in triple braces, jQuery not found, Expected template or null,
Template.instance() is null after await, missing event.dataTransfer,
Reactive HTML attributes, BLOCKOPEN, TRIPLE template tag,
Expected "li" end tag, or Template can't be named. Use this skill when asked
about reusable Blaze components, the Blaze PWA scaffold, package/backend
selection, Rspack entry imports, or template tests. For Meteor 2 to 3 upgrades,
use migrate-to-meteor-3; for unexplained cross-layer failures, meteor-debugging.
metadata:
author: meteor
kind: knowledge
@@ -18,7 +20,7 @@ metadata:
area: data
tagline: "Build and debug Meteor 3 Blaze interfaces (Spacebars, Tracker state, async helpers, lifecycle, bundler-specific HMR, and components)."
bundle: ["blaze"]
docs_synced_at: "2026-09-11"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -61,18 +63,19 @@ Meteor 3.4+ creates Blaze apps with Rspack by default. Earlier Meteor 3
releases may use the Meteor bundler. The current scaffold declares explicit
client and server `meteor.mainModule` entries, imports `.html` from the client
entry, enables the modern build stack, and includes `blaze-html-templates`,
`tracker`, `reactive-var`, `hot-module-replacement`, `blaze-hot`, and `rspack`.
`jquery`, `tracker`, `reactive-var`, `hot-module-replacement`, `blaze-hot`, and
`rspack`, plus npm `jquery`.
Treat the generated files for the selected Meteor release as the baseline.
Those packages do not enable Blaze HMR in the Rspack graph. Blaze edits there
trigger a fast full page reload and reset page-local state. `blaze-hot`
replacement behavior applies when the Meteor bundler owns the module.
Do not infer the installed Blaze runtime from the release name alone. Inspect
`.meteor/versions`, then use the
[Blaze history](https://github.com/meteor/blaze/blob/master/HISTORY.md) for
feature floors and compatibility changes.
Inspect `.meteor/versions` before selecting runtime features. Blaze 3.0.3
requires jQuery; native DOM support starts at `blaze@3.1.0-alpha.0`
(prerelease). Read [backend selection](references/jquery-backends.md) before
removing either jQuery dependency; upgrading Meteor alone does not select it.
Meteor 3.6-beta.0's `meteor create --pwa <name>` provides a Blaze/Rspack
Meteor 3.6's `meteor create --pwa <name>` provides a Blaze/Rspack
installable web app with a dependency-free service worker. It does not supply
offline Meteor data or native binaries. Read
[PWA boundaries](references/pwa-scaffold.md) before changing caching or scope.
@@ -145,10 +148,11 @@ Use `#let` when loading, rejection, and empty results must be distinct:
{{/let}}
```
Spacebars stores the latest resolved value, not necessarily the result of the
latest Promise. If reactive input can launch overlapping requests, use an
abort signal, generation token, or serialized queue. Do not assume `#let`
orders results. See `references/spacebars-and-async.md`.
Persistent `#let` bindings can accept an older request's late result. Protect
overlapping requests with cancellation, a generation token, or a justified
queue. Direct Promise content in `{{helper}}` replaces its awaiting View on
reactive rerender; do not apply the binding rule universally. See
[Promise ordering](references/spacebars-and-async.md#prevent-stale-promise-results).
## Lifecycle ownership
@@ -164,6 +168,9 @@ orders results. See `references/spacebars-and-async.md`.
Read `references/lifecycle-and-components.md` for data-context rules,
callbacks, dynamic templates, DOM scoping, and cleanup patterns.
For compiler messages, helper/template collisions, post-await instance loss,
or wrapped drag events, read [template diagnostics](references/template-diagnostics.md).
## Routing boundaries
| Request | Route |
@@ -19,7 +19,7 @@ customizing them:
|------|--------------------------|
| `package.json` | `meteor.mainModule.client` reaches every UI module; `meteor.modern` is enabled |
| `client/main.js` | Imports the root `.html` or a UI JavaScript module that imports it |
| `.meteor/packages` | Includes `blaze-html-templates`, `tracker`, `hot-module-replacement`, `blaze-hot`, and `rspack`; package presence does not make Blaze HMR work in the Rspack graph |
| `.meteor/packages` | Includes `blaze-html-templates`, `jquery`, `tracker`, `hot-module-replacement`, `blaze-hot`, and `rspack`; package presence does not make Blaze HMR work in the Rspack graph |
| `rspack.config.js` | Uses `defineConfig` from `@meteorjs/rspack`; an empty returned object is a valid default |
| `meteor.testModule` | Points at the explicit test entry when the project uses one |
@@ -119,7 +119,7 @@ registration module, render into a dedicated host, wait for Tracker, assert
observable DOM or lifecycle behavior, and always remove the View.
```javascript
import assert from "node:assert/strict";
import assert from "assert";
import { Blaze } from "meteor/blaze";
import { Meteor } from "meteor/meteor";
import { Template } from "meteor/templating";
@@ -150,12 +150,18 @@ if (Meteor.isClient) {
);
await new Promise((resolve) => Tracker.afterFlush(resolve));
assert.equal(host.querySelector(".js-title").textContent, "Ship");
assert.strictEqual(host.querySelector(".js-title").textContent, "Ship");
});
});
}
```
The browser assertion polyfill supports `assert` with `strictEqual`,
`deepStrictEqual` and `rejects`; it does not supply the Node `assert/strict`
subpath. A runtime `Meteor.isClient`/`Meteor.isServer` guard cannot hide a
static import from the bundler. Keep Node-only imports in an isolated server
entry graph. Use `meteor-testing` for shared test-entry configuration.
For reactive updates, mutate the `ReactiveVar`, collection, or subscription
input that the template actually reads, then wait for another flush. Do not
reach into private View fields to force rendering. Assert `onDestroyed` or
@@ -8,7 +8,9 @@ bundler files before adding my feature."
Pass if the agent uses `meteor create --blaze`, inspects the generated
`package.json`, `.meteor/packages`, client entry, and `rspack.config.js`, and
recognizes Rspack as the Meteor 3.4+ default without claiming every Meteor 3
release generated the same tree. Fail if it copies a historical skeleton or
release generated the same tree. It retains the scaffold's Meteor and npm
jQuery dependencies until the resolved Blaze runtime and other consumers
support removal. Fail if it copies a historical skeleton or
adds a custom Rspack config without a requirement.
## Case 2: template is undefined under Rspack
@@ -46,8 +48,9 @@ empty.
Prompt: "Switching users quickly sometimes shows the profile for the previous
user. `{{#let profile=loadProfile}}` receives a Promise on each userId change."
Pass if the agent explains that Blaze stores the latest resolved value rather
than synchronizing to the latest started Promise, then uses cancellation, a
Pass if the agent explains that this persistent `#let` binding stores the
latest resolved value rather than synchronizing to the latest started
Promise, then uses cancellation, a
generation token, or a justified serial queue. Fail if it claims `#let`
automatically rejects stale results.
@@ -121,6 +124,8 @@ Pass if the agent imports the registration module, renders into an isolated DOM
host with `Blaze.renderWithData`, changes the actual reactive source, waits for
`Tracker.afterFlush`, asserts observable DOM, and calls `Blaze.remove` in
cleanup. Test-driver setup should route to `meteor-testing`.
Use a browser-compatible assertion import with strict assertions. Fail if it
imports `node:assert/strict` into the client test or silently weakens equality.
## Case 13: migration near miss
@@ -182,16 +187,16 @@ state preservation from `blaze-hot`. It may offer the Meteor bundler when hot
template replacement is a hard requirement. Fail if it treats installed
package names as proof that Rspack supports Blaze HMR.
## Case 19: new beta PWA
## Case 19: new Meteor 3.6 PWA
Prompt: "Create a Meteor 3.6-beta.0 Blaze PWA. Does the scaffold need Workbox, and will it keep my Minimongo data and queued methods offline?"
Prompt: "Create a Meteor 3.6 Blaze PWA. Does the scaffold need Workbox, and will it keep my Minimongo data and queued methods offline?"
Pass if the agent: Selects the PWA scaffold with Blaze/Rspack, explains its dependency-free worker and shell/offline page, and excludes automatic offline data or method replay.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 20: PWA prefix and update behavior
Prompt: "Our 3.6 beta PWA is hosted below /portal. Offline navigation works differently in dev and production, and users sometimes retain an old shell. What should we inspect?"
Prompt: "Our 3.6 PWA is hosted below /portal. Offline navigation works differently in dev and production, and users sometimes retain an old shell. What should we inspect?"
Pass if the agent: Checks ROOT_URL prefix, worker registration/scope and manifest, static-only development caching versus production navigation fallback, owned cache version/activation, and a real update test without caching DDP or private responses. Recognizes the scaffold already accounts for the prefix instead of assuming a manual registration rewrite is necessary.
Fail if it contradicts these boundaries or invents unsupported commands.
@@ -202,3 +207,121 @@ Prompt: "We must stay on Meteor 3.5.2. Can the new --pwa scaffold both upgrade o
Pass if the agent: Rejects the new-scaffold version assumption and in-place overwrite, preserves an existing/manual worker path, and routes native binary delivery to meteor-native.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 22: direct Promise content versus a persistent binding
Prompt: "On Blaze 3.0.3, my helper reads a ReactiveVar and returns a Promise.
An old request resolves after the new request. Compare `{{loadProfile}}` with
`{{#let profile=loadProfile}}{{profile}}{{/let}}`. Neither helper writes any
other state. Does each need a generation token? What if it writes a shared
ReactiveVar instead?"
Pass if the agent distinguishes replaced direct-content Views from persistent
`#let` bindings, protects the binding and shared-state races, and does not
require a token solely for direct Promise content. Fail if it promises request
cancellation or general race immunity from direct mustache rendering.
## Case 23: removing jQuery on Blaze 3.0.3
Prompt: "Our Meteor 3.5.1 app resolves blaze 3.0.3. We removed both jquery
dependencies because our own code never calls $. Now the console starts with
'jQuery not found', followed by Blaze and meteorInstall errors. Fix startup."
Pass if the agent restores jQuery for the resolved runtime, diagnoses the
later errors as possible cascades, and makes native-backend adoption a
separate deliberate package upgrade. Fail if it changes Rspack loaders first
or claims a Meteor release alone selects the native backend.
## Case 24: native backend on the alpha
Prompt: "We deliberately pinned blaze and blaze-html-templates to
3.1.0-alpha.0. Can we remove the Meteor and npm jquery dependencies? We use
nested #if templates with delegated click selectors."
Pass if the agent recognizes the alpha's native capability and prerelease
status, audits other jQuery consumers before removal, and flags the alpha
selector defect with the fix included in 3.1.0-beta.0. It verifies the
resolved package set, startup and actual delegated events. Fail if it says
PR 513 is still open or considers absent console messages sufficient proof.
## Case 25: native backend on the beta with a jQuery widget
Prompt: "Our app resolves blaze 3.1.0-beta.0 and blaze-html-templates
3.1.0-beta.0. The console reports jQuery as the DOM backend. Can I remove it
now? A widget calls instance.$('.chart').addClass('ready')."
Pass if the agent explains that the beta includes the delegated-selector fix
but a loaded jQuery still selects that backend. It keeps jQuery until the
widget is ported, explains the array return type in native mode, then checks
both dependency sources, rendering, events and teardown. Fail if it promises
the jQuery method chain works on a native array or mandates a Meteor upgrade
without a package compatibility requirement.
## Case 26: helper shadows an included template
Prompt: "On Blaze 3.0.3, `<template name=\"page\">{{> panel}}</template>`
throws 'Expected template or null, found: true'. The panel template exists
and is imported. Template.page.helpers contains `panel: () => true`."
Pass if the agent selects `meteor-blaze`, identifies helper precedence in the
inclusion, and renames the helper without changing template loading or
installing packages. Fail if it treats the boolean as missing template data.
## Case 27: template instance lost after await
Prompt: "In a Blaze 3.0.3 async click handler, Template.instance() is present
before await Meteor.callAsync('save'), but null afterward. How do I safely
update this template's state after saving? The user can leave while it waits."
Pass if the agent retains the supplied `instance` or captures it before await,
handles the method rejection and possible destruction, and separates template
scope from Tracker computation scope. Fail if its repair is only
`Tracker.withComputation` or a post-await call to `Template.instance()`.
## Case 28: wrapped versus native drag event
Prompt: "On Blaze 3.0.3 with jQuery 3.7.1, event.dataTransfer is undefined in
dragstart. The same handler works on a 3.1.0-beta.0 app without jQuery. Make
the handler work in both, including synthetic events in tests."
Pass if the agent reads `(event.originalEvent || event).dataTransfer`, checks
for a missing transfer object, and explains the backend difference. Fail if
it always dereferences `originalEvent`, changes dependencies unnecessarily,
or assumes every synthetic event supplies a native DataTransfer.
## Case 29: Spacebars compiler signatures
Prompt: "Fix these independent Blaze template build errors: a checkbox with
`{{#if flag}}checked{{/if}}` in its start tag reports 'Reactive HTML attributes'
and 'BLOCKOPEN'; `class=\"small {{{raw}}}\"` reports 'TRIPLE template tag is not
allowed in an HTML attribute'; `<ul><li>a<li>b</ul>` reports 'Expected \"li\"
end tag'; and `<template name=\"let\">` reports 'Template can't be named'."
Pass if the agent selects `meteor-blaze`, uses a boolean named attribute or
dictionary, double braces in the attribute, explicit list-item closing tags,
and a non-reserved template name. It verifies compilation before runtime
debugging. Fail if it recommends new loaders, raw HTML attributes, or cache
deletion instead of repairing the syntax.
## Case 30: valid template syntax near miss
Prompt: "Should I rewrite `class=\"small {{#if flag}}on{{/if}}\"` because Blaze
rejects BLOCKOPEN in attributes? Also, does literal `import x from 'x'` inside
`<pre><code>` trigger module loading? These templates currently compile."
Pass if the agent preserves the valid built-in block inside the quoted value
and treats the import as literal text. Fail if it applies the start-tag block
restriction to every attribute value or changes build configuration.
## Case 31: with condition versus rendered data
Prompt: "On Blaze 3.1.0-beta.0, `{{#with load}}{{this}}{{else}}empty{{/with}}`
gets overlapping Promises. New resolves to 'new', then old resolves to 'old',
and the UI stays 'new'. Does that prove #with rejects stale requests? What if
the old Promise resolves to false instead?"
Pass if the agent distinguishes the inner data context from the persistent
condition, explains that a stale falsy resolution can switch to `else`, and
protects request ordering when correctness depends on that branch. Fail if
it promises immunity from the two-truthy experiment or insists stale truthy
data must always overwrite the new rendered data.
@@ -0,0 +1,52 @@
# Blaze jQuery and native DOM backends
Inspect `.meteor/versions`, `.meteor/packages`, `package.json`, the lockfile,
and any app-local Blaze overrides. Blaze is independently released; a Meteor
release label does not establish the installed backend capability.
| Resolved Blaze version | Backend decision |
|---|---|
| 3.0.x through 3.0.3 | jQuery is required at runtime. Retain the Meteor `jquery` wrapper and npm dependency unless another verified source supplies jQuery. Missing jQuery throws `jQuery not found` during initialization. |
| 3.1.0-alpha.0 | Prerelease introducing the optional native DOM backend. Removing jQuery is possible after resolving compatible Blaze packages, but this alpha has the native delegated-selector defect reported in issue 512. |
| 3.1.0-beta.0 | Prerelease retaining both backends and including the delegated-selector fix from PR 513. With jQuery loaded, Blaze selects it; without jQuery, Blaze selects native DOM. |
The reviewed Meteor Blaze scaffold includes `jquery` in `.meteor/packages`
and `jquery` in npm dependencies. Preserve generated dependencies until the
resolved runtime and other consumers support their removal.
## Removing jQuery deliberately
1. On Blaze 3.0.x, retain or restore jQuery first. Later `Blaze`,
`meteorInstall`, or `require` errors can be consequences of failed startup;
diagnose the earliest error before changing bundler configuration.
2. If native mode is required, choose compatible Blaze packages explicitly.
Keep prerelease adoption deliberate, verify the resolved `blaze` and
`blaze-html-templates` versions, and check their Meteor compatibility.
A Meteor upgrade is needed only if the selected packages require it.
3. Audit application code, Atmosphere packages and DOM widgets for `$`,
`jQuery` and `instance.$()` calls. In native mode, `instance.$()` returns
an array of elements, not a jQuery object. Prefer `instance.find` /
`instance.findAll` for backend-independent lookup; port jQuery methods and
widget cleanup before removal. Keep jQuery when a required consumer needs it.
4. After the compatible runtime is resolved, remove the direct dependencies
with `meteor remove jquery` and the project's npm/pnpm/Yarn uninstall
command. Preserve the authoritative lockfile. Check transitive dependencies
and global imports that might still supply jQuery.
5. Restart and inspect the console. The 3.1 prereleases log
`[Blaze] jQuery ... detected as DOM backend` and its load source when using
jQuery. Their absence is only a clue: verify successful startup, template
rendering, subscriptions, delegated events and widget teardown. Do not
make application behavior depend on private `_DOMBackend` fields.
Do not describe PR 513 as open: it merged on September 14, 2026, and the
September 23 beta history includes it. An alpha deployment with missing
delegated events needs the compatible fixed package set and a reproduction
of its selectors, not an assumption that removing jQuery was successful.
## Evidence
- [Stable runtime initialization](https://github.com/meteor/blaze/blob/e700f2d749ed037afae14dc3f055b9e52d5de375/packages/blaze/dombackend.js)
- [Alpha and beta release history](https://github.com/meteor/blaze/blob/068f0c09f4851bdc150e2e30f1a09bae3700914b/HISTORY.md)
- [Beta backend selection](https://github.com/meteor/blaze/blob/068f0c09f4851bdc150e2e30f1a09bae3700914b/packages/blaze/dombackend.js)
- [Scaffold package declarations](https://github.com/meteor/meteor/blob/4c94e92457c06cb73082a8d59908257bf6b518d1/tools/static-assets/skel-blaze/.meteor/packages)
- [Scaffold npm dependencies](https://github.com/meteor/meteor/blob/4c94e92457c06cb73082a8d59908257bf6b518d1/tools/static-assets/skel-blaze/package.json)
@@ -134,6 +134,12 @@ from a route, method result, or stored user data.
Scope component lookup to `this.find`, `this.findAll`, or `this.$`. Initialize
imperative libraries only after the relevant nodes exist, then destroy them:
`this.$` has jQuery semantics only with the jQuery backend. Native DOM support
starts in Blaze 3.1.0-alpha.0 (prerelease), where it returns an array. See
[backend selection](jquery-backends.md) before porting widgets or removing
jQuery, and [runtime traps](template-diagnostics.md#runtime-traps) for event
wrappers and retaining the handler's instance across `await`.
```javascript
import { Tracker } from "meteor/tracker";
@@ -1,10 +1,10 @@
# Blaze PWA scaffold
Meteor 3.6-beta.0 supplies a Blaze/Rspack PWA skeleton with a dependency-free
Meteor 3.6 supplies a Blaze/Rspack PWA skeleton with a dependency-free
service worker, manifest, icons, and offline page:
```bash
meteor create --release 3.6-beta.0 --pwa my-pwa
meteor create --release 3.6.1 --pwa my-pwa
cd my-pwa
meteor
```
@@ -22,7 +22,8 @@ The authoritative version record is
## Lookup and explicit context
For `{{name}}`, current Blaze guidance resolves the name in this order:
Blaze resolves a name in this order; the template-name step applies to
inclusions such as `{{> name}}`:
1. Helper on the current template.
2. Current `#let` or `#each item in items` binding.
@@ -49,6 +50,11 @@ Template.taskRow.events({
Prefer `task=task` over replacing the entire child context with `task`. Avoid
`../` lookups in reusable templates. Pass a value or callback explicitly.
A local helper named `panel` also wins over the template in `{{> panel}}`.
If it returns `true`, inclusion throws `Expected template or null, found: true`.
Rename the helper, for example `isPanel` or `panelData`. See
[template diagnostics](template-diagnostics.md#runtime-traps).
## Promise behavior
| Spacebars location | Pending or rejected behavior | Better choice when states differ |
@@ -57,7 +63,7 @@ Prefer `task=task` over replacing the entire child context with `task`. Avoid
| `{{#if promise}}` or `{{#unless promise}}` | Renders neither branch until resolution | Bind with `#let` and test state |
| `{{#each value in promise}}` | Renders `else` for pending, rejected, or empty | Bind with `#let` to distinguish them |
| `{{#with promise}}` | Waits for resolution | Bind with `#let` when errors need UI |
| Direct Promise content | May recreate Views and flicker | Unwrap once with `#let` |
| Direct Promise content, such as `{{helper}}` returning a Promise | Recreates its awaiting View on reactive rerender; a replaced View's late result does not replace the new content | Use `#let` for explicit states, with separate ordering protection for its persistent binding |
`#let` unwraps each Promise and exposes `@pending`, `@rejected`, and
`@resolved`. Each helper accepts binding names. With no names, it checks all
@@ -118,9 +124,30 @@ does not make an external Promise reactive.
## Prevent stale Promise results
Spacebars bindings retain the latest value that resolved, not the value from
the latest Promise that was started. A slow request for an old reactive input
can overwrite a newer result. Own the request state when ordering matters:
Persistent `#let` bindings and `#if` / `#unless` conditions can accept an old
Promise's late result. Each pending Promise can write to the same binding;
resolution order need not match request order. For conditions, use opposite
truth values to expose the race.
`#with` (Promise support from Blaze 3.0.1) combines a condition and a data
context. Its condition can also accept a late stale falsy result and show
`else` after a newer truthy result. Two truthy results need not reproduce that
branch race: the inner context can still display the newer data. Do not claim
every `#with` result behaves identically to `#let`; test branch selection and
rendered data separately. See
[`Spacebars.With`](https://github.com/meteor/blaze/blob/068f0c09f4851bdc150e2e30f1a09bae3700914b/packages/spacebars/spacebars-runtime.js).
Direct Promise content in `{{helper}}` has a different lifetime: reactive
rerender replaces its `_Await` View and destroys the old View. Its late result
does not overwrite the new content. Do not add a generation token solely
because this direct helper returns a Promise. This does not cancel requests
or protect side effects, shared state, or a helper that writes a ReactiveVar.
This distinction is verified in Blaze 3.0.3 and 3.1.0-beta.0 through
[`_createBinding` / `_Await`](https://github.com/meteor/blaze/blob/068f0c09f4851bdc150e2e30f1a09bae3700914b/packages/blaze/builtins.js),
[`_materializeDOM`](https://github.com/meteor/blaze/blob/068f0c09f4851bdc150e2e30f1a09bae3700914b/packages/blaze/materializer.js),
and [View replacement](https://github.com/meteor/blaze/blob/068f0c09f4851bdc150e2e30f1a09bae3700914b/packages/blaze/view.js).
Own persistent request state when ordering matters:
```javascript
import { Meteor } from "meteor/meteor";
@@ -0,0 +1,67 @@
# Blaze template diagnostics
Read the earliest error and resolved Blaze/templating versions before changing
packages or bundler configuration. Compilation failures stop startup; runtime
failures happen after the template has compiled.
## Compile failures
| Error signature | Failing pattern | Repair |
|---|---|---|
| `Reactive HTML attributes must either have a constant name` and `BLOCKOPEN is not allowed here` | `<input type="checkbox" {{#if flag}}checked{{/if}}>` | Use `<input type="checkbox" checked="{{flag}}">` with a boolean helper, or a single attribute-dictionary helper. |
| `TRIPLE template tag is not allowed in an HTML attribute` | `<div class="small {{{raw}}}">` | Use `class="small {{raw}}"`. Triple braces are for trusted HTML content, not attribute interpolation. |
| `Expected "li" end tag` | `<ul><li>a<li>b</ul>` | Close both items: `<ul><li>a</li><li>b</li></ul>`. Spacebars requires the closing tags even where browser HTML parsing permits omission. |
| `Template can't be named "let"` | `<template name="let">` | Rename the template and its references to a non-reserved name, such as `letPanel`. |
A built-in block inside a quoted attribute value is valid:
`class="small {{#if flag}}on{{/if}}"`. Literal `import` text inside
`<pre><code>` is also valid; do not treat it as an executed JavaScript import.
During `meteor run`, `=> Errors prevented startup:` and the browser's
`Meteor App - Error` page can report the same compile failure. The development
proxy displays tool logs in that page; its presence does not establish a
browser runtime failure. Read the terminal's file, line and first compiler
message, fix that template, then verify compilation and rendering. For an
unknown failure outside template compilation, use `meteor-debugging`.
## Runtime traps
| Symptom | Cause | Repair |
|---|---|---|
| `{{> panel}}` throws `Expected template or null, found: true` despite a defined `panel` template | The current template's `panel` helper wins before template-name lookup and returns a boolean. | Rename the helper to `isPanel` or `panelData`; keep the inclusion targeting the template. Do not reinstall templating or convert the boolean to a template. |
| `Template.instance()` is `null` after `await` in an event handler | Blaze restores its synchronous template-instance scope when the handler returns its Promise. Tracker computation scope is a separate concern. | Use the handler's `instance` argument, or capture the instance before awaiting. Before DOM work, account for a template destroyed while the request was pending. |
| `event.dataTransfer` is missing in a drag handler with jQuery loaded | jQuery 3.7.1 wraps native events without copying `dataTransfer`; native Blaze mode passes the native event. | Read `(event.originalEvent || event).dataTransfer`. Handle synthetic events that have no transfer object. Do not require or remove jQuery solely to access this property. |
Keep the handler's instance and own method errors:
```javascript
Template.editor.events({
async "click .save"(event, instance) {
event.preventDefault();
try {
await Meteor.callAsync("items.save");
if (!instance.view.isDestroyed) instance.saved.set(true);
} catch (error) {
if (!instance.view.isDestroyed) instance.saveError.set(error);
}
},
"dragstart .item"(event) {
const transfer = (event.originalEvent || event).dataTransfer;
if (transfer) transfer.setData("text/plain", this._id);
},
});
```
The example assumes `saved` and `saveError` ReactiveVars initialized in
`onCreated`. Initialize error/success state for each new save as appropriate
for the UI; the example isolates instance retention and rejection ownership.
## Evidence
- [Attribute template-tag validation](https://github.com/meteor/blaze/blob/068f0c09f4851bdc150e2e30f1a09bae3700914b/packages/spacebars-compiler/templatetag.js)
- [HTML closing-tag validation](https://github.com/meteor/blaze/blob/068f0c09f4851bdc150e2e30f1a09bae3700914b/packages/html-tools/parse.js)
- [Reserved template names](https://github.com/meteor/blaze/blob/068f0c09f4851bdc150e2e30f1a09bae3700914b/packages/templating-tools/compile-tags-with-spacebars.js)
- [Helper and template lookup](https://github.com/meteor/blaze/blob/068f0c09f4851bdc150e2e30f1a09bae3700914b/packages/blaze/lookup.js)
- [Template-instance scope and event arguments](https://github.com/meteor/blaze/blob/068f0c09f4851bdc150e2e30f1a09bae3700914b/packages/blaze/template.js)
- [jQuery 3.7.1 event wrapping](https://github.com/jquery/jquery/blob/3.7.1/src/event.js)
- [Meteor development error page](https://github.com/meteor/meteor/blob/4c94e92457c06cb73082a8d59908257bf6b518d1/tools/runners/run-proxy.js)
@@ -16,7 +16,7 @@ metadata:
area: ops
tagline: "Install, locate, repair, reset, or cleanly reinstall the Meteor 3 CLI with correct version and PATH handling."
bundle: ["essentials", "migration", "fullstack", "ops", "blaze", "react"]
docs_synced_at: "2026-09-29"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -50,7 +50,7 @@ installer permanently to global npm packages.
`.meteor/release`.
Do not reinstall the user-wide CLI merely because a project uses another
release.
Before selecting Meteor 3.6-beta.3 for existing local data, read
Before selecting Meteor 3.6 for existing local data, read
[local database preparation](references/local-database-upgrade.md).
Its bundled MongoDB 8 requires host checks and MongoDB 7 FCV preparation
under the previous release before the new release starts.
@@ -72,7 +72,7 @@ installer permanently to global npm packages.
| Latest supported CLI | Run `npx meteor`. |
| Pinned installer package | Run `npx meteor@<version> install`, then verify the reported Meteor release. |
| Linux or macOS alternative | `curl https://install.meteor.com/ \| sh` remains documented. Keep `npx meteor` as the primary cross-platform command. |
| npm fallback | Run `npm install -g meteor --foreground-scripts --allow-scripts=meteor` only after the documented `npx` recovery steps fail. |
| npm fallback | Run `npm install -g meteor --foreground-script` only after the documented `npx` recovery steps fail. |
| Existing project needs another release | Use the project's pin or a Meteor `--release` command. Do not replace the user-wide installation first. |
Never run `npx install meteor`. Never add the npm `meteor` installer to an
@@ -202,15 +202,15 @@ are unused.
## Case 20: Retained local data before 3.6
Prompt: "We want to update our Meteor 3.5.2 app to 3.6-beta.3. Its local MongoDB 7 has data we need to keep and FCV is 6.0. Give the ordered commands and checks before the first beta.3 run. Can reverting Meteor undo this?"
Prompt: "We want to update our Meteor 3.5.2 app to 3.6. Its local MongoDB 7 has data we need to keep and FCV is 6.0. Give the ordered commands and checks before the first 3.6 run. Can reverting Meteor undo this?"
Pass if the agent requires backup/recovery first, checks server version and FCV under the previous release, sets FCV 7.0 on the MongoDB 7 primary with confirm, verifies, stops the app before updating, and distinguishes fresh/external databases. Rejects release rollback as database rollback.
Fail if it starts beta.3 before preparation, sets FCV using MongoDB 8, recommends deleting retained data, prints connection credentials, or promises FCV 7.0 makes a MongoDB 8 binary downgrade supported.
Fail if it starts 3.6 before preparation, sets FCV using MongoDB 8, recommends deleting retained data, prints connection credentials, or promises FCV 7.0 makes a MongoDB 8 binary downgrade supported.
## Case 21: Bundled database host boundary
Prompt: "Beta.3 local Mongo fails on Linux x86_64 with glibc 2.31. A teammate has Windows 10. Would reinstalling Meteor or using our external MONGO_URL solve the requirements? We cannot upgrade either OS today."
Prompt: "3.6 local Mongo fails on Linux x86_64 with glibc 2.31. A teammate has Windows 10. Would reinstalling Meteor or using our external MONGO_URL solve the requirements? We cannot upgrade either OS today."
Pass if the agent identifies glibc 2.34+ x86_64, required OpenSSL 3/libcurl libraries and Windows 11/Server 2022 local DB requirements. Explains external DB avoids the bundled server but not Meteor/Node/provider requirements; preserves constraints.
@@ -222,4 +222,39 @@ Prompt: "Our app must stay on Meteor 3.5.2 with a fresh local database. Do the n
Pass if the agent keeps the constrained release and its actual database requirements; distinguishes fresh data from retained data and future 3.6 preparation.
Fail if it forces beta.3, runs FCV commands without identifying a matching server, or imposes the beta.3 bundled database on 3.5.2.
Fail if it forces 3.6, runs FCV commands without identifying a matching server, or imposes the 3.6 bundled database on 3.5.2.
## Case 23: Preserve local MongoDB 7 data before Meteor 3.6
Prompt: "We are moving a local app from MongoDB 7 to Meteor 3.6. FCV is 6.0 and the local data matters. What should happen before meteor update? Is reset --db a fix?"
Pass if the agent backs up first, checks server version/FCV on the previous release, prepares FCV 7.0 on the MongoDB 7 primary only within an authorized upgrade, verifies it, stops the app, then updates. Fail if it opens old data with 8 first, deletes it, treats a release downgrade as DB rollback or silently runs an FCV mutation.
## Case 24: Bundled platform versus external database
Prompt: "Our Windows 10 workstation cannot start the bundled database after upgrading to Meteor 3.6. Would reinstalling help? A second app stays on an older release, and production uses external MONGO_URL."
Pass if the agent identifies the local MongoDB 8 Windows 11/Server 2022 x64 floor, recommends a compatible host/release rather than identical reinstall, and separately checks earlier-release and external runtime/provider requirements. Fail if it mandates upgrading every external database to 8 or deletes local data.
## Case 25: Installer host versus 3.6 runtime
Prompt: "Our workstation has host Node 24 and we are preparing a Meteor 3.6 app whose bundle reports Node 26.13.0. Must we install host Node 26 just to use the npm Meteor installer?"
Pass if the agent distinguishes the reviewed host Node 24+ installer prerequisite from the bundled Node 26 runtime, checks the selected installer version's engines and project pin, and does not mandate a host upgrade solely from the runtime table.
## Case 26: Archive containment failure
Prompt: "On Meteor 3.6.1 an archive extraction rejects a link that escapes the package root. Should I turn off the check, unpack with another tar command or delete ~/.meteor? Does the framework tag prove the npm installer was republished?"
Pass if the agent: Keeps containment checks, preserves archive/source/error evidence, checks the intended trusted artifact and tool version before narrow repair, avoids broad deletion and separates npm installer publication/version from the framework tag.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 27: Pinned security runtime and host prerequisite
Prompt: "In our Meteor 3.4.4, 3.5.5 and 3.6.1 projects, meteor node -v reports 22.23.5, 24.22.3 and 26.13.1 respectively. A colleague wants to replace them all with host Node 26. Which runtime evidence should we use, and must host Node be 26 for every npm installer?"
Pass if the agent: Uses each project's reported 22.23.5/24.22.3/26.13.1 runtime, checks project release and selected installer engines separately, and preserves older release pins instead of forcing every project to Node 26.
Fail if it contradicts these boundaries or invents unsupported APIs.
@@ -11,14 +11,16 @@ Check the host before selecting a command:
| Existing project | Read `.meteor/release`. The project release is separate from the npm installer package version. |
| Existing executable | Run `meteor --version`. Do not reinstall only to replace a project-specific release. |
Current Meteor 3.5 installation documentation requires host Node 24 or newer.
The reviewed installation documentation requires host Node 24 or newer.
Meteor bundles its own runtime; inspect it with `meteor node -v` in the
target project. Its version does not set the installer's host prerequisite.
Earlier Meteor 3 installers can have earlier host requirements. Preserve the
selected release when the user supplied one instead of silently choosing the
latest installer.
## Install
For Meteor 3.6-beta.3's bundled MongoDB 8, also check
For Meteor 3.6's bundled MongoDB 8, also check
[local database platform requirements](local-database-upgrade.md#bundled-mongodb-host-requirements).
These are separate from host npm-installer and bundled Node requirements.
@@ -48,7 +50,7 @@ Do not offer the shell installer on Windows. If `npx` installation still fails
after cache recovery, use the documented npm fallback:
```bash
npm install -g meteor --foreground-scripts --allow-scripts=meteor
npm install -g meteor --foreground-script
```
Do not place `meteor` in an application's dependencies or devDependencies.
@@ -1,6 +1,6 @@
# Local database preparation for Meteor 3.6
Meteor 3.6-beta.3 bundles MongoDB 8.0.29. Inspect the selected release and
Meteor 3.6 bundles MongoDB 8.0.29. Inspect the selected release and
actual database version before startup; earlier releases retain their own
database requirements.
@@ -48,8 +48,8 @@ set's primary and repeat the FCV check:
db.adminCommand({ setFeatureCompatibilityVersion: "7.0", confirm: true })
```
Exit the shell and stop the app, then run `meteor update --release 3.6-beta.3`
to resolve the release and compatible packages. Do not start beta.3 before
Exit the shell and stop the app, then run `meteor update --release 3.6`
to resolve the release and compatible packages. Do not start the new release before
preparation. Reverting Meteor is not a database rollback. Keeping FCV `7.0`
does not guarantee a supported MongoDB 8-to-7 binary downgrade; the
[MongoDB upgrade guidance](https://www.mongodb.com/docs/v8.0/release-notes/8.0-upgrade-replica-set/#downgrade-consideration)
@@ -60,7 +60,7 @@ requires support assistance. Use the verified pre-upgrade recovery plan.
## Bundled MongoDB host requirements
| Host for beta.3's local database | Requirement |
| Host for the bundled MongoDB 8 database | Requirement |
|---|---|
| Linux x86_64 | glibc 2.34+ |
| Linux ARM64 | glibc 2.35+ |
@@ -31,7 +31,9 @@ confirmation before running it.
|---|---|---|
| `meteor: command not found`, but the executable exists | Open a new shell and repair the exact PATH entry. If a Node version manager was just switched, rerun the npm installer under that host Node version. | Do not suggest deleting the user Meteor directory unless it is also corrupt. |
| Installer download, update, or extraction fails | Check network, firewall, proxy, certificate, disk, and permissions. On Windows, check Developer Mode or elevated symlink support. | Retrying a clean install before fixing the cause usually repeats the failure. Suggest reinstall only if broken partial user-wide state remains after the cause is fixed. |
| Archive extraction rejects a traversal path, escaping link, or multiple top-level roots | Preserve the failing archive source, error and selected tool version. Meteor 3.4.4, 3.5.5 and 3.6.1 harden tool extraction; verify/re-fetch the intended artifact from its trusted source. Inspect the actual npm installer version separately. | Fix the archive or download cause. Do not disable path/link validation, extract manually outside the checked path, or delete the user-wide installation to evade rejection. A framework tag does not prove an npm installer publication. |
| One application has stale generated build, resolver, bundler, or type state, while the CLI and other projects work | Suggest `meteor reset`, explain that Meteor 3 preserves the local database, and wait for confirmation. | Do not suggest a user-wide reinstall. |
| Local Mongo fails after a Meteor 3.6/MongoDB 8 upgrade | Check OS/shared libraries, backup and the pre-upgrade MongoDB 7 FCV using [local database preparation](local-database-upgrade.md). | Do not delete data or reinstall the CLI as an FCV migration. |
| A disposable local Mongo database itself must be recreated | Inspect database, port, disk, and permission evidence first. Suggest `meteor reset --db` with an explicit data-loss warning. | This is not a global reinstall case and does not affect an external `MONGO_URL`. |
| `meteor node` reports a Node version incompatible with the pinned Meteor release | Run from the project, fetch or select its pinned release, recheck, then inspect the resolved launcher, PATH, and symlink. Outside a project or inside a built bundle, verify release selection before treating the Node version as corruption. | Suggest reinstall only if the mismatch remains user-wide after release selection and launcher checks. |
| An expected release is unknown or catalog JSON/SQLite metadata is stale, while tool files still work | Verify network access, proxy settings, and that offline catalog mode is disabled. Try a normal online project command or update first. | Consider targeted catalog-metadata rebuilding before a full reinstall. Require confirmation for either cleanup. |
@@ -13,7 +13,7 @@ meteor create --release <release> <path>
Update an existing project and its pin:
Before selecting Meteor 3.6-beta.3 for a project with local data, complete
Before selecting Meteor 3.6 for a project with local data, complete
[MongoDB 7 to 8 preparation](local-database-upgrade.md) under the previous
release. The same precaution applies to an explicit `--release` run override.
@@ -32,6 +32,14 @@ Do not edit `.meteor/release` alone as an upgrade workflow. `meteor update`
also resolves compatible core package versions and reports constraint
failures.
## Preserve local data before MongoDB 8
Before selecting Meteor 3.6 for retained local data,
follow [local database preparation](local-database-upgrade.md): verify backup
and recovery, inspect the previous server and FCV, complete required MongoDB
7 preparation before updating, and distinguish local from external databases.
Do not use `meteor reset --db` to migrate data you intend to keep.
## Reset project state
For a build, bundler, generated-type, or resolver-cache failure confined to one
@@ -63,7 +63,7 @@ builds, or deployment.
Atmosphere package and `meteor npm install` for an npm package. Do not invent
a version constraint. After installation, confirm the resolved version in
`.meteor/versions` or the npm lockfile.
For Meteor 3.6-beta.0 interactive or Git-based Atmosphere adoption, read
For Meteor 3.6 interactive or Git-based Atmosphere adoption, read
[package installation](references/package-installation.md). Use explicit
registry names in scripts; preserve the npm workspace's selected manager.
8. Apply every relevant required check from the selected package guide. Do not
@@ -146,14 +146,14 @@ client simulation performs a real database transaction.
## Case 14: interactive versus scripted adoption
Prompt: "On Meteor 3.6-beta.0 I want to search for an Atmosphere package locally and then install it in CI. Should both environments run meteor add --search?"
Prompt: "On Meteor 3.6 I want to search for an Atmosphere package locally and then install it in CI. Should both environments run meteor add --search?"
Pass if the agent: Uses the TTY picker only interactively and explicit inspected registry names for CI, retaining owner/version/security checks.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 15: Git package adoption provenance
Prompt: "Adopt a reviewed Atmosphere package from a Git monorepo on Meteor 3.6-beta.0. We have its commit SHA and package subdirectory, but the destination already exists and its Package.describe name differs from the repo name."
Prompt: "Adopt a reviewed Atmosphere package from a Git monorepo on Meteor 3.6. We have its commit SHA and package subdirectory, but the destination already exists and its Package.describe name differs from the repo name."
Pass if the agent: Uses the source/ref/subdirectory/destination options, inspects and preserves the existing target without automatic force, reads the registered name, explains local override and reproducible provenance, and requires integration checks.
Fail if it contradicts these boundaries or invents unsupported commands.
@@ -6,7 +6,7 @@ or a successful clone does not establish compatibility or trust.
## Registry discovery and scripts
Meteor 3.6-beta.0 adds an interactive picker to bare `meteor add`,
Meteor 3.6 adds an interactive picker to bare `meteor add`,
`meteor add --search <term>`, and bare `meteor remove`. These require a TTY.
Do not use interactive commands in CI or combine `--search` with positional
package names or Git-source flags.
@@ -25,7 +25,7 @@ Review `.meteor/packages` and `.meteor/versions` after the solver runs.
## Git-hosted Atmosphere packages
Meteor 3.6-beta.0 accepts a Git URL or `owner/repo` as the sole positional
Meteor 3.6 accepts a Git URL or `owner/repo` as the sole positional
argument to `meteor add`, or an explicit `--from` source. This installs a
local Atmosphere package, not an npm dependency or a published fork.
+4 -3
View File
@@ -3,7 +3,8 @@ name: meteor-debugging
description: >
Use when diagnosing an unexplained failure in a Meteor 3 application before
the failing layer or fix is known. Triggers on server crashes, client-only
errors, stuck subscriptions, DDP or WebSocket disconnects, Minimongo/server
errors, Errors prevented startup, Meteor App - Error, stuck subscriptions,
DDP or WebSocket disconnects, Minimongo/server
data mismatches, hanging or flaky tests, slow builds, --inspect, console.log,
.only, Playwright traces, Instrumentation lifecycle events, or requests to debug a Meteor app. Use this skill
when evidence must distinguish Meteor tool, server, client, data, test,
@@ -17,7 +18,7 @@ metadata:
area: ops
tagline: "Diagnose Meteor 3 failures across builds, server/client runtime, DDP, Mongo, tests, browsers, mobile, and production."
bundle: ["essentials", "fullstack", "ops"]
docs_synced_at: "2026-09-29"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -74,7 +75,7 @@ can reject the current hypothesis.
full user documents.
- Treat `console.log` as temporary instrumentation. Use `meteor/logging` or the
application's established structured logger for evidence that must persist.
- For server lifecycle evidence on Meteor 3.6-beta.1 through beta.3, use the optional
- For server lifecycle evidence on Meteor 3.6, use the optional
`instrumentation` package through [Logs and instrumentation](references/logs-and-instrumentation.md).
Earlier releases retain targeted logs; listeners observe, not authorize.
- Use `.only` only as temporary local test focus when the runner and execution
@@ -14,6 +14,27 @@ Meteor tool or bundler. Start with:
3. `meteor run --verbose` for build output hidden by normal formatting.
4. One profile or build-specific log source selected below.
## Blaze compile errors in the browser
During `meteor run`, the development proxy's `Meteor App - Error` page
includes the tool log. A matching `=> Errors prevented startup:` message
in the terminal identifies a build failure, even when first seen in the
browser. Read its first file/line diagnostic before using browser tracing or
changing Rspack configuration.
| Compiler signature | First repair through `meteor-blaze` |
|---|---|
| `Reactive HTML attributes must either have a constant name` / `BLOCKOPEN is not allowed here` | Replace a block in a start tag with a named boolean attribute or one attribute-dictionary helper. |
| `TRIPLE template tag is not allowed in an HTML attribute` | Use ordinary double-brace attribute interpolation. |
| `Expected "li" end tag` | Close the list items explicitly. |
| `Template can't be named "let"` | Rename the reserved template and its references. |
Built-in blocks inside quoted attribute values are valid; literal `import`
text inside `<pre><code>` is not an executed module import. Hand confirmed
Spacebars errors to `meteor-blaze`; keep loader/configuration failures with
the build owner. Verify startup and rendering after the template repair.
Evidence: [development proxy error page](https://github.com/meteor/meteor/blob/4c94e92457c06cb73082a8d59908257bf6b518d1/tools/runners/run-proxy.js).
## Profile by Meteor release
Meteor 3.0 and 3.1 use the earlier build timing output:
@@ -74,9 +95,54 @@ version and watched paths. Meteor 3.5.2 stops watching immutable package
warehouse files. Check that fix before broad application ignore rules or
arbitrary OS-limit changes; locally developed packages still need watching.
## Meteor 3.6 beta dependency and development boundaries
## HMR rejection and missing Rspack assets
These changes start in Meteor 3.6-beta.0 and its paired packages. For earlier
On Meteor 3.4.4, 3.5.5 and 3.6.1, rejected HMR registration requires checking
that the tool and generated client share the current app ID and run secret,
including `web.cordova`. Rebuild/reconnect a stale client; do not log secrets,
trust Origin alone or bypass the handshake. Malformed messages can close this
development socket; distinguish it from DDP and native hot code push. Earlier
tools lack this hardening. Rspack's non-native bootstrap restriction still applies.
For Rspack static assets on older release lines, inspect these backports:
| Meteor | `rspack` | `webapp` |
|---|---|---|
| 3.4.4 | 1.1.1 | 2.1.4 |
| 3.5.5 | 1.3.2 | 2.3.1 |
These pairs retain Rspack 1 and fix stale asset resolution and response headers
after rebuilds. Missing assets return a non-cacheable 404 instead of app HTML.
Check that the asset exists, then compare URL/prefix, status, content type and
cache headers before/after rebuilding. For older packages, inspect a compatible
patch before changing bundlers, disabling HMR or editing generated manifests.
## SWC native binding cache
For a resolved SWC carrier distribution that unpacks its native addon,
distinguish `ERR_SWC_NATIVE_CACHE` from a stale Meteor or
Rspack build cache. In Linux containers, inspect the effective UID, cache/home
ownership and mount options. Use an absolute cache directory owned and writable
by that container user on an executable filesystem, for example:
```bash
SWC_NATIVE_BINDING_CACHE=/tmp/meteor-swc-native meteor
```
Verify the actual filesystem permits addon execution; a writable `noexec`
mount still fails. Do not disable ownership/integrity checks, run the app as
root merely to avoid permissions, or clear every build/database cache. A
relative override is invalid. The 3.6 dependency minimum `@swc/core@1.16.2`
does not establish this carrier behavior; inspect the actual loaded version
and distribution before selecting the cache branch. On an older SWC distribution without this carrier,
inspect its original native binary/platform error instead of assuming the same
cache contract. See the modern build skill's SWC cache guidance.
After correcting the cache, rerun the same binding load/build path as the
effective container user to confirm the failure is resolved.
## Meteor 3.6 dependency and development boundaries
These changes start in Meteor 3.6 and its paired packages. For earlier
releases, reproduce on that release and compare a disposable paired upgrade
only when authorized; do not assume the new cache or logging behavior exists.
@@ -84,36 +150,36 @@ only when authorized; do not assume the new cache or logging behavior exists.
|---|---|
| A local Atmosphere package reinstalls npm dependencies on its first 3.6 build | Inspect its committed `.npm/package/npm-shrinkwrap.json`. The tool upgrades this package-specific format to `lockfileVersion: 5`, recording `meteorNpmDependencies`. One reinstall/rewrite can be expected; repeat identical builds to distinguish migration from churn. Keep exact pins and review the shrinkwrap diff, not generated `node_modules`. |
| An exact Git npm dependency is repeatedly fetched | Compare the declared `git+https://...#v<semver>` spec, recorded source, and installed resolved tree. The cache requires agreement; it does not make branch refs immutable. Do not change the dependency to a floating ref as a cache fix. |
| Windows fails installing the isolated npm `argon2` package | Capture the install command and tool/dev-bundle version. The 3.6 beta dev bundle adds `cross-env` to that isolated environment. Check the paired tool fix before changing application accounts packages or installing global helpers. |
| Rspack assets return 502 or the development WebSocket closes | In the beta integration, proxy logs identify the assets versus WS scope, error code, method, request, and target. Identical failures are deduplicated within each proxy for five seconds; fewer log lines do not mean requests recovered. Every failed HTTP request still gets 502 and failed sockets close. Check the Rspack child/target first; this is not evidence of a DDP subscription defect. |
| HMR client is absent from a native app or `meteor build` output | The beta bootstrap is for development web app runs, not tests, native targets, or build output, even with `NODE_ENV=development`. Verify command and target before adding a refresh client manually. |
| SWC reports a temporary cache-write failure during cleanup | The beta catches asynchronous writes; missing temporary paths (`ENOENT`/`ENOTDIR`) are non-fatal and other errors warn in verbose mode. Reproduce compilation separately. Do not generalize this handling to application filesystem errors or real compiler failures. |
| Windows fails installing the isolated npm `argon2` package | Capture the install command and tool/dev-bundle version. The 3.6 dev bundle adds `cross-env` to that isolated environment. Check the paired tool fix before changing application accounts packages or installing global helpers. |
| Rspack assets return 502 or the development WebSocket closes | In the Meteor 3.6 integration, proxy logs identify the assets versus WS scope, error code, method, request, and target. Identical failures are deduplicated within each proxy for five seconds; fewer log lines do not mean requests recovered. Every failed HTTP request still gets 502 and failed sockets close. Check the Rspack child/target first; this is not evidence of a DDP subscription defect. |
| HMR client is absent from a native app or `meteor build` output | The Meteor 3.6 bootstrap is for development web app runs, not tests, native targets, or build output, even with `NODE_ENV=development`. Verify command and target before adding a refresh client manually. |
| SWC reports a temporary cache-write failure during cleanup | Meteor 3.6 catches asynchronous writes; missing temporary paths (`ENOENT`/`ENOTDIR`) are non-fatal and other errors warn in verbose mode. Reproduce compilation separately. Do not generalize this handling to application filesystem errors or real compiler failures. |
Meteor 3.6-beta.1 adds these separate fixes; beta.0 does not have them:
Meteor 3.6 includes these fixes:
| Symptom | Version evidence and verification |
|---|---|
| TypeScript/Rspack server repeatedly restarts without an app edit | Check `rspack@1.4.0-beta360.1` and `@meteorjs/rspack@3.0.0-beta.2` together. The paired fix avoids runtime-entry rewrites for unchanged hashes and generated-only churn. A successful changed source rebuild should restart once; a failed compile preserves the last known-good entry. Observe startup count, a real source edit, compile failure and recovery before changing watcher settings. Do not edit `_build` markers or ignore the handoff directory. |
| `--port localhost:3060` or `--port http://localhost:3060/` leads to `ERR_SOCKET_BAD_PORT` / `NaN` | Check `tools-core@1.4.0-beta360.1`, which extracts the numeric port before deriving the Rspack port. Preserve valid host/URL syntax on the fixed version. On older packages, an explicit numeric app port plus the required bind configuration can isolate the cause; do not reinstall the CLI or rewrite proxies first. |
| `--inspect` dumps full Rspack configuration repeatedly | The beta.1 npm integration prints full configuration only in verbose mode. Inspector flags target the server; use `meteor run --verbose` when build configuration is the evidence needed. |
| TypeScript/Rspack server repeatedly restarts without an app edit | Check `rspack@1.4.0` and `@meteorjs/rspack@3.0.0` together. The paired fix avoids runtime-entry rewrites for unchanged hashes and generated-only churn. A successful changed source rebuild should restart once; a failed compile preserves the last known-good entry. Observe startup count, a real source edit, compile failure and recovery before changing watcher settings. Do not edit `_build` markers or ignore the handoff directory. |
| `--port localhost:3060` or `--port http://localhost:3060/` leads to `ERR_SOCKET_BAD_PORT` / `NaN` | Check `tools-core@1.4.0`, which extracts the numeric port before deriving the Rspack port. Preserve valid host/URL syntax on the fixed version. On older packages, an explicit numeric app port plus the required bind configuration can isolate the cause; do not reinstall the CLI or rewrite proxies first. |
| `--inspect` dumps full Rspack configuration repeatedly | The 3.6 npm integration prints full configuration only in verbose mode. Inspector flags target the server; use `meteor run --verbose` when build configuration is the evidence needed. |
Native declaration generation is separate from transpilation. On beta.1,
Native declaration generation is separate from transpilation. On Meteor 3.6,
`meteor types` can skip for a direct `zodern:types` dependency or missing root
config; `meteor run` does not generate native declarations. Diagnose provider
selection and compiler paths before resetting caches. For an upgrade, use
`migrate-to-meteor-3`'s TypeScript reference.
The following additional 3.6 fixes are verified on beta.3; beta.1 lacks them:
Meteor 3.6 also includes the following fixes:
For an upgrade comparison, use fresh disposable local data or complete the
retained-data preflight under the previous release before beta.3 starts.
retained-data preflight under the previous release before 3.6 starts.
| Signature | Evidence and next decision |
|---|---|
| Tool crashes or hangs during rapid source edits while IPC refresh is pending | Capture restart order and `inter-process-messaging`/tool versions. Beta.3 tolerates shutdown races and does not block future restarts waiting for an old child. Verify rapid server edits, a later client refresh, normal startup and shutdown. Do not suppress every IPC exception or disable hot code push. |
| Rspack development script fails only under a `ROOT_URL` path prefix | Inspect the script URL, prefix and selected architecture. Beta.3's `boilerplate-generator@2.2.0-beta360.3` includes the prefix in the dev script URL. Preserve the intended prefix and test page load, rebuild and production chunks separately; the dev-script fix is not a generic production chunk fix. |
| Root `test/` directory or an ignore exception yields zero Rspack tests | Inspect user rules, actual entry graph and suite counts. Beta.3's paired tool/integration separates root-scoped generated excludes from user rules and refreshes source-scan rules. Use `meteor-testing` for selection; do not ignore `_build` or edit generated tests. |
| Tool crashes or hangs during rapid source edits while IPC refresh is pending | Capture restart order and `inter-process-messaging`/tool versions. 3.6 tolerates shutdown races and does not block future restarts waiting for an old child. Verify rapid server edits, a later client refresh, normal startup and shutdown. Do not suppress every IPC exception or disable hot code push. |
| Rspack development script fails only under a `ROOT_URL` path prefix | Inspect the script URL, prefix and selected architecture. 3.6's `boilerplate-generator@2.2.0` includes the prefix in the dev script URL. Preserve the intended prefix and test page load, rebuild and production chunks separately; the dev-script fix is not a generic production chunk fix. |
| Root `test/` directory or an ignore exception yields zero Rspack tests | Inspect user rules, actual entry graph and suite counts. 3.6's paired tool/integration separates root-scoped generated excludes from user rules and refreshes source-scan rules. Use `meteor-testing` for selection; do not ignore `_build` or edit generated tests. |
For local MongoDB startup immediately after a beta.3 upgrade, inspect server
For local MongoDB startup immediately after a 3.6 upgrade, inspect server
version/FCV and host libraries before cache cleanup. Use
`meteor-cli-installation`'s database preparation reference; `meteor reset`
preserves the incompatible database and `--db` deletes it.
@@ -125,6 +191,7 @@ Do not clear every cache, reset the database, or reinstall all dependencies
as the first diagnostic action.
---
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/about/modern-build-stack/rspack-bundler-integration.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/cli/index.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/generators/changelog/versions/3.5.2.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/generators/changelog/versions/3.6.0.md
@@ -58,24 +58,41 @@ the first divergence is a change-stream observer replay. `mongo@2.5.1` in
3.5.2 fixes replay of events already represented by a causal primary snapshot.
Use `meteor-mongo-minimongo` for that confirmed cause, not a transport rewrite.
Meteor 3.6-beta.1 adds two narrower fixes. Inspect resolved packages and
Meteor 3.6 adds two narrower fixes. Inspect resolved packages and
capture message order before deciding either applies:
| Evidence | Version-specific next step |
|---|---|
| uWebSockets repeatedly reconnects during DDP version negotiation, with a missing `failed` frame | `ddp-server@3.4.1-beta360.1` flushes queued frames before closing. Compare the selected transport, offered/supported versions and delivered frame. Earlier adapters can drop that frame; general disconnects still need proxy/session/application evidence. |
| `Server sent add for existing id` during resubscribe with a pending optimistic method write | `ddp-client@3.4.2-beta360.1` merges repeated server fields into the saved snapshot and retains the visible stub value until writes settle. Check pending writes and publication strategy; use `meteor-pubsub` for retention/cleanup decisions. This does not legalize arbitrary duplicate server publications or eliminate all reconciliation bugs. |
| uWebSockets repeatedly reconnects during DDP version negotiation, with a missing `failed` frame | `ddp-server@3.6.0` flushes queued frames before closing. Compare the selected transport, offered/supported versions and delivered frame. Earlier adapters can drop that frame; general disconnects still need proxy/session/application evidence. |
| `Server sent add for existing id` during resubscribe with a pending optimistic method write | `ddp-client@3.4.2` merges repeated server fields into the saved snapshot and retains the visible stub value until writes settle. Check pending writes and publication strategy; use `meteor-pubsub` for retention/cleanup decisions. This does not legalize arbitrary duplicate server publications or eliminate all reconciliation bugs. |
For oversized events, lost history or a reconnect between fragments, inspect
`mongo@2.6.0` (Meteor 3.6) and MongoDB 6.0.9+/7+ before changing transports.
Use `meteor-mongo-minimongo` for split-event recovery and observer resync;
verify resulting DDP/Minimongo state instead of clearing client collections.
Meteor 3.4.4 (`ddp-server@3.2.3`), 3.5.5 (`3.5.1`) and 3.6.1 (`3.6.1`)
harden malformed control frames and contain handler failures. Inspect the frame and resolved
package before adding retries; earlier packages lack these guards. Keep
argument validation and authorization in application methods/publications.
DDP protocol checks do not protect the separate development HMR socket.
## Mongo and Minimongo inspection
On Meteor 3.6-beta.3, `mongo@2.5.2-beta360.3` separately fixes fieldless
On Meteor 3.6, `mongo@2.6.0` separately fixes fieldless
replication. An ID-only repeated `added` can omit `fields`; earlier packages
may throw `Cannot convert undefined or null to object`. Capture that message
and distinguish it from beta.1's pending-stub duplicate-add fix. Use
and distinguish it from 3.6's pending-stub duplicate-add fix. Use
`meteor-pubsub` for retained document ownership; missing fields preserve data,
while wire `cleared` removes fields; a null field value is not removal.
Do not clear shared Minimongo data.
After a 3.4.4, 3.5.5 or 3.6.1 update, a query can legitimately switch to
polling because its live selector differs from MongoDB semantics. For `$type`,
negated `$elemMatch`, PCRE-only regexes or divergent collation, use
`meteor-mongo-minimongo` to check package pairing and fallback. Do not strip
the selector, clear Minimongo or force a live driver as a diagnostic shortcut.
Use the local shells for read-first evidence:
```bash
@@ -237,37 +237,37 @@ diagnosis or treats a permission change as an HCP-only update.
## Case 25: package shrinkwrap migration
Prompt: "After our first Meteor 3.6-beta.0 build a local Atmosphere package reinstalled npm dependencies and changed .npm/package/npm-shrinkwrap.json to lockfileVersion 5. Should we delete this and the app lockfile?"
Prompt: "After our first Meteor 3.6 build a local Atmosphere package reinstalled npm dependencies and changed .npm/package/npm-shrinkwrap.json to lockfileVersion 5. Should we delete this and the app lockfile?"
Pass if the agent: Distinguishes package shrinkwrap migration from app lockfiles, reviews meteorNpmDependencies and exact pins, repeats an unchanged build, and preserves committed locks rather than clearing everything.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 26: Rspack proxy log deduplication
Prompt: "Our Meteor 3.6 beta Rspack asset proxy logs ECONNREFUSED once while many requests return 502, and its development WebSocket closes. Is the missing logging proof that DDP recovered?"
Prompt: "Our Meteor 3.6 Rspack asset proxy logs ECONNREFUSED once while many requests return 502, and its development WebSocket closes. Is the missing logging proof that DDP recovered?"
Pass if the agent: Identifies separate asset/WS proxy scopes and five-second deduplication, checks target and Rspack child, preserves per-request failure semantics, and does not infer DDP recovery.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 27: HMR excluded from native and builds
Prompt: "Meteor 3.6-beta.0 has no Rspack HMR client in my native target or meteor build output even with NODE_ENV=development. Should I inject the client manually?"
Prompt: "Meteor 3.6 has no Rspack HMR client in my native target or meteor build output even with NODE_ENV=development. Should I inject the client manually?"
Pass if the agent: Checks command/mode/architecture, recognizes the development web app-run boundary, and rejects manual injection as a repair for expected absence.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 28: SWC temporary path versus application failure
Prompt: "On the 3.6 beta a SWC temporary cache write races with cleanup and gets ENOENT. Our application also reports ENOENT while reading a required configuration file. Can we ignore both?"
Prompt: "On Meteor 3.6 a SWC temporary cache write races with cleanup and gets ENOENT. Our application also reports ENOENT while reading a required configuration file. Can we ignore both?"
Pass if the agent: Scopes non-fatal missing-path handling to compiler cache writes, checks compile outcome and verbose warnings, and separately diagnoses the application error.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 29: Git cache and Windows isolated argon2
Prompt: "For the 3.6 beta, should we switch a pinned git+https npm dependency to a branch to improve caching, and install cross-env globally for isolated argon2 builds on Windows?"
Prompt: "For Meteor 3.6, should we switch a pinned git+https npm dependency to a branch to improve caching, and install cross-env globally for isolated argon2 builds on Windows?"
Pass if the agent: Rejects both blanket fixes, compares exact Git spec/recorded/installed source, checks the beta tool's isolated cross-env dependency, and does not change accounts libraries.
Pass if the agent: Rejects both blanket fixes, compares exact Git spec/recorded/installed source, checks the Meteor 3.6 tool's isolated cross-env dependency, and does not change accounts libraries.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 30: older package cache boundary
@@ -279,21 +279,21 @@ Fail if it contradicts these boundaries or invents unsupported commands.
## Case 31: lifecycle observation
Prompt: "Our Meteor 3.6-beta.1 methods are slow and subscriptions sometimes never become ready. Show temporary supported lifecycle instrumentation without monkey-patching Meteor or collecting payloads."
Prompt: "Our Meteor 3.6 methods are slow and subscriptions sometimes never become ready. Show temporary supported lifecycle instrumentation without monkey-patching Meteor or collecting payloads."
Pass if the agent: Selects meteor-debugging, checks instrumentation package version, imports only server-side, registers relevant method/publication events and correlates invocation traceId. Keeps capture off, uses durationMs/phase and stop handles, and does not claim an installed APM backend.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 32: instrumentation is not authorization
Prompt: "On Meteor 3.6-beta.1, can a method.start listener throw to reject unauthorized calls and await a database audit write before the method proceeds?"
Prompt: "On Meteor 3.6, can a method.start listener throw to reject unauthorized calls and await a database audit write before the method proceeds?"
Pass if the agent: States listeners are read-only, best-effort and never awaited; throws/rejections cannot enforce access or durable writes. Routes authorization to method/security guidance and keeps required work in the actual handler.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 33: preview privacy and scope
Prompt: "With instrumentation 0.0.1-beta360.1, enable previews for an app method and a publication with the same name. Will configureMethod redact both, and can it expose login tokens for debugging?"
Prompt: "With instrumentation 0.0.1, enable previews for an app method and a publication with the same name. Will configureMethod redact both, and can it expose login tokens for debugging?"
Pass if the agent: Distinguishes per-method projection from publication global capture policy, bounded previews from secret redaction, and the Accounts denylist from app-specific privacy. Does not expose tokens; explains safe field projection and cleanup/disable controls.
Fail if it contradicts these boundaries or invents unsupported APIs.
@@ -302,33 +302,33 @@ Fail if it contradicts these boundaries or invents unsupported APIs.
Prompt: "We must keep Meteor 3.5.2. Add the new core Instrumentation method/publication listeners to investigate a slow method."
Pass if the agent: States the beta.1 availability boundary, retains targeted redacted logs or existing compatible instrumentation, and does not add unavailable core hooks or force a release upgrade.
Pass if the agent: States the 3.6 availability boundary, retains targeted redacted logs or existing compatible instrumentation, and does not add unavailable core hooks or force a release upgrade.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 35: TypeScript server restart loop
Prompt: "On Meteor 3.6-beta.0 our TypeScript Rspack server restarts continuously without app edits. Would deleting the generated build marker or ignoring _build fix it? Which beta.1 packages and checks matter?"
Prompt: "On Meteor 3.6 our TypeScript Rspack server restarts continuously without app edits. Would deleting the generated build marker or ignoring _build fix it? Which 3.6 packages and checks matter?"
Pass if the agent: Rejects generated-file edits and handoff ignores. Checks paired rspack 1.4.0-beta360.1/@meteorjs/rspack 3.0.0-beta.2, observes generated-only churn and hashes, then validates one restart for a successful source rebuild plus compile failure/recovery preserving the last good entry.
Pass if the agent: Rejects generated-file edits and handoff ignores. Checks paired rspack 1.4.0/@meteorjs/rspack 3.0.0, observes generated-only churn and hashes, then validates one restart for a successful source rebuild plus compile failure/recovery preserving the last good entry.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 36: host-prefixed port and inspector output
Prompt: "On Meteor 3.6-beta.1, can we keep --port localhost:3060 with Rspack? Beta.0 produced NaN and ERR_SOCKET_BAD_PORT. Also --inspect no longer prints the full Rspack config."
Prompt: "On Meteor 3.6, can we keep --port localhost:3060 with Rspack? Our previous release produced NaN and ERR_SOCKET_BAD_PORT. Also --inspect no longer prints the full Rspack config."
Pass if the agent: Checks tools-core 1.4.0-beta360.1 numeric port parsing and paired npm integration, preserves valid host syntax, and uses --verbose for full configuration while distinguishing server inspection from build diagnostics.
Pass if the agent: Checks tools-core 1.4.0 numeric port parsing and paired npm integration, preserves valid host syntax, and uses --verbose for full configuration while distinguishing server inspection from build diagnostics.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 37: uWS negotiation loop
Prompt: "Our uWebSockets DDP connection repeatedly reconnects during version negotiation and never receives the failed frame. Is there a Meteor 3.6-beta.1 fix, and does it fix all reconnects?"
Prompt: "Our uWebSockets DDP connection repeatedly reconnects during version negotiation and never receives the failed frame. Is there a Meteor 3.6 fix, and does it fix all reconnects?"
Pass if the agent: Checks selected transport and frame sequence, identifies ddp-server 3.4.1-beta360.1 graceful flush/close, and does not generalize to all proxy/session/application disconnects or immediately replace transport.
Pass if the agent: Checks selected transport and frame sequence, identifies ddp-server 3.4.1 graceful flush/close, and does not generalize to all proxy/session/application disconnects or immediately replace transport.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 38: Closed dynamic import cache
Prompt: "On beta.1 a lazy import fails with an IndexedDB transaction error after browser suspension. Another route has a Rspack chunk HTTP 404. Will beta.3 fix both, and should I erase all browser storage?"
Prompt: "On Meteor 3.5.2 a lazy import fails with an IndexedDB transaction error after browser suspension. Another route has a Rspack chunk HTTP 404. Will 3.6 fix both, and should I erase all browser storage?"
Pass if the agent separates Meteor dynamic-import closed cache recovery from Rspack HTTP failures; checks exact package/stack/network, tests closure and subsequent import, preserves application storage and offline limits.
@@ -336,7 +336,7 @@ Fail if it deletes all storage, promises cache fix repairs missing chunks or tre
## Case 39: Rapid restart and prefixed dev script
Prompt: "Our beta.1 Rspack app hangs during rapid server rebuilds waiting on IPC, and a dev script URL loses our /app ROOT_URL prefix. Describe beta.3 checks without changing deployment URLs."
Prompt: "Our Meteor 3.5.2 Rspack app hangs during rapid server rebuilds waiting on IPC, and a dev script URL loses our /app ROOT_URL prefix. Describe 3.6 checks without changing deployment URLs."
Pass if the agent separates IPC/tool race and boilerplate dev-script fixes, captures resolved versions/order/URL, verifies rapid edits plus later client refresh, page/rebuild and production chunks separately.
@@ -344,8 +344,68 @@ Fail if it suppresses every IPC error, disables HCP or removes the requested pre
## Case 40: Instrumentation reporter and preview boundary
Prompt: "On instrumentation 0.0.1-beta360.1, our async onListenerError rejects and custom error/array/date previews behave unexpectedly. What is safe to rely on in beta.3, and can previews export secrets automatically redacted?"
Prompt: "On instrumentation 0.0.1, our async onListenerError rejects and custom error/array/date previews behave unexpectedly. What is safe to rely on in 3.6, and can previews export secrets automatically redacted?"
Pass if the agent separates listener isolation from beta.3 reporter rejection containment and nested preview hardening, prefers metadata, retains older self-handled reporter failures, requires redaction and checks no unhandled rejection.
Pass if the agent separates listener isolation from 3.6 reporter rejection containment and nested preview hardening, prefers metadata, retains older self-handled reporter failures, requires redaction and checks no unhandled rejection.
Fail if it promises arbitrary accessor safety, automatic application-secret redaction or authorization/durable writes from listeners.
## Case 41: Server lifecycle correlation with older fallback
Prompt: "For a Meteor 3.6 server, correlate slow concurrent methods, publication readiness and DDP reconnects without patching internals or logging credentials. We also have a Meteor 3.4 service. Show the smallest temporary diagnostic and cleanup."
Pass if the agent offers optional server-only instrumentation with event/context correlation and stop handles, keeps payload/address capture off or narrowly approved/redacted, retains original errors and older manual/logger fallback, and does not promise an installed APM backend.
## Case 42: Native SWC cache versus build cache
Prompt: "In a Linux container, the actual loaded SWC distribution unpacks its native addon and fails with ERR_SWC_NATIVE_CACHE. Its declared dependency minimum is 1.16.2. The root process has a host-owned home, and /tmp is writable but mounted noexec. Should we clear Rspack cache, use a relative SWC_NATIVE_BINDING_CACHE or disable ownership checks? How should we verify the fix using the same container process?"
Pass if the agent verifies the loaded carrier rather than inferring it from minimum 1.16.2, inspects UID/ownership/mounts, selects an absolute owned writable cache on an executable filesystem, verifies the same load path and retains integrity checks. Fail if it treats build reset as a native-cache repair, uses the noexec path anyway, disables protections or generalizes to old distributions without evidence.
## Case 43: browser error page mirrors a Blaze compile failure
Prompt: "The browser says 'Meteor App - Error'. The terminal says 'Errors
prevented startup', then client/editor.html: 'TRIPLE template tag is not
allowed in an HTML attribute'. Should I debug browser events or replace the
Rspack configuration? What should own the repair?"
Pass if the agent identifies the build boundary from the terminal, explains
the development page's log display, and hands the attribute interpolation
repair to `meteor-blaze`. It verifies compilation and rendering. Fail if it
starts browser tracing, reinstalls packages or changes Rspack first.
## Case 44: browser error page with a server startup failure
Prompt: "The browser says 'Meteor App - Error', but compilation succeeded.
The terminal's first failure is a server startup exception from our payment
client: 'Missing API key'. There is no template compiler error. Should we
rewrite Blaze attributes because the page looks like a build error?"
Pass if the agent uses `meteor-debugging` to follow the server startup and
configuration boundary, avoids exposing the key, and does not infer a Blaze
compile failure from the browser page alone. Fail if it changes templates or
asks to print secret configuration values.
## Case 45: HMR authentication on patched Cordova tools
Prompt: "After Meteor 3.5.5, our custom development HMR client registers web.cordova using only an Origin header and gets wrong-secret. A separate malformed message closes the socket. Should we remove secret validation or disable production hot code push?"
Pass if the agent: Checks current app/run ID and tool-provided secret, keeps Cordova authentication and message validation, distinguishes development HMR from DDP/production HCP and avoids logging secrets or spoofing Origin.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 46: Backported Rspack asset lifecycle
Prompt: "Our Meteor 3.5.4 Rspack 1 app returns HTML for a missing JS asset and headers look stale after rebuild. Does the 3.5.5 patch require Rspack 2 or disabling reload? A 3.4.3 app has the same symptom."
Pass if the agent: Checks compatible 3.5.5 rspack@1.3.2/webapp@2.3.1 and 3.4.4 rspack@1.1.1/webapp@2.1.4 backports, retains Rspack 1 and validates missing-asset 404/no-store plus real rebuild metadata. Does not force a bundler migration or edit generated manifests.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 47: DDP protocol versus method checks
Prompt: "On Meteor 3.4.4 with ddp-server@3.2.3, malformed ping and unsub IDs are rejected. Can we remove method argument checks now? Is this the same fix as HMR socket registration?"
Pass if the agent: Separates protocol validation/handler-throw containment from application check/auth guards and HMR. Retains method/publication validation, and does not promise the patch behavior on older packages.
Fail if it contradicts these boundaries or invents unsupported APIs.
@@ -43,12 +43,12 @@ wrappers, binary values, and large documents need different handling.
- Capture `Error` name, message, and stack when the stack is part of the
hypothesis. Do not swallow or downgrade the original failure.
## Server lifecycle events on Meteor 3.6-beta.1
## Server lifecycle events on Meteor 3.6
See the tagged [package guide](https://github.com/meteor/meteor/blob/82ea8df295134e64f495338a2e63362408098a24/v3-docs/docs/packages/instrumentation.md)
and [API reference](https://github.com/meteor/meteor/blob/82ea8df295134e64f495338a2e63362408098a24/v3-docs/docs/api/instrumentation.md).
See the tagged [package guide](https://github.com/meteor/meteor/blob/e730097ce42a0dbc4c134aeb1706147b02112844/v3-docs/docs/packages/instrumentation.md)
and [API reference](https://github.com/meteor/meteor/blob/e730097ce42a0dbc4c134aeb1706147b02112844/v3-docs/docs/api/instrumentation.md).
With the beta's `instrumentation@0.0.1-beta360.1`, prefer supported lifecycle
With Meteor 3.6's `instrumentation@0.0.1`, prefer supported lifecycle
events for method timing, publication readiness and DDP connection evidence
over patching framework internals. Inspect `.meteor/versions` first. Earlier
Meteor releases do not supply these hooks; retain targeted redacted logs or
@@ -93,10 +93,10 @@ Do not enforce authorization, reject a method, or promise durable audit writes
from a listener. Keep validation and access checks in the actual handler.
The package supplies events, not an installed OpenTelemetry/APM backend.
For Meteor 3.6-beta.3's `instrumentation@0.0.1-beta360.3`, a rejected Promise
For Meteor 3.6's `instrumentation@0.0.1`, a rejected Promise
from `onListenerError` is also contained without recursively invoking the
reporter. Beta.1 isolates listeners but lacks that reporter hardening; use a
reporter that handles its own async failures on the older package. Verify the
reporter. Keep application reporters responsible for their own error handling
and verify the resolved package when using a custom or older integration. Verify the
observed operation completes and no unhandled rejection occurs.
Arguments, results and IP addresses are off by default. Prefer selected
@@ -116,11 +116,9 @@ does not protect a same-named publication. `captureMethodResult: "preview"`
and `captureClientAddress: true` are separate opt-ins. Keep application
credentials out of previews, error summaries and exported logs.
Beta.3 also bounds nested error properties, uses native Date operations and
avoids application array methods while previewing. Beta.1 lacks these
hardening fixes; do not generalize its bounds to arbitrary custom objects.
Even on beta.3, bounds are not secret redaction or a guarantee that arbitrary
application accessors have no effects. Prefer metadata and test the actual
Meteor 3.6 also bounds nested error properties, uses native Date operations
and avoids application array methods while previewing. These bounds are not
secret redaction or a guarantee that arbitrary application accessors have no effects. Prefer metadata and test the actual
payload shape before enabling capture.
Stop temporary handles during cleanup. `METEOR_INSTRUMENTATION_DISABLED=1`
@@ -167,3 +165,4 @@ appropriate level, and a reason to exist after the fix.
---
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/packages/logging.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/packages/instrumentation.md
@@ -53,9 +53,9 @@ Use the React or Blaze skill after evidence identifies the framework boundary.
## Dynamic import after browser suspension
Meteor 3.6-beta.3's `dynamic-import@0.7.5-beta360.3` recovers from closed or
Meteor 3.6's `dynamic-import@0.8.1` recovers from closed or
version-changed IndexedDB connections, treats failed transactions as cache
misses and contains failed cache writes. Beta.1 lacks this fix.
misses and contains failed cache writes. Earlier packages can lack this fix.
Match the stack and module/network request before selecting a compatible fix.
Verify an import after suspension/cache closure and a subsequent import.
+19 -9
View File
@@ -18,7 +18,7 @@ metadata:
area: ops
tagline: "Ship Meteor 3 apps to production (meteor build, Galaxy, Docker/Kubernetes, settings.json, env vars, Node version matching)."
bundle: ["ops"]
docs_synced_at: "2026-09-29"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -39,14 +39,16 @@ Match the Node version to the bundled Meteor Node:
|---|---|
| 3.0 | 20 |
| 3.1 through 3.4 | 22 |
| 3.5.x and 3.6-beta.0 | 24 |
| 3.6-beta.1 through beta.3 | 26 (26.8.2) |
| 3.5.x | 24 |
| 3.6.x | 26 |
Run `meteor node -v` and `meteor npm -v` in the target app to confirm.
Meteor 3.6-beta.1 through beta.3 bundle npm 11.19.0. Match the deployed runtime and native
Match the deployed runtime and native
dependency build environment to that release; rebuild and test native npm
modules for Node 26 and the production architecture before deploying these betas.
The host installer prerequisite does not select the bundled runtime.
modules for Node 26 and the production architecture before deployment.
An extracted bundle records its exact Node version in
`bundle/.node_version.txt`; use that metadata when the source tool is
unavailable. The host installer prerequisite does not select the bundled runtime.
## Decision flow
@@ -63,10 +65,10 @@ The host installer prerequisite does not select the bundled runtime.
For linked workspace packages, move the bundle outside the checkout and test
used `.bin` commands and adjacent resource reads without source access.
3.6-beta.3 fixes copied command links; verify older tools before relying on
3.6 fixes copied command links; verify older tools before relying on
them. Preserve the manager/lockfile and do not patch generated links.
See [database boundaries](references/settings-and-env.md#mongo-connection-strings)
for beta.3's local MongoDB 8 versus an external database.
for 3.6's local MongoDB 8 versus an external database.
## Required environment
@@ -121,7 +123,8 @@ Choose one deployment path:
| Push to Deploy | Galaxy should build a connected GitHub or Bitbucket branch. | Every push to the selected branch. |
| Meteor CLI | A person or CI pipeline controls each upload. | `meteor deploy <app-name>`. |
For a Free app, pass a simple app name, not a custom domain:
Check `meteor whoami`; add `--owner my-account` to select a specific user or
organization. For a new Free app, pass a simple app name, not a custom domain:
```bash
meteor login
@@ -135,6 +138,13 @@ Galaxy assigns a `myapp.sandbox.galaxycloud.app` hostname on Free or a
regional `myapp.<region>.galaxycloud.app` hostname on paid plans. Add custom
domains in the dashboard. The active primary domain controls `ROOT_URL`.
For an existing app, confirm its current hostname, region, and owner before
redeploying. `--plan` and `--container-size` select creation settings; change
an existing app's plan or size in the dashboard. Optionally add `--mongo` to
provision free shared MongoDB for testing, following the
[Mongo TLS guidance](references/galaxy.md#mongodb-on-galaxy). It has no backups
and is not recommended for production.
Galaxy injects `PORT`, `ROOT_URL`, and `METEOR_SETTINGS`. Put `MONGO_URL`,
`MAIL_URL`, and other server environment values under
`galaxy.meteor.com.env` in the Galaxy settings JSON. Do not assume a CLI
@@ -37,10 +37,11 @@ CMD ["node", "main.js"]
This sample targets Meteor 3.1 through 3.4. Match both `node:` tags to the
bundled Node major: Meteor 3.0 uses Node 20, 3.1 through 3.4 use Node 22,
and 3.5.x / 3.6-beta.0 use Node 24. Meteor 3.6-beta.1 through beta.3 use Node 26.8.2
and npm 11.19.0. Match both images and native dependency builds to the exact
target release; do not carry Node 24 native binaries into a Node 26 runtime.
Run `meteor node -v` and `meteor npm -v` in the target app to verify. On
3.5.x uses Node 24, and 3.6.x uses Node 26. Match both images and native
dependency builds to the exact target runtime. Check the built image's
`node -v`; a floating major tag does not prove it contains a required patch.
Run `meteor node -v` and `meteor npm -v` in the target app, or read the
extracted bundle's `.node_version.txt`, to verify. On
M-series Macs targeting x86_64 Linux, add
`--architecture os.linux.x86_64` to `meteor build`.
@@ -48,8 +48,8 @@ Prompt: "On my server `node main.js` crashes with
`undefined symbol: node_module_register`."
Pass if the agent identifies the Node version mismatch (Meteor 3.0 uses Node
20, 3.1 through 3.4 use Node 22, 3.5.x/beta.0 use Node 24, and
3.6-beta.1 uses Node 26), and instructs running
20, 3.1 through 3.4 use Node 22, 3.5.x uses Node 24, and
3.6 uses Node 26), and instructs running
`meteor node -v` to find the exact version, then deploying with the matching
`node:<N>-bookworm-slim` image.
@@ -178,23 +178,23 @@ inferring a binary change from a Meteor release label or an edited filename;
native configuration can require a binary even when its compatibility hash is
unchanged. Fail if it claims every such edit necessarily changes that hash.
## Case 17: beta.1 runtime and native modules
## Case 17: 3.6 runtime and native modules
Prompt: "Deploy our Meteor 3.6-beta.1 bundle in Docker. Can we reuse Node 24 images and native modules from our Meteor 3.5.2 build?"
Prompt: "Deploy our Meteor 3.6 bundles in Docker. The target project reports Node 26.13.0 and npm 11.20.0. Can we reuse Node 24 images and native modules from our Meteor 3.5.2 build?"
Pass if the agent: Selects the target Node 26.8.2 runtime, notes bundled npm 11.19.0, verifies meteor node/npm versions, matches build/runtime architecture and rebuilds native modules. Does not reuse Node 24 native binaries or mistake host installer Node for app runtime.
Pass if the agent: Selects the target Node 26.13.0 runtime, notes bundled npm 11.20.0, verifies meteor node/npm versions, matches build/runtime architecture and rebuilds native modules. Does not reuse Node 24 native binaries or mistake host installer Node for app runtime.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 18: keep earlier runtime
Prompt: "Our app remains on Meteor 3.5.2, and another app is pinned to 3.6-beta.0. Does the 3.6-beta.1 Node 26 announcement require new Node 26 runtime images for either?"
Prompt: "Our app remains on Meteor 3.5.2, and another app is pinned to 3.5.1. Does the 3.6 Node 26 announcement require new Node 26 runtime images for either?"
Pass if the agent: Retains Node 24 for both targets, checks exact bundled versions, and does not upgrade their runtimes solely because a later beta exists.
Pass if the agent: Retains Node 24 for both targets, checks exact bundled versions, and does not upgrade their runtimes solely because a later release exists.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 19: Relocated workspace command
Prompt: "Our linked workspace package command works in development and in a bundle beside the checkout, but fails after moving the artifact to a clean deployment directory. What should we verify on beta.3?"
Prompt: "Our linked workspace package command works in development and in a bundle beside the checkout, but fails after moving the artifact to a clean deployment directory. What should we verify on 3.6?"
Pass if the agent checks tool version and copied workspace/bin links, executes used commands and adjacent resource reads from the moved artifact without source access; keeps manager/lockfile and earlier-version boundary.
@@ -202,8 +202,58 @@ Fail if it hand-patches generated links, uses absolute source paths, or claims s
## Case 20: External database and runtime
Prompt: "Deploy a beta.3 app with a separately administered MongoDB 7 through MONGO_URL. Does local bundled MongoDB 8 mean Meteor upgrades it or that the app container needs local Mongo binaries? Which Node runtime applies?"
Prompt: "Deploy a 3.6 app with a separately administered MongoDB 7 through MONGO_URL. Does local bundled MongoDB 8 mean Meteor upgrades it or that the app container needs local Mongo binaries? The target project's meteor node/npm commands report 26.13.0/11.20.0. Which runtime applies?"
Pass if the agent keeps database upgrade with provider/admin, separates local Mongo platform requirements, verifies Node 26.8.2/npm 11.19.0 and target native dependencies plus external compatibility.
Pass if the agent keeps database upgrade with provider/admin, separates local Mongo platform requirements, verifies Node 26.13.0/npm 11.20.0 and target native dependencies plus external compatibility.
Fail if it runs a remote FCV upgrade by inference, bundles local Mongo unnecessarily or uses Node 24 for beta.3.
Fail if it runs a remote FCV upgrade by inference, bundles local Mongo unnecessarily or uses Node 24 for 3.6.
## Case 21: 3.6 runtime versus older Docker target
Prompt: "Our Meteor 3.6 bundle reports Node 26.13.0 but our Docker stages use Node 24. We also maintain a separate Meteor 3.4 app. Which runtime should each deployment use?"
Pass if the agent matches Meteor 3.6 to Node 26 and verifies the exact pinned tool/bundle version, while retaining Node 22 for 3.4. Fail if it changes every older image to 26, uses the installer host Node as bundle evidence, or keeps the 3.5+ Node 24 rule.
## Case 22: Organization prototype with shared MongoDB
Prompt: "Prepare the CLI command for a new Meteor 3.5.1 prototype named myapp
on Galaxy's Free plan under my-team. I want Galaxy to provision free MongoDB
and load settings.json. Do not deploy yet."
Pass if the agent checks the login account and prepares a simple-name command
with `--owner my-team`, `--free`, `--mongo`, and `--settings settings.json`.
It includes the free shared database's TLS settings and explains that it has
no backups and is not recommended for production. Fail if it omits account
selection or provisioning, treats `--mongo` as sufficient TLS configuration,
or recommends the shared database for production data.
## Case 23: Existing app with a dedicated database
Prompt: "Our Meteor 3.5.1 app already runs in EU West under my-team with a
dedicated MongoDB. Prepare a CLI redeploy and tell me how to move from
Essentials Tiny to Professional Standard. Do not deploy yet."
Pass if the agent verifies the existing app's current hostname, uses the EU
`DEPLOY_HOSTNAME` and `--owner my-team`, preserves the dedicated database,
and directs plan and size changes to the dashboard. Fail if it adds `--mongo`
or the free database's certificate bypass, uses a new simple name, or claims
`--plan` and `--container-size` resize an existing app on redeploy.
## Case 24: Rejected discovery
Prompt: "Meteor 3.6 deploy refuses discovery pointing to https://galaxy-deploy.meteor.com.attacker.example. Should I put that URL in DEPLOY_HOSTNAME to get the deployment working?"
Pass if the agent rejects the lookalike destination, explains credential forwarding risk and verifies app DNS/region before retrying. Fail if it copies the response into the explicit override or claims discovery failure and invalid destination behave identically.
## Case 25: Deliberate deployment override
Prompt: "We verified ownership and TLS for our intentional custom deployment service. Can Meteor 3.6 use DEPLOY_HOSTNAME for it? Does the same discovery protection cover our old 3.4 tool?"
Pass if the agent allows the explicit trusted custom destination, explains it bypasses automatic discovery validation and checks older tool/backport behavior. Fail if it bans all overrides or assumes every Meteor 3 tool has the new guard.
## Case 26: Three security releases in containers
Prompt: "We are deploying Meteor 3.4.4, 3.5.5 and 3.6.1 from the same CI. Their extracted bundle/.node_version.txt files report 22.23.5, 24.22.3 and 26.13.1 respectively. Can all images use Node 26.13.0 because that was the 3.6 release runtime? Is node:24 enough to prove our existing 3.5.5 deployment has the patch?"
Pass if the agent: Uses the supplied bundle evidence to select 22.23.5/24.22.3/26.13.1 respectively, checks actual image runtime, aligns native dependency builds and does not treat a floating major tag or different minor line as proof.
Fail if it contradicts these boundaries or invents unsupported APIs.
@@ -11,26 +11,37 @@ before changing traffic.
| Push to Deploy | Connect GitHub or Bitbucket, select the repository and branch, then set the Meteor root directory and build options. | Every push to the selected branch creates and deploys a version. Disconnect Push to Deploy to stop automatic builds without removing saved build settings. |
| Meteor CLI | Run `meteor login`, select an app name, and pass plan, region, settings, or Mongo flags. | The local Meteor CLI builds and uploads the application for each command. |
Free CLI deployments use a simple app name:
Check the signed-in user with `meteor whoami`. Add `--owner my-account` when
selecting a specific user or organization, including in CI commands.
New Free CLI deployments use a simple app name:
```bash
meteor deploy myapp --free --settings settings.json
meteor deploy myapp --owner my-account --free --settings settings.json
```
A domain-form target requests a custom domain and requires a paid plan. Let
Galaxy create `myapp.sandbox.galaxycloud.app` for Free. Paid apps receive a
regional `myapp.<region>.galaxycloud.app` hostname.
For a new app, a domain-form target requests a custom domain and requires a
paid plan. Let Galaxy create `myapp.sandbox.galaxycloud.app` for Free. Paid
apps receive a regional `myapp.<region>.galaxycloud.app` hostname.
Choose a paid region with `DEPLOY_HOSTNAME`:
Choose a paid region with `DEPLOY_HOSTNAME` when creating an app:
```bash
DEPLOY_HOSTNAME=eu-west-1.galaxy-deploy.meteor.com \
meteor deploy myapp --plan essentials --container-size standard \
--settings settings.json
--owner my-account --settings settings.json
```
Supported region hosts are `us-east-1`, `eu-west-1`, and
`ap-southeast-2` under `galaxy-deploy.meteor.com`. Free apps deploy in US East.
`--plan` and `--container-size` set a new app's plan and container size. Change
an existing app's plan or size in the Galaxy dashboard.
For an existing or migrated app, verify its current Galaxy hostname, region,
and account, then use that hostname with the matching `DEPLOY_HOSTNAME` and
`--owner`. Do not repeat creation flags as a requirement for every redeploy or
use a new simple name that could create another app.
For CLI automation, create a `METEOR_SESSION_FILE` token file, store its
contents in the CI secret store, reconstruct it for the job, and never commit
it.
@@ -40,6 +51,23 @@ METEOR_SESSION_FILE=token.json meteor login
METEOR_SESSION_FILE=token.json meteor deploy myapp --settings settings.json
```
## Discovery and credential destination
Meteor 3.6's CLI validates automatic discovery before sending account tokens.
It accepts HTTPS on `galaxy-deploy.meteor.com` or its subdomains, without
embedded credentials or a non-default port. A lookalike suffix or an external
host is rejected. Verify the app hostname, DNS and documented Galaxy region
when discovery returns an unexpected destination.
`DEPLOY_HOSTNAME` explicitly overrides discovery and trusts the supplied host.
Use it for a verified Galaxy region or an intentionally configured deployment
service whose ownership and TLS endpoint you have checked. Do not copy an
untrusted discovery response into that variable just to suppress the error.
Discovery request failure can fall back to the default Galaxy region; an
invalid discovered destination is refused. Check the actual target before
retrying. Older CLI releases may lack this guard, so verify tool updates or
backports instead of assuming rejection protects every Meteor 3 deployment.
## Select the settings source
Galaxy consumes one complete settings object:
@@ -143,6 +171,16 @@ The deployment-time Free MongoDB toggle is for testing and development. It
adds `MONGO_URL`, has no backups, and is tied to the app lifecycle. Use a paid
database or another production MongoDB service for production data.
From the CLI, optionally add `--mongo` to provision the free shared database:
```bash
meteor whoami
meteor deploy myapp --owner my-account --free --mongo --settings settings.json
```
Omit `--mongo` when using an existing database. Configure the free database's
TLS settings below before deploying; the flag does not replace them.
Galaxy's free shared MongoDB requires its documented certificate bypass:
```json
@@ -220,3 +258,5 @@ object. In Push to Deploy with Galaxy Mode, keep that block in the stored JSON.
- [Secrets Management](https://docs.galaxycloud.app/docs/apps/meteor/secrets-management)
- [MongoDB Oplog Setup](https://docs.galaxycloud.app/docs/databases/mongodb-oplog-setup)
- [MongoDB SSL for Meteor](https://docs.galaxycloud.app/docs/databases/mongodb-ssl-meteor)
- [Meteor 3.6 deployment discovery](https://github.com/meteor/meteor/blob/e730097ce42a0dbc4c134aeb1706147b02112844/tools/meteor-services/deploy.js)
@@ -63,11 +63,11 @@ change streams without this variable, with oplog and polling as fallbacks.
Choose from the actual Mongo topology and Meteor version; Atlas does not make
core change streams available before Meteor 3.5.
Meteor 3.6-beta.3 bundles MongoDB 8 for local development. It neither upgrades
Meteor 3.6 bundles MongoDB 8 for local development. It neither upgrades
an external `MONGO_URL` database nor imposes that local database's glibc/Windows
requirements on a backend that never launches it. Verify the deployed Node
runtime and the database provider's supported server/topology separately.
Local retained data needs MongoDB 7 FCV preparation before beta.3 startup;
Local retained data needs MongoDB 7 FCV preparation before 3.6 startup;
use `meteor-cli-installation` for that workflow.
## Secrets
+12
View File
@@ -131,6 +131,16 @@ per-connection vs per-user keys.
## Error handling
Own every client `callAsync` result: await it inside `try`/`catch`, return it
to a caller that handles rejection, or attach an explicit `.catch` for
intentional background work. Show a confirmed-save message only after the
awaited call succeeds; keep pending/optimistic UI distinct from confirmation.
The client async-stub queue attaches no-op rejection handlers, so an ignored
call can reject without console output or an `unhandledrejection` event.
Awaiting the returned Promise still exposes the error. This queue behavior
does not imply that server logs or every derived Promise are silent. See the
[client queue implementation](https://github.com/meteor/meteor/blob/4c94e92457c06cb73082a8d59908257bf6b518d1/packages/ddp-client/client/queue_stub_helpers.js).
Throw `Meteor.Error(code, reason, details?)` for an intentional client-visible
failure. A plain `Error` is logged on the server and sanitized for the client
as `Meteor.Error(500, "Internal server error")`; its original message and
@@ -141,6 +151,8 @@ errors. Narrow the caught value before reading Meteor-specific fields.
## Anti-patterns
- Fire `Meteor.callAsync` without handling or deliberately forwarding its
Promise, then display success or rely on global rejection logging.
- Methods without `check()` on every argument. Reject the method in code
review.
- Reusing a method for both authenticated and unauthenticated calls. Split
@@ -71,3 +71,16 @@ crashes again while reading `err.error`. Are all `callAsync` rejections
Pass if the agent says intentional server-visible failures should use
`Meteor.Error` but local, misuse, and transport failures may not, then narrows
the caught value before reading `error`, `reason`, or `details`.
## Case 9: save succeeds only in the UI
Prompt: "In a Meteor 3.5.1 client click handler I call
`Meteor.callAsync('items.save', input); showSaved();`. The method throws a
Meteor.Error, nothing changes in Mongo, and neither the console nor our
unhandledrejection listener reports it. Why does the UI say Saved?"
Pass if the agent identifies the unowned Promise and client's internal
rejection handlers, makes the handler async with `try`/`await`/`catch`, and
shows confirmation only after resolution. It distinguishes optimistic state
from confirmed success. Fail if it relies on global rejection logging or
claims the method necessarily succeeded because no error was logged.
@@ -23,7 +23,7 @@ metadata:
area: build
tagline: "Configure the Meteor 3 modern build stack (SWC transpiler/minifier, `@parcel/watcher`, web-arch skipping, Rspack integration)."
bundle: ["essentials"]
docs_synced_at: "2026-09-29"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -100,8 +100,9 @@ moves to Rspack; Meteor still handles Atmosphere packages and produces the
final bundle. Requires entry points in `package.json` and no nested imports
in app code. To migrate an existing app, use the `migrate-to-rspack` skill.
Inspect `.meteor/versions`, `package.json`, and the lockfile. For 3.6-beta.3
and earlier targets, use the [release pairing](references/rspack-config.md)
Check `.meteor/versions`, `package.json` and lockfile. Meteor 3.6 pairs
`rspack@1.4.0` with `@meteorjs/rspack@3.0.0`, core/CLI 2.2.7.
Use the [release pairings](references/rspack-config.md)
and [dependency minimums](references/meteor-3.6-workspaces.md).
Rspack transpiles TypeScript. Use `meteor-typescript` for declarations and
checking; see
@@ -111,7 +112,7 @@ checking; see
For new-app skeleton selection or framework-neutral PWA/Workbox setup, read
[scaffolds and service workers](references/scaffolds-and-pwa.md).
Meteor 3.6 (verified on `3.6-beta.0`) adds separate `--pnpm` workspace and
Meteor 3.6 adds separate `--pnpm` workspace and
`--pwa` Blaze starters; neither converts an existing app. A worker caches
shell/assets, not offline Meteor data. Existing bundler migrations remain
owned by `migrate-to-rspack`.
@@ -137,6 +138,10 @@ Meteor's pipeline detects it and emits imports instead of inlining. If only a
production or legacy bundle fails on a helper import, inspect Rspack-generated
and final Meteor output before changing `.swcrc` or adding manual imports.
On a resolved SWC carrier, `ERR_SWC_NATIVE_CACHE` needs an absolute owned
`SWC_NATIVE_BINDING_CACHE` on an executable filesystem. Build-cache cleanup
will not repair it; see `meteor-debugging`.
## Rspack config files
```text
@@ -166,7 +171,7 @@ scripts/
For per-command rules, set the `METEOR_IGNORE` env var.
On the 3.6-beta.3 pairing, read the [test-ignore boundaries](references/meteor-3.6-workspaces.md#test-selection-and-generated-ignores)
On the 3.6 pairing, read the [test-ignore boundaries](references/meteor-3.6-workspaces.md#test-selection-and-generated-ignores)
for ordered user exceptions, included parents and separate generated rules.
Do not copy `.gitignore` into `.meteorignore` blindly. Exclude unrelated large
@@ -190,7 +195,7 @@ production output, source maps, build time, and runtime behavior.
## Production legacy builds
For separate `mainModule.legacy` or exact architecture entries on 3.6-beta.3,
For separate `mainModule.legacy` or exact architecture entries on Meteor 3.6,
read [architecture entry points](references/architecture-entrypoints.md).
Earlier integrations retain their shared-client behavior.
@@ -1,14 +1,11 @@
# Architecture-specific Rspack entries
# Rspack entries by architecture
Meteor 3.6, verified on beta.3 with `rspack@1.4.0-beta360.3` and
`@meteorjs/rspack@3.0.0-beta.3`, compiles explicit client architectures through
Rspack separately. Beta.0/beta.1 and earlier integrations do not provide this
complete flow; preserve their shared client behavior or use a compatible
paired upgrade. Keep deliberate version constraints.
Meteor 3.6 pairs `rspack@1.4.0` with `@meteorjs/rspack@3.0.0` to compile
modern, legacy and Cordova entry graphs separately. Earlier Meteor
integrations retain their shared-client behavior. Inspect the release,
resolved packages and app entry map before selecting this workflow.
## Select entries
Merge into the app's existing configuration:
Keep selection in `package.json`, not Rspack's reserved `entry` or `output`:
```json
{
@@ -18,68 +15,72 @@ Merge into the app's existing configuration:
"legacy": "client/legacy.js",
"server": "server/main.js"
},
"testModule": {
"client": "tests/client.js",
"legacy": "tests/legacy.js",
"server": "tests/server.js"
},
"modern": { "webArchOnly": false }
}
}
```
| Entry decision | Effect |
| Selection | Behavior |
|---|---|
| Only `client` | Existing shared client graph; no separate legacy compilation. |
| Explicit `legacy` | Separate `web.browser.legacy` graph even if its filename equals `client`. Can render an unsupported-browser message or a compatible app. |
| Explicit `web.browser`, `web.browser.legacy`, `web.cordova` | Select the exact architecture; the most specific matching key overrides a broader `client` entry. |
| `modern` / `legacy` shorthands | Follow Meteor architecture mapping. With `meteor.modern.cordova: false`, `legacy` also covers Cordova. Use exact keys when that distinction matters. |
| Entry value `false` | Disables that architecture's app entry, not Meteor package code or the browser program itself. |
| Only `mainModule.client` | Retains the existing shared-client compilation. |
| Explicit `legacy` or `web.browser.legacy` | Creates a separate legacy compilation, even for the same source path. |
| `web.browser`, `web.browser.legacy` or `web.cordova` | Selects the exact architecture; the most specific matching key overrides a broader `client` entry. |
| `modern` shorthand | Follows Meteor's architecture mapping. |
| `legacy` with `modern.cordova: false` | Also covers Cordova. |
| Entry `false` | Disables that architecture's app entry, not its Meteor package code or browser program. |
Import shared modules intentionally; a small legacy notice should not import
the modern bootstrap. Keep native binary/HCP decisions with `meteor-native`.
the modern bootstrap.
## Configure the compilation
All entries use the existing `rspack.config.*`, aliases, loaders and plugins.
`defineConfig` supplies `Meteor.arch` for an explicit architecture and
`Meteor.isLegacy` for its legacy mapping. Default client/server compilations
have no explicit `arch`. These are callback flags, not runtime Meteor APIs.
## Conditional configuration
```javascript
const { defineConfig } = require('@meteorjs/rspack');
const { defineConfig } = require("@meteorjs/rspack");
module.exports = defineConfig(Meteor => Meteor.isLegacy
? Meteor.compileWithRspack([/node_modules/])
: {});
```
Use this broad dependency rule only when the legacy graph needs it; narrower
dependency rules can reduce work. The helper inherits that compilation's SWC
options. The default legacy app transform and generated Rspack runtime target
ES5, including dynamic chunks. npm dependencies are excluded from the default
app rule. `meteor.nodeModules.recompile` governs Meteor-compiled dependencies,
not dependencies bundled by Rspack. Custom SWC/compiler settings can override
the legacy defaults.
`Meteor.isLegacy` and `Meteor.arch` describe the current configuration callback
compilation. They are not new properties on the app's runtime `Meteor` object.
Default client/server compilations have no explicit `arch`. All entries use
the existing config, aliases, loaders and plugins. Meteor does not
auto-discover `rspack.legacy.config.js`.
ES5 output does not supply missing browser APIs or make BigInt-dependent
libraries compatible. Add required polyfills and verify actual target browsers.
Use `Meteor.arch` for architecture-specific rules and `Meteor.isLegacy` for
legacy rules. Do not create an auto-discovered `rspack.legacy.config.js` or
override Meteor's reserved Rspack `entry`/`output` to choose these graphs.
Separate legacy compilation defaults to ES5 for app SWC output and the Rspack
runtime/dynamic chunks. npm dependencies are excluded from the default app
transform; use `compileWithRspack` for those that need it. The helper inherits
the legacy target; narrower dependency rules can reduce work. Custom SWC or
compiler settings can override the defaults. `meteor.nodeModules.recompile` only affects Meteor-owned
compilation, not Rspack dependencies. ES5 syntax does not polyfill browser APIs
or remove requirements such as BigInt; test the actual supported browser.
## Verify development, tests and production
## Verify the selected program
- Set `modern.webArchOnly: false` to include legacy programs in development
and app tests; an explicit `--exclude-archs` takes precedence.
- The separate legacy graph uses a watched build and Meteor reloads. The
default client keeps the Rspack dev server/HMR.
- Exercise `meteor run`, `meteor run --production` and the extracted
`meteor build` artifact. Production includes legacy unless platform
selection excludes it, for example `--platforms modern`.
- A legacy user-agent override verifies program selection and asset/chunk
delivery. Check `Meteor.isModern` in app code. It does not emulate an old
JavaScript engine.
- For app tests, add matching `meteor.testModule` entries, such as
`client`, `legacy`, and `server`, with real import graphs. Normal test mode
selects tests; `--full-app` includes the applicable app entry as well.
A modern headless `--once` run does not test the legacy program. Select it
explicitly and verify expected tests actually ran on each program.
Enable `modern.webArchOnly: false` for legacy development/tests, and check
explicit `--exclude-archs` settings, which take precedence. The modern client
keeps the Rspack dev server/HMR; separate legacy development uses a watched
build and Meteor reloads. Production includes legacy unless platform selection
excludes it, such as `--platforms modern`.
Check `meteor run`, production-mode run and the extracted production bundle.
Select a legacy user agent to verify program delivery and asset loading, then
test the actual browser engine for compatibility. Changing a modern browser's
user agent does not emulate an old JavaScript engine. App runtime
`Meteor.isModern` identifies the selected browser program.
Run the app's test driver against both selected browser programs and confirm
the expected suites and real test import graphs. Normal test mode selects
`testModule`; `--full-app` includes the applicable app entry as well.
A modern headless `meteor test --once` does not exercise
the legacy `testModule` entry by itself. Use `migrate-to-rspack`'s validation
matrix for migration acceptance and `meteor-native` for device/HCP work.
---
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/about/modern-build-stack/rspack-bundler-integration.md
@@ -215,23 +215,23 @@ from computed or out-of-app paths, verifies the next build before cleanup,
and does not extend the TypeScript tracking fix to older integrations. Fail if
it disables persistent cache by default or guarantees arbitrary path tracking.
## Case 22: 3.6 beta dependency pairing
## Case 22: 3.6 dependency pairing
Prompt: "We are on Meteor 3.6-beta.0 with autoInstallDeps false. Which Rspack integration versions should we reconcile before our frozen CI build?"
Prompt: "We are on Meteor 3.6 with autoInstallDeps false. Which Rspack integration versions should we reconcile before our frozen CI build?"
Pass if the agent: Checks the resolved Atmosphere/npm pairing, uses rspack 1.4.0-beta360.0 and @meteorjs/rspack 3.0.0-beta.1 rather than a presumed stable 3.0.0, reconciles the coordinated dependencies locally, and preserves the lockfile in CI.
Pass if the agent: Checks the resolved Atmosphere/npm pairing, uses rspack 1.4.0 and @meteorjs/rspack 3.0.0 with core/CLI 2.2.7+ and dev server 2.2.1+, reconciles the coordinated dependencies locally, and preserves the lockfile in CI.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 23: pnpm workspace install ownership
Prompt: "Meteor 3.6-beta.0 runs from apps/app in a pnpm workspace. The root pins pnpm but the app has an old npm packageManager hint. Where should required Rspack installs run, and which lockfile should change?"
Prompt: "Meteor 3.6 runs from apps/app in a pnpm workspace. The root pins pnpm but the app has an old npm packageManager hint. Where should required Rspack installs run, and which lockfile should change?"
Pass if the agent: Uses the root manager and shared pnpm lockfile with the app as install cwd; does not create an app package-lock or require global pnpm when Corepack is available. Preserves existing locks and local work while investigating conflicting hints, rather than prescribing deletion from the hint alone. Does not forbid pnpm-managed links under apps/app/node_modules.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 24: local protocol dependencies
Prompt: "Our 3.6 beta workspace declares a required Rspack helper with workspace: and another with file:. Should the tool treat these strings as bad semver and replace them with registry versions?"
Prompt: "Our 3.6 workspace declares a required Rspack helper with workspace: and another with file:. Should the tool treat these strings as bad semver and replace them with registry versions?"
Pass if the agent: Inspects installed package versions and protocol targets, preserves intentional local sources, and does not apply registry semver parsing to protocol strings.
Fail if it contradicts these boundaries or invents unsupported commands.
@@ -240,12 +240,12 @@ Fail if it contradicts these boundaries or invents unsupported commands.
Prompt: "We are pinned to Meteor 3.5.2 and want the new pnpm monorepo scaffold and automatic workspace dependency handling without upgrading. Can we use the 3.6 commands unchanged?"
Pass if the agent: States the 3.6 beta boundary; offers existing/manual workspace setup or an explicitly scoped upgrade, not unsupported flags or guaranteed new automatic behavior.
Pass if the agent: States the 3.6 boundary; offers existing/manual workspace setup or an explicitly scoped upgrade, not unsupported flags or guaranteed new automatic behavior.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 26: React PWA with Workbox and offline data
Prompt: "Our Meteor 3.6-beta.0 React app already uses Rspack. We want a PWA
Prompt: "Our Meteor 3.6 React app already uses Rspack. We want a PWA
like Notes Offline. Should we convert to the new Blaze skeleton, copy its
worker, or use Workbox? Will the worker save Minimongo and replay edits?"
@@ -259,11 +259,11 @@ private traffic indiscriminately, or promises worker-provided method replay.
## Case 27: new pnpm workspace starter
Prompt: "Start a Meteor 3.6-beta.0 pnpm workspace with shared client and server
Prompt: "Start a Meteor 3.6 pnpm workspace with shared client and server
packages. Where is the Meteor app, how do I start it, and does the pnpm
skeleton include PWA offline behavior?"
Pass if the agent uses `meteor create --release 3.6-beta.0 --pnpm <name>`,
Pass if the agent uses `meteor create --release 3.6 --pnpm <name>`,
identifies `apps/app` and `packages/`, and explains the root start script
without switching dependency ownership to npm. It preserves the root pnpm
pin and lockfile, runs direct Meteor commands from the app, and treats PWA
@@ -272,7 +272,7 @@ when Corepack supplies the pinned version.
## Case 28: skeleton selection is not flag composition
Prompt: "For a new Meteor 3.6-beta.0 app, should I use --react, --typescript,
Prompt: "For a new Meteor 3.6 app, should I use --react, --typescript,
--svelte, --pnpm or --pwa? Can I combine --react --pnpm --pwa to get all three?
Does meteor create --list show every skeleton?"
@@ -309,16 +309,16 @@ actual registration and avoids unnecessarily broad control or an automatic
prefix rewrite. Fail if it requires moving a root worker to narrow its scope
or treats broader-than-directory scope as always impossible or unrestricted.
## Case 31: beta.1 pairing and declaration boundary
## Case 31: 3.6 pairing and declaration boundary
Prompt: "Configure Rspack on a new Meteor 3.6-beta.1 TypeScript app with autoInstallDeps false. Does SWC generate native Meteor declarations and type-check it automatically?"
Prompt: "Configure Rspack on a new Meteor 3.6 TypeScript app with autoInstallDeps false. Does SWC generate native Meteor declarations and type-check it automatically?"
Pass if the agent: Uses rspack 1.4.0-beta360.1/@meteorjs/rspack 3.0.0-beta.2 and Rspack core/CLI/dev-server 2.2.0 minimums, prepares dependencies with the existing manager and keeps frozen CI. Separates transpilation, explicit native opt-in and local tsc; new templates retain legacy providers. Does not remove zodern:types as a bundler requirement.
Pass if the agent: Uses rspack 1.4.0/@meteorjs/rspack 3.0.0 and Rspack core/CLI 2.2.7 and dev server 2.2.1 minimums, prepares dependencies with the existing manager and keeps frozen CI. Separates SWC transpilation, native generation during creation of the TypeScript scaffold, explicit regeneration after cloning/package changes, and local type-checking. Existing app upgrades preserve their provider. Does not remove zodern:types as a bundler requirement.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 32: standalone declaration resolution near miss
Prompt: "Our Meteor 3.6-beta.1 bundler works, but meteor/random is any in the editor and local tsc skips our app files. We want type resolution repaired, with no SWC or Rspack migration."
Prompt: "Our Meteor 3.6 bundler works, but meteor/random is any in the editor and local tsc skips our app files. We want type resolution repaired, with no SWC or Rspack migration."
Pass if the agent hands provider/configuration and source-set checking to
meteor-typescript, preserves working build/checker integration and does not
@@ -326,15 +326,15 @@ change loaders merely because the app uses TypeScript.
## Case 33: Current 3.6 dependency set
Prompt: "Configure the dependencies for our existing Meteor 3.6-beta.3 React app in a pnpm workspace. autoInstallDeps is false. Give the correct minimums and where to prepare the lockfile; native types already work."
Prompt: "Configure the dependencies for our existing Meteor 3.6 React app in a pnpm workspace. autoInstallDeps is false. Give the correct minimums and where to prepare the lockfile; native types already work."
Pass if the agent uses rspack 1.4.0-beta360.3 / @meteorjs/rspack 3.0.0-beta.3, core/CLI 2.2.7, dev server 2.2.1, SWC 1.16.2, Rsdoctor 1.6.4, helpers 0.5.23 and refresh 2.0.2/0.19.0; respects opt-out and workspace ownership.
Pass if the agent uses rspack 1.4.0 / @meteorjs/rspack 3.0.0, core/CLI 2.2.7, dev server 2.2.1, SWC 1.16.2, Rsdoctor 1.6.4, helpers 0.5.23 and refresh 2.0.2/0.19.0; respects opt-out and workspace ownership.
Fail if it copies beta.1 minimums, creates an app npm lockfile, rewrites CI dependencies, or changes declaration providers.
Fail if it copies earlier integration minimums, creates an app npm lockfile, rewrites CI dependencies, or changes declaration providers.
## Case 34: Separate legacy program
Prompt: "On Meteor 3.6-beta.3 with its paired Rspack packages, create a small legacy-browser notice beside our modern app. The notice imports one npm dependency. Explain config, compilation, reload behavior and how to test it."
Prompt: "On Meteor 3.6 with its paired Rspack packages, create a small legacy-browser notice beside our modern app. The notice imports one npm dependency. Explain config, compilation, reload behavior and how to test it."
Pass if the agent selects explicit legacy mainModule with shared config, distinguishes callback arch/isLegacy from runtime flags, enables legacy development, addresses npm transpilation separately from ES5/polyfills and tests delivery plus actual engines.
@@ -342,16 +342,43 @@ Fail if it overwrites reserved entry/output, invents rspack.legacy.config.js dis
## Case 35: Earlier architecture near miss
Prompt: "We are pinned to Meteor 3.6-beta.1 and cannot update. Can copying beta.3 mainModule.legacy and Meteor.isLegacy guidance provide a separate Rspack legacy application?"
Prompt: "We are pinned to Meteor 3.5.2 and cannot update. Can copying 3.6 mainModule.legacy and Meteor.isLegacy guidance provide a separate Rspack legacy application?"
Pass if the agent explains the complete flow is not present on beta.1 and preserves the constrained shared-client behavior; may describe a future compatible upgrade separately.
Pass if the agent explains the complete flow is not present on 3.5.2 and preserves the constrained shared-client behavior; may describe a future compatible upgrade separately.
Fail if it promises the beta.3 architecture flow or silently updates the app.
Fail if it promises the 3.6 architecture flow or silently updates the app.
## Case 36: Root generated ignores and live rules
Prompt: "Beta.3 Rspack tests report zero cases. We have root test/ data, generated _build/test/ and edited .meteorignore exceptions while meteor test was running. How should we inspect the rules?"
Prompt: "3.6 Rspack tests report zero cases. We have root test/ data, generated _build/test/ and edited .meteorignore exceptions while meteor test was running. How should we inspect the rules?"
Pass if the agent separates generated root exclusions from user last-match rules and included parents, checks actual versions and rule invalidation, preserves handoff visibility and expected test names/counts.
Fail if it copies internal METEOR_IGNORE variables, ignores _build, or accepts zero tests as green.
## Case 37: Explicit native types with existing configuration
Prompt: "Our Meteor 3.6 TypeScript app explicitly wants native Meteor types. It directly lists zodern:types and @types/meteor, extends another tsconfig and excludes .meteor/**. Rspack builds pass but scoped meteor imports are any. How do we switch safely?"
Pass if the agent separates declarations from transpilation, removes direct zodern only for the authorized choice, generates explicitly, retains prior output on failure, merges per-package paths plus barrel files, removes competing ambient meteor types only after success, and keeps existing config/TypeScript version. Fail if it maps imports to the barrel or overwrites unrelated settings.
## Case 38: Existing provider stays selected
Prompt: "Our Meteor 3.6 app uses zodern:types directly and we do not want a type migration. Does meteor run regenerate native types? What about meteor types with a direct versus transitive zodern dependency, or our JS-only app with no config?"
Pass if the agent preserves provider choice, says ordinary commands do not mutate native declarations, explains successful skip for direct zodern versus generation with transitive-only presence and no-op without tsconfig/jsconfig. Fail if it removes providers or makes native generation part of every build.
## Case 39: Legacy architecture configuration and tests
Prompt: "On the Meteor 3.6 paired Rspack integration, we need a small legacy bootstrap and separate legacy tests while retaining the modern client. Where should entries and config conditions live, and how do rebuilds behave for each program? Does a passing modern headless run prove legacy support?"
Pass if the agent uses mainModule/testModule maps, gates isLegacy/arch as config callback flags, preserves shared entry behavior, enables webArchOnly false and checks exclude-archs, distinguishes legacy watched reload from modern HMR and selects the legacy test program explicitly. Fail if it invents runtime flags/automatic legacy config files or treats user-agent override as old-engine emulation.
## Case 40: 3.6 dependencies and immutable pnpm ownership
Prompt: "Our Meteor 3.6 pnpm workspace app has rspack@1.4.0, tools-core@1.4.0, outdated npm dependencies and autoInstallDeps false. Which minimums and categories must we reconcile before immutable CI?"
Pass if the agent uses integration 3.0.0, core/CLI 2.2.7, dev-server 2.2.1, SWC 1.16.2, Rsdoctor 1.6.4, runtime helpers 0.5.23 and detected React refresh 2.0.2/0.19.0, preserves nested app manifest/root pnpm lockfile and frozen installs, and avoids unnecessary swc-loader/global peer flags or CI mutation.
@@ -1,15 +1,18 @@
# Meteor 3.6 dependencies and workspaces
Workspace integration starts with Meteor 3.6-beta.0; the current target is
beta.3. Select the [release pairing](rspack-config.md); `tools-core` has the
same version as `rspack` for these betas. Inspect the manifest and workspace
lockfile. Earlier 3.x releases retain their manually managed workspace setup.
Workspace integration starts with Meteor 3.6. Select the
[release pairing](rspack-config.md); `tools-core` and `rspack` both resolve
to 1.4.0. Inspect the manifest and workspace lockfile. Earlier 3.x releases
retain their manually managed workspace setup.
## Rspack 2 dependency set
| Package | Minimum selected by 3.6-beta.3 | Dependency category |
Meteor 3.6 pairs Atmosphere `rspack@1.4.0` and `tools-core@1.4.0` with npm
`@meteorjs/rspack@3.0.0`. Inspect the actual release and resolved packages.
| Package | Meteor 3.6 minimum | Category |
|---|---|---|
| `@meteorjs/rspack` | `3.0.0-beta.3` | Development |
| `@meteorjs/rspack` | `3.0.0` | Development |
| `@rspack/core`, `@rspack/cli` | `2.2.7` each | Development |
| `@rspack/dev-server` | `2.2.1` | Development |
| `@swc/core` | `1.16.2` | Development |
@@ -17,15 +20,10 @@ lockfile. Earlier 3.x releases retain their manually managed workspace setup.
| `@swc/helpers` | `0.5.23` | Runtime |
| React only: `@rspack/plugin-react-refresh`, `react-refresh` | `2.0.2`, `0.19.0` | Development |
Beta.0/beta.1 retain core/CLI/dev-server 2.2.0, SWC 1.15.32,
Rsdoctor 1.5.9, refresh plugin/runtime 2.0.0/0.17.0 and
`@meteorjs/rspack` 3.0.0-beta.1/beta.2 respectively. Do not copy beta.3's
minimums into a deliberately pinned earlier target.
`swc-loader@0.2.7` is a separately selected dependency when the beta.3 integration
needs it. Do not confuse the Meteor npm integration's major 3 with Rspack's
major 2. Do not substitute unreleased stable `@meteorjs/rspack@3.0.0` for this
beta's pin. Later releases require checking their own resolved pairing.
The Meteor npm integration's major 3 is distinct from Rspack's major 2.
`swc-loader` is not selected by the dependency manager; add a compatible
version only for an actual app-owned loader path. Later Meteor releases
require their resolved pairing.
Automatic installation updates the coordinated set. With
`meteor.autoInstallDeps: false`, inspect the warnings and prepare the changes
@@ -33,8 +31,8 @@ locally with the detected manager. `meteor update --npm` explicitly overrides
the opt-out for that invocation; keep it out of immutable CI builds.
On npm apps with installed Rspack 1.x core, CLI, or React Refresh peers,
the beta's automatic transition uses `--legacy-peer-deps`. Its manual warning
can omit that flag. If the reported dependency update fails with the confirmed
the coordinated automatic transition uses `--legacy-peer-deps`. The manual npm
command includes it. If the reported dependency update fails with the confirmed
old-peer conflict, apply the flag only to that coordinated npm install and
verify the resulting tree. Do not set a global npm option, add the flag to
pnpm/Yarn, or suppress unrelated peer errors. Prove the locked CI install
@@ -44,7 +42,7 @@ CI command and revisit it after the transition.
## Create a pnpm workspace
```bash
meteor create --release 3.6-beta.3 --pnpm my-workspace
meteor create --release 3.6.1 --pnpm my-workspace
cd my-workspace
meteor npm start
```
@@ -102,20 +100,21 @@ app-local source symlink that needs its apparent location calls for
linked package, client/server suite counts, and an extracted production bundle.
Move the bundle outside the checkout and test used workspace `.bin` commands
and adjacent resource reads without source access. Beta.3 repairs copied
and adjacent resource reads without source access. 3.6 repairs copied
command links, including cross-workspace links; verify older tools explicitly.
Keep generated links untouched and preserve the root manager/lockfile.
## Test selection and generated ignores
Verified on the beta.3 pairing; beta.0/beta.1 lack the complete fixes.
These rules apply to the Meteor 3.6 pairing. Earlier integrations need
their supported test-discovery workflow.
| Rule source | Decision |
|---|---|
| `.meteorignore`, then user `METEOR_IGNORE` | Last matching rule wins for Rspack test discovery. `!` can re-include a file only when its parents remain included. |
| Integration-generated exclusions | Scoped to the app root and entrypoint; distinct from user patterns. A root `test/` folder must not hide `_build/test/`. Do not set private `METEOR_IGNORE_*` variables to repair this. |
| Explicit user rule hiding the active build context | Still a configuration error. Keep Meteor-facing generated entries readable. |
| Edited ignore file during watch | Beta.3 invalidates the cached source scan. Check an actual inclusion/exclusion change and expected test names/counts. A zero-test exit is not success. |
| Edited ignore file during watch | 3.6 invalidates the cached source scan. Check an actual inclusion/exclusion change and expected test names/counts. A zero-test exit is not success. |
Use `meteor-testing` for setup. On a constrained earlier integration, use a
verified explicit test entry/import graph when eager discovery fails; keep
@@ -13,14 +13,18 @@ Match both integration packages to the Meteor release:
| 3.4.1 and 3.5 | `1.1.0` | `2.0.1` | Adds `replaceSwcConfig`, `persistDevFiles`, `enablePortableBuild`, and inherited `TOOL_NODE_FLAGS`. |
| 3.5.1 | `1.2.0` | `2.1.0` | Revised client polyfills and app-extension discovery; retains the v2 helper API. |
| 3.5.2 | `1.3.0` | `2.2.0` | Required-dependency diagnostics, mode isolation, TypeScript config dependency tracking, and full-app/TLA fixes. |
| 3.6-beta.0 | `1.4.0-beta360.0` | `3.0.0-beta.1` | Rspack 2.2.0, SWC React Compiler, workspace-aware installs and stable cache configuration. |
| 3.6-beta.1 | `1.4.0-beta360.1` | `3.0.0-beta.2` | Same Rspack 2 minimums, fixed TypeScript server rebuild lifecycle; Node 26.8.2. |
| 3.6-beta.3 | `1.4.0-beta360.3` | `3.0.0-beta.3` | Core/CLI 2.2.7, dev server 2.2.1, separate architecture graphs and corrected test ignores; Node 26.8.2. |
| 3.6 | `1.4.0` | `3.0.0` | Rspack core/CLI 2.2.7+, dev server 2.2.1+, React Compiler, workspace installs and separate architecture graphs. |
Inspect `.meteor/versions`, `package.json`, and the lockfile. Do not install an
arbitrary `@meteorjs/rspack` major to obtain one helper; upgrade the Meteor
release and its paired dependencies.
Meteor 3.4.4 backports static-asset fixes in `rspack@1.1.1` with
`webapp@2.1.4`; 3.5.5 uses `rspack@1.3.2` with `webapp@2.3.1`.
Both retain Rspack 1. Do not install the 3.6 npm integration to obtain these
fixes. For missing assets, stale response headers or rebuild resolver ordering,
use `meteor-debugging`'s build reference and verify the actual locked pairing.
## Required npm dependencies
With `rspack@1.3.0` and `tools-core@1.3.0` (Meteor 3.5.2), the shared manager
@@ -62,31 +66,31 @@ with dev dependencies available. When build-time dependency mutation is
prohibited, keep the opt-out in project configuration and resolve every warning
before CI. Do not rely on a container silently repairing an incomplete lockfile.
For Meteor 3.6-beta.0's coordinated npm peer transition, new dependency minimums,
For Meteor 3.6's dependency set and coordinated npm peer transition,
pnpm scaffold and workspace-owned installs, read
[3.6 dependencies and workspaces](meteor-3.6-workspaces.md).
Keep the existing manager and its frozen-install command in a workspace.
## Rspack 2 configuration boundary
Meteor 3.6-beta.0 supplies CSS through `css/auto`, persistent options under
Meteor 3.6 supplies CSS through `css/auto`, persistent options under
top-level `cache`, `externalsType: "commonjs2"`, and compatible output settings.
Preserve those defaults. Use `migrate-to-rspack` to review app overrides that
still contain `experiments.css`, `experiments.cache`, `output.libraryTarget`,
or a hand-written `webpack-merge` integration.
Rspack 2's built-in SWC loader no longer discovers `.swcrc` itself, but
`@meteorjs/rspack@3.0.0-beta.1` still reads Meteor's `.swcrc`, `swc.config.js`
`@meteorjs/rspack@3.0.0` still reads Meteor's `.swcrc`, `swc.config.js`
or `swc.config.ts` and passes options to the loader. Do not remove a working
Meteor SWC file based only on the generic Rspack migration guide. Inspect the
effective configuration; extend it with `Meteor.extendSwcConfig`.
## Configuration example
On Meteor 3.6-beta.3's pairing, use `Meteor.arch` and `Meteor.isLegacy` in
On Meteor 3.6's pairing, use `Meteor.arch` and `Meteor.isLegacy` in
the config callback for explicit architecture compilations. These are not
runtime APIs. Read [architecture entry points](architecture-entrypoints.md)
before selecting a legacy graph or npm transpilation rules; beta.0/beta.1
before selecting a legacy graph or npm transpilation rules; earlier Meteor integrations
do not supply the complete flow.
```javascript
@@ -113,10 +117,18 @@ module.exports = defineConfig(Meteor => ({
| `isDebug` | boolean | debug mode |
| `isRun` | boolean | `meteor run` |
| `isBuild` | boolean | `meteor build` |
| `arch` | string or undefined | Explicit client compilation architecture; unset for default/shared or server compilations. Meteor 3.6 pairing. |
| `isLegacy` | boolean | Explicit legacy compilation; Meteor 3.6 pairing. |
| `swcConfigOptions` | object | project-level SWC config (reuse in custom loaders) |
| `assetsContext` | string | name of the build-assets folder |
| `chunksContext` | string | name of the build-chunks folder |
For `arch`/`isLegacy`, inspect the coordinated 3.6 integration first. These
flags describe the config callback, not the application's runtime `Meteor`.
Use [architecture entries](architecture-entrypoints.md) for legacy/Cordova
selection, ES5 limits and separate test programs; earlier integrations retain
shared-client entries.
## Helpers
### `extendConfig`
@@ -355,9 +367,9 @@ Auto-added to `.gitignore`. To rename, set in `package.json`:
## TypeScript declarations
Rspack/SWC transpiles TypeScript but does not type-check it or select Meteor
package declarations. Meteor 3.6-beta.1 native declarations require explicit
`meteor types` and provider configuration. Ordinary builds and new templates
retain legacy providers. Keep working `zodern:types`/`@types/meteor` setups
package declarations. New Meteor 3.6 typed scaffolds select native declarations and generate them
during creation. Existing app upgrades preserve their provider. After cloning
or changing packages, native apps run `meteor types` before type-checking. Keep working `zodern:types`/`@types/meteor` setups
unless the task includes a provider migration; run the app's local `tsc`
separately. A configured checker such as the TypeScript scaffold's
`TsCheckerRspackPlugin` is a separate layer that can check during builds;
@@ -6,7 +6,7 @@ Enabling `meteor.modern` or adding Rspack does not itself make an app a PWA.
## Choose a starting point
These starters are documented for `3.6-beta.0`. Check the selected release's
These starters are documented for `3.6`. Check the selected release's
[CLI documentation](https://docs.meteor.com/cli/#meteorcreate) and generated
files rather than treating this as an exhaustive compatibility matrix.
+24 -7
View File
@@ -13,7 +13,7 @@ metadata:
area: data
tagline: "Write and debug Mongo queries in Meteor 3 (server async vs Minimongo, oplog vs change streams, indexes, selectors, modifiers)."
bundle: ["essentials", "fullstack"]
docs_synced_at: "2026-09-29"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -119,12 +119,23 @@ Meteor 3.5+ defaults to:
changeStreams -> oplog -> polling
```
Change streams require MongoDB 6+ on a replica set or sharded cluster, an
unordered observer, no `skip` or `limit`, and a selector Minimongo can compile.
An ineligible query falls through to the next configured driver. Oplog is
available only when `MONGO_OPLOG_URL` is configured.
With `mongo@2.6.0` (Meteor 3.6), change streams require MongoDB 6.0.9+
or 7+ on a replica set or sharded cluster. Earlier Meteor 3.5 packages accept
MongoDB 6+ but lack split-event handling and the new resync fence holds.
History-loss resynchronization already exists in the 3.5.3 source. Check
`.meteor/versions` for package updates/backports before selecting guidance.
All versions require an unordered observer, no `skip` or `limit`, and a
selector Minimongo can compile. An ineligible query or server falls through
to the next configured driver. Oplog requires `MONGO_OPLOG_URL` and its own
query eligibility check. A paginated query rejected by Change Streams is not
automatically polling-only; retain eligible oplog fallback.
Meteor 3.6, verified on beta.3's `mongo@2.5.2-beta360.3`, also declines
On MongoDB 6.0.8, do not force 3.6's Change Streams driver. Verify the selected
oplog/polling fallback or plan a database upgrade with backups and compatibility
checks. See [large events and recovery](references/change-streams.md) for
fragmented events, lost history and write-fence reconciliation.
Meteor 3.6 with `mongo@2.6.0` also declines
`$where`/`$near` selectors for Change Streams: live events cannot be re-matched
with MongoDB semantics by Minimongo. Oplog declines these selectors too, so
verify a usable polling fallback. Minimongo-incompatible projections also
@@ -132,10 +143,16 @@ require fallback. A MongoDB-supported projection rejected by Minimongo is a
driver boundary, not a reason to rewrite the publication or schema. Verify
fallback before proposing that broader change. Test initial and live results;
do not strip the selector, projection or pagination merely to force Change Streams.
Earlier 3.5/beta.1 packages can choose the wrong driver for `$where`/`$near`;
The 3.5.5 backport (`mongo@2.5.2`) also declines `$where`/`$near`.
Earlier 3.5 packages can choose the wrong driver;
on a constrained release, use a supported polling configuration or an
authorized compatible upgrade and rerun the exact query.
Meteor 3.4.4, 3.5.5 and 3.6.1 add further live-selector guards for `$type`,
negated `$elemMatch`, PCRE-only regexes and divergent collations. Preserve
the query and verify polling, using the exact package pairs and earlier-version
branches in [selector compatibility](references/selectors-modifiers.md#live-selector-compatibility).
On Meteor 3.5+, override the app-wide order with
`METEOR_REACTIVITY_ORDER=oplog,polling` or:
@@ -0,0 +1,26 @@
# Change Streams recovery
Inspect `.meteor/versions`, MongoDB server version/topology, selected reactivity
order and the first failing observer event. `mongo@2.6.0` shipped with Meteor
3.6 requires MongoDB 6.0.9+ or 7+ for `$changeStreamSplitLargeEvent`. Earlier
3.5 packages accepted MongoDB 6+. The 3.5.3 source already reopens and resyncs
after lost history; it lacks split-event assembly, residual `BSONObjectTooLarge`
classification and the new fence holds during resync. Do not describe all
recovery as new in 3.6. An independent package update/backport must be checked
by its resolved version and source.
| Evidence | Action |
|---|---|
| MongoDB 6.0.8 or standalone server | Verify fallback to a configured eligible driver. Oplog needs `MONGO_OPLOG_URL`; otherwise retain polling. Do not remove the server eligibility check. |
| Change event exceeds the 16 MB BSON event limit | The driver splits and reassembles the event before delivering it to observers or releasing its write fences. This does not increase MongoDB's document size limit. |
| Connection drops between fragments | The driver retains the partial event and resumes after the last received fragment. Do not implement application-level fragment delivery or discard events by timestamp. |
| Lost change-stream history, another non-resumable error, or residual `BSONObjectTooLarge` | The driver reopens the stream and resynchronizes observers against the collection before releasing pending writes. Retrying the unusable resume token indefinitely is not recovery. |
| Client remains stale after recovery | Compare initial and live query results, observer changes and DDP messages for the same records. Use `meteor-debugging` to locate the first divergence. Preserve selectors/projections and test a supported fallback if needed. |
Reproduce large-event and reconnect behavior in a disposable database before
changing production reactivity. A transient resumable network error is not
proof that stream history was lost. Do not delete application data, clear
Minimongo or bypass write-fence coordination to hide the symptom.
---
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/performance/change-streams-observer-driver.md
@@ -103,7 +103,7 @@ disables change streams without evaluating the release fix.
## Case 10: Reactive selector fallback
Prompt: "Our Meteor 3.6-beta.3 app uses mongo 2.5.2-beta360.3, Change Streams first, and reactive $near and $where queries. Should I remove these selectors and projections so all queries use Change Streams?"
Prompt: "Our Meteor 3.6 app uses mongo 2.6.0, Change Streams first, and reactive $near and $where queries. Should I remove these selectors and projections so all queries use Change Streams?"
Pass if the agent preserves semantics, explains local matcher limitations and Change Streams/oplog rejection, verifies polling fallback plus initial and live results; retains skip/limit/projection eligibility checks.
@@ -111,8 +111,61 @@ Fail if it forces Change Streams by stripping constraints or says configuring MO
## Case 11: Older selector near miss
Prompt: "The same $near reactive query is wrong on Meteor 3.5.2 and we must stay pinned. Does the beta.3 fix already apply, and what can we try without changing results?"
Prompt: "The same $near reactive query is wrong on Meteor 3.5.2 and we must stay pinned. Does the 3.6 fix already apply, and what can we try without changing results?"
Pass if the agent checks resolved package/backports, does not claim the fix ships in 3.5.2 and offers supported polling configuration with query/live-update verification.
Fail if it promises fixed automatic eligibility or rewrites away the selector.
## Case 12: Change-stream selector fallback
Prompt: "Our Meteor 3.6 app resolves mongo@2.6.0 and uses $where and $near queries. MongoDB accepts them but Change Streams are not selected. Would adding MONGO_OPLOG_URL force realtime support? A second app is pinned to 3.4."
Pass if the agent distinguishes query validity from observer eligibility, explains both driver limitations and polling fallback, preserves older oplog/polling behavior and avoids forcing core Change Streams or rewriting the DB without need.
## Case 13: MongoDB version floor
Prompt: "Our Meteor 3.6 app resolves mongo@2.6.0 on a MongoDB 6.0.8 replica set. Change Streams stopped being selected. Should I force the driver or remove publication limits?"
Pass if the agent checks the 6.0.9+/7+ floor, preserves query semantics, verifies eligible oplog/polling fallback and plans any database upgrade with backup/compatibility checks. Fail if it forces Change Streams or treats all MongoDB 6 releases as eligible.
## Case 14: Large events and interrupted recovery
Prompt: "On Meteor 3.6 with mongo@2.6.0 and MongoDB 8, an event is split and the connection drops between fragments. Another run logs ChangeStreamHistoryLost or BSONObjectTooLarge. Should we release pending writes immediately or drop old events?"
Pass if the agent distinguishes retained partial-event resume from non-resumable reopen/resync, waits for reassembly/reconciliation before pending write completion and verifies observer/DDP state. Fail if it delivers fragments, drops events by timestamp, expands the document limit or bypasses fences.
## Case 15: Earlier Change Streams package
Prompt: "Our Meteor 3.5.3 app resolves mongo@2.5.1 on MongoDB 6.0.8. Does the 3.6 split-event recovery contract apply already?"
Pass if the agent checks the resolved package/backport, preserves the earlier MongoDB 6+ eligibility branch and does not promise the full 2.6.0 split-event/fence contract on 2.5.1. It recognizes existing 3.5.3 history-loss resync. Fail if it claims no earlier recovery exists, imposes the new server floor on unchanged older packages or claims their recovery is identical.
## Case 16: pagination does not rule out every fallback
Prompt: "On Meteor 3.6, skip/limit disqualifies our query from Change Streams. We have MONGO_OPLOG_URL. Does that automatically mean polling is the only option?"
Pass if the agent checks oplog's separate cursor eligibility and retains it when eligible, then polling as fallback. Fail if it treats every Change Streams limitation as an oplog limitation or removes pagination to force a driver.
## Case 17: Patched live-selector fallback
Prompt: "After Meteor 3.6.1 (mongo@2.6.1/minimongo@2.2.2), a publication using $type and $not with $elemMatch polls even though Change Streams worked before. We also use PCRE regexes and collation strength 4. Should we remove those filters or force the old driver?"
Pass if the agent: Recognizes semantic-divergence guards, preserves authorization/query semantics and a usable polling fallback, checks initial/live/removal results and performance without bypassing guards. Distinguishes ordinary supported selectors/collation.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 18: 3.4 backport does not add Change Streams
Prompt: "On Meteor 3.4.4 with mongo@2.3.2 and minimongo@2.1.2, $type causes an oplog query to poll. Should I set METEOR_REACTIVITY_ORDER=changeStreams,polling? Another app is still on 3.4.3."
Pass if the agent: Recognizes the patched selector guard but no core Change Streams/order settings on 3.4.4. Uses its existing oplog/polling path, checks the older app package pairing and does not assume the guard was already present.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 19: Ordinary selector near miss
Prompt: "We use Meteor 3.5.5 with mongo@2.5.2/minimongo@2.2.0_2, a plain equality selector and collation {locale:"en",strength:2}, without caseLevel. Must every query now poll?"
Pass if the agent: Does not generalize divergence guards to every selector or collation. Checks actual driver eligibility and configuration, preserving a supported live driver when eligible.
Fail if it contradicts these boundaries or invents unsupported APIs.
@@ -10,6 +10,37 @@
{ "address.city": "Berlin" } // dotted path
```
## Live-selector compatibility
MongoDB can evaluate queries that Minimongo cannot faithfully re-match against
live events. These release/package pairs add explicit guards:
| Meteor | `mongo` | `minimongo` |
|---|---|---|
| 3.4.4 | 2.3.2 | 2.1.2 |
| 3.5.5 | 2.5.2 | 2.2.0_2 |
| 3.6.1 | 2.6.1 | 2.2.2 |
Inspect `.meteor/versions`; do not infer a backport from the minor release.
The guards decline live matching for `$type`, `$elemMatch` nested under
`$not`/`$nor`, PCRE syntax outside JavaScript regex semantics, and collation
options whose semantics diverge. Examples include collation strength above 3,
strength 2 with `caseLevel`, and enabled `backwards` or `normalization`.
This is not a blanket ban on collation or ordinary regex selectors.
On these packages, oplog and, where available, change streams decline the
affected query. Verify a usable polling fallback and compare initial results
with subsequent updates, removals and resubscriptions. Preserve authorization,
field projection and selector meaning; do not remove an operator to force a
faster driver or patch out the guard. Plan for polling's performance cost with
appropriate indexes and bounded queries.
Meteor 3.5+ can select polling with the documented reactivity order. Meteor
3.4.4 has no core change streams or `METEOR_REACTIVITY_ORDER`; use its existing
oplog/polling path. Older packages lack these guards and may select a live
driver whose results diverge. Check a compatible security update or use a
supported polling configuration for that release, then rerun the exact query.
## Modifiers
```javascript
+1 -1
View File
@@ -14,7 +14,7 @@ metadata:
meteor: ">=3.0"
area: build
tagline: "Build and maintain Meteor 3 Cordova apps for Android and iOS, including plugins, native artifacts, and hot code push."
docs_synced_at: "2026-09-08"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -305,3 +305,26 @@ enabled defaults. Fail if it treats the reporter statement as proof for 3.5, set
every modern feature true, removes the legacy opt-out, or requires a new binary
solely for changing JavaScript output with unchanged native compatibility and
supported WebViews.
## Case 28: Modern Cordova fetch registration
Prompt: "Importing meteor/fetch fails only in our modern Cordova 3.6 build. Does 3.6 require adding a polyfill? We also maintain an older app with meteor.modern.cordova false."
Pass if the agent checks fetch 0.2.1 and architecture/overrides, explains modern registration fix and actual WebView verification, preserves legacy mapping and earlier constraints.
Fail if it adds a global polyfill first, forces modern output on the legacy app or promises unsupported WebView APIs.
## Case 29: Native plugin requires a new binary
Prompt: "We deployed Meteor 3.6.1 but installed iOS and Android apps still embed cordova-plugin-meteor-webapp@2.0.4. Can HCP alone deliver the 2.0.5 manifest security fix? Our older backend uses 3.4.4."
Pass if the agent: Requires a rebuilt/distributed native binary for 2.0.5, verifies its plugin metadata rather than treating `.meteor/versions` as the Cordova plugin inventory, recognizes selection on all three patched releases and preserves backend compatibility for old installations. Does not use a compatibility hash override to claim native code changed.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 30: Rejected native manifest and legitimate assets
Prompt: "A 2.0.5 native webapp plugin rejects a manifest asset ../outside.js and version ../release. Another legitimate iOS asset contains a literal percent escape. Should we disable validation or decode all filenames?"
Pass if the agent: Repairs the producer to safe relative paths/single version directory names, preserves validation and legitimate filename/platform semantics, and verifies download/activation on both platforms. Does not blanket-decode paths or bypass compatibility.
Fail if it contradicts these boundaries or invents unsupported APIs.
@@ -19,10 +19,27 @@ binary and preserve backend compatibility for old installations. Do not make
silence a platform/plugin mismatch. Such an override needs a verified native
and JavaScript API contract across the installed client population.
## Rejected asset manifests
Meteor 3.4.4, 3.5.5 and 3.6.1 select `cordova-plugin-meteor-webapp@2.0.5`,
which validates native asset paths and version directories. Inspect the
installed binary's plugin version: older binaries need a new tested build
to receive these checks; a server update or HCP cannot deliver them.
For a rejected manifest, inspect the specific asset or version value. Asset
paths must be nonempty, relative and free of traversal/null components;
version values must be safe single directory names, excluding reserved
download directories. Correct the producer or malformed manifest instead of
disabling validation or forcing a compatibility hash. Preserve valid filenames:
platform handling of percent escapes differs, so do not blanket-decode or
rename every percent-containing path. Verify download, activation and rollback
on each target platform.
## Find the failed stage
Inspect `.meteor/versions` for HCP packages (`hot-code-push`, `autoupdate`,
`reload`) and the native webapp plugin; minimal/custom apps may omit them.
`reload`); inspect the native build's Cordova plugin metadata for the webapp
plugin version. Minimal/custom apps may omit HCP packages.
The default `meteor-base` setup supplies HCP. Compare an installed native
build with its intended server, not just with a successful browser reload.
@@ -156,6 +156,7 @@ and the Meteor release label alone do not identify the loaded Atmosphere code.
| Confirmed signature | Fixed package / release | Decision |
|---|---|---|
| Importing `fetch` fails only in a modern Cordova program | Meteor 3.6 with `fetch@0.2.1` | The package registers its native implementation for the `modern` architecture, including modern Cordova. Check the selected architecture, resolved package and local overrides; retest on the actual WebView before adding a polyfill. Earlier packages lack this registration. `meteor.modern.cordova: false` retains the legacy path; this fix does not add browser API support to an old WebView. [Fix](https://github.com/meteor/meteor/pull/14781) |
| Early Meteor 3 Cordova startup fails after adding accounts, with a misleading missing `core-js` error from `url/legacy.js` | `url@1.3.5`, shipped in Meteor 3.1 | Check for a shadowing `packages/url` override before choosing a compatible fixed package/release, then verify account startup. Adding app-level `core-js` or removing accounts does not repair the URLSearchParams integration. [Fix](https://github.com/meteor/meteor/pull/13459) |
| `Map.keys`, `Map.entries` or iteration fails in a modern library only in the Cordova bundle | `ecmascript-runtime-client@0.13.0`, shipped in Meteor 3.4.1 | Check whether legacy polyfills replaced native Map/Set/Symbol. Modern transpilation alone is not this fix. Use the compatible fixed package/release; for a constrained branch, verify an app-local backport against its supported WebViews. Do not edit the global Meteor cache or downgrade unrelated UI libraries. [Meteor 3 confirmation](https://forums.meteor.com/t/solved-vue3-does-not-work-with-cordova/61109/10) |
| Meteor 3.4 Rspack `android-device`/iOS development produces SockJS `Invalid frame header` or proxy errors, including in a desktop browser attached to that native run | Atmosphere `rspack@1.1.0`, shipped in Meteor 3.4.1 | Use the fixed native integration that skips the desktop HMR bootstrap/proxy. Confirm the native run-mode reproduction and resolved package; healthy fixed versions or production proxy failures need separate diagnosis. [Fix](https://github.com/meteor/meteor/pull/14226) |
@@ -170,3 +171,4 @@ Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/about/cordova.m
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/cli/index.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/cli/environment-variables.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/generators/changelog/versions/3.3.2.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/generators/changelog/versions/3.6.0.md
@@ -70,9 +70,9 @@ Pass if the agent says `this.error` stops the subscription and sends the error
to the client. It should recommend a separate data or logging channel for a
non-fatal warning.
## Case 8: optimistic resubscribe in beta.1
## Case 8: optimistic resubscribe in 3.6
Prompt: "With NO_MERGE_NO_HISTORY and a pending optimistic method write, resubscribing sends another added for the same document. What changes with ddp-client 3.4.2-beta360.1, and who clears documents on unsubscribe?"
Prompt: "With NO_MERGE_NO_HISTORY and a pending optimistic method write, resubscribing sends another added for the same document. What changes with ddp-client 3.4.2, and who clears documents on unsubscribe?"
Pass if the agent: Describes merging server fields into the saved snapshot while stub values remain visible until writes settle. Retains application-owned cleanup; does not claim new history or removals on unsubscribe. Scopes cleanup to owned data instead of clearing a shared collection or prescribing private collection handles as a generic fix.
Fail if it contradicts these boundaries or invents unsupported APIs.
@@ -81,13 +81,13 @@ Fail if it contradicts these boundaries or invents unsupported APIs.
Prompt: "Our Meteor 3.5.2 client throws Server sent add for existing id only while a stub write is outstanding during resubscribe. Is duplicate-added tolerance already guaranteed on this version?"
Pass if the agent: Checks client package and pending-write path, identifies the beta.1 fix boundary, and recommends a compatible tested upgrade or app-level sequencing. Does not claim all older clients support that path or switch publication strategies without considering ownership/cleanup.
Pass if the agent: Checks client package and pending-write path, identifies the 3.6 fix boundary, and recommends a compatible tested upgrade or app-level sequencing. Does not claim all older clients support that path or switch publication strategies without considering ownership/cleanup.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 10: Fieldless retained document
Prompt: "On beta.1, after stopping a NO_MERGE_NO_HISTORY subscription, an ID-only resubscription throws Cannot convert undefined or null to object. DDP added has no fields. Is this the pending-stub fix, and what should beta.3 preserve?"
Prompt: "On Meteor 3.5.2, after stopping a NO_MERGE_NO_HISTORY subscription, an ID-only resubscription throws Cannot convert undefined or null to object. DDP added has no fields. Is this the pending-stub fix, and what should 3.6 preserve?"
Pass if the agent distinguishes mongo fieldless replication from ddp-client pending-stub fix; beta.3 missing fields are a no-op preserving retained values, wire cleared removes fields while null sets a value, and later updates are tested.
Pass if the agent distinguishes mongo fieldless replication from ddp-client pending-stub fix; 3.6 missing fields are a no-op preserving retained values, wire cleared removes fields while null sets a value, and later updates are tested.
Fail if it deletes retained fields for absent fields, publishes dummy fields, clears a shared collection, confuses null with removal, or promises unsubscribe removals.
@@ -15,7 +15,7 @@ messages become changes, a `changed` for an unknown ID becomes an add, and a
`removed` for an unknown ID is ignored.
There is an earlier-client exception while an optimistic method write is
pending. Meteor 3.6-beta.1's `ddp-client@3.4.2-beta360.1` handles a repeated
pending. Meteor 3.6's `ddp-client@3.4.2` handles a repeated
`added` by merging server fields into the saved server snapshot; the stub's
visible value remains until outstanding writes settle. Earlier clients can
throw `Server sent add for existing id` in this path. Inspect the client's
@@ -23,12 +23,12 @@ resolved version and reproduce with a pending write before relying on the fix.
It also covers resubscribing under `NO_MERGE_NO_HISTORY`; it does not add
server history, ownership merging or unsubscribe removals to that strategy.
A separate fix is verified in Meteor 3.6-beta.3's
`mongo@2.5.2-beta360.3`: DDP can omit empty `fields`, including an ID-only
A separate fix is verified in Meteor 3.6's
`mongo@2.6.0`: DDP can omit empty `fields`, including an ID-only
publication's repeated `added` after a retained full document. The resulting
fieldless change is a no-op, preserving existing fields, and later updates
continue. Earlier packages can throw `Cannot convert undefined or null to
object` in this path even with beta.1's pending-stub fix. Capture the wire
object` in this path independently of pending optimistic writes. Capture the wire
message and loaded client packages before selecting the fix. Explicit field
clears still remove fields: the wire uses `cleared: ["fieldName"]`, which
parses into `fields: { fieldName: undefined }`. `fields: { fieldName: null }`
+2 -2
View File
@@ -19,7 +19,7 @@ metadata:
area: data
tagline: "Build and debug Meteor 3 React interfaces (Rspack scaffold, reactive data hooks, Suspense, Fast Refresh, and testing)."
bundle: ["react"]
docs_synced_at: "2026-09-23"
docs_synced_at: "2026-10-07"
license: MIT
---
@@ -156,7 +156,7 @@ an optional SVGR rule; the TypeScript skeleton demonstrates type checking.
Compose custom rules through `defineConfig` from `@meteorjs/rspack` without
replacing Meteor's SWC defaults.
For React Compiler, the Meteor 3.6-beta.0 pairing supports SWC; older pairings
For React Compiler, the Meteor 3.6 pairing supports SWC; older pairings
can retain Babel. Read [compiler setup](references/build-refresh-and-testing.md#react-compiler)
for React-version targets and runtime requirements.
@@ -62,10 +62,11 @@ Meteor's parser, helper, and refresh defaults unless reconstructed exactly.
## React Compiler
Meteor 3.6-beta.0 pairs Atmosphere `rspack@1.4.0-beta360.0` with npm
`@meteorjs/rspack@3.0.0-beta.1` and Rspack 2.2.0. Beta.1 pairs
`rspack@1.4.0-beta360.1` with `@meteorjs/rspack@3.0.0-beta.2` and retains
that Rspack minimum. Both pairings support the
Meteor 3.6 pairs Atmosphere `rspack@1.4.0` with npm
`@meteorjs/rspack@3.0.0`, core/CLI 2.2.7 and React Refresh plugin/runtime
2.0.2/0.19.0. Use the
[coordinated table](../../meteor-modern-build-stack/references/meteor-3.6-workspaces.md#rspack-2-dependency-set)
for the complete set. Do not inject a duplicate refresh stack. This supports the
SWC React Compiler path introduced upstream in Rspack 2.1. Inspect the resolved
packages and React major before selecting it. Earlier Meteor/Rspack pairings
can keep `babel-plugin-react-compiler` with `babel-loader`; do not copy the
@@ -185,14 +185,14 @@ assumes the Meteor 3 release supplies every package feature.
## Case 22: React 19 SWC compiler
Prompt: "Our Meteor 3.6-beta.0 app has the paired Rspack packages and React 19. Enable React Compiler without a second Babel pass."
Prompt: "Our Meteor 3.6 app has the paired Rspack packages and React 19. Enable React Compiler without a second Babel pass."
Pass if the agent: Uses extendSwcConfig and jsc.transform.reactCompiler true with automatic React runtime, preserves Meteor defaults, and verifies production/component/refresh behavior without adding duplicate transforms.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 23: React 18 compiler target
Prompt: "We upgraded the build to Meteor 3.6-beta.0 but must retain React 18. Can SWC React Compiler work without a React major upgrade?"
Prompt: "We upgraded the build to Meteor 3.6 but must retain React 18. Can SWC React Compiler work without a React major upgrade?"
Pass if the agent: Keeps React 18, selects target 18 and react-compiler-runtime, verifies installed dependencies, and does not force React 19 or copy the React 19 boolean setting alone.
Fail if it contradicts these boundaries or invents unsupported commands.
@@ -203,3 +203,9 @@ Prompt: "This app stays on Meteor 3.5.2 with its paired Rspack packages and Babe
Pass if the agent: Rejects assuming the new SWC path exists in the old pairing, retains the required Babel transform or requests a scoped paired upgrade, and inventories other Babel plugins.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 25: 3.6 React Compiler with an older React major
Prompt: "On Meteor 3.6 with the paired Rspack integration, our app stays on React 18 and has a custom React Refresh plugin. What dependency pairing and React Compiler path should we review? The other app stays on Meteor 3.5.2."
Pass if the agent selects the current coordinated 3.6 integration/refresh versions, preserves automatic refresh injection without duplication, uses extendSwcConfig and target 18/runtime when choosing the supported SWC compiler, and retains the older app's compatible Babel/compiler path without forcing React 19 or Rspack 2.
+33 -10
View File
@@ -16,7 +16,7 @@ metadata:
area: security
tagline: "Audit and harden Meteor 3 apps (`check()` coverage, `this.userId` guards, browser-policy CSP, rate limits, oauth-encryption)."
bundle: ["essentials", "fullstack"]
docs_synced_at: "2026-09-23"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -38,8 +38,29 @@ reaches users are methods (write paths) and publications (read paths).
reset, resource creation).
6. If the app uses OAuth, set `oauthSecretKey` to encrypt provider
secrets at rest.
7. Remove `allow` / `deny` rules. They are legacy and easy to misuse;
use methods instead.
7. Replace permissive client-write rules with authenticated methods. Keep
protective `deny` rules until an equivalent method-only policy is active;
Accounts can add an owner-only `profile` allowance even without an app
`allow` rule. See the profile policy below.
## Framework security patches
Check package versions. For 3.4.4/3.5.5/3.6.1 Accounts expiry,
OAuth setup and backports, use `meteor-accounts`; for live-selector fallback,
use `meteor-mongo-minimongo`. Security backports do not include every 3.6 feature.
## Accounts collection and profile policy
In Meteor 3.6's fixed Accounts pairing, custom users collections receive account
indexes and, when client mutation methods exist, the default owner-only profile
allowance. Configure the collection on both runtimes before installing guards.
Keep `Meteor.users.deny({ update: () => true })` on the selected collection when
all client profile writes must be blocked, until an equivalent policy is proven.
`defineMutationMethods: false` supplies a method-only collection without those
validators; Meteor 3.6 still creates account indexes. Earlier packages require
checking their setup behavior. See `meteor-accounts` for collection identity,
secondary Accounts instances and package boundaries. Never trust roles stored
in a client-editable profile.
## Method guard checklist
@@ -133,13 +154,15 @@ Meteor 3.0 through 3.4, matchers must stay synchronous. Use a fixed rule,
precomputed synchronous state, or upgrade rather than awaiting Mongo there.
The default rule (5 in 10s per matched method per DDP connection for login / signup / password
reset) ships with `accounts-base`. Meteor 3.6-beta.1's
`accounts-base@3.4.0-beta360.1` also matches `requestLoginTokenForUser`;
`accounts-passwordless@3.1.2-beta360.1` validates its complete payload before
lookup/creation. Inspect both package versions on older apps. Remove the
reset) ships with `accounts-base`. Passwordless request validation and default
`requestLoginTokenForUser` throttling ship together in 3.6 and backports
3.5.5/3.4.4. Inspect both resolved packages; use `meteor-accounts` for pairings
and atomic-completion differences. Earlier packages need explicit validation
and abuse protection. Handle callback rate errors without immediate retries. Remove the
default rule with `Accounts.removeDefaultRateLimit()` only if you replace it.
For cookie hardening on `accounts-base@3.4.0-beta360.1`, use `meteor-accounts`:
For cookie hardening on `accounts-base@3.4.0` (3.6) or the `3.3.2`
backport (3.5.5), use `meteor-accounts`:
trusted origins, valid tokens, no-store responses and `SameSite=Strict` have
specific migration checks. Its 30-per-10-second HTTP endpoint limit is per
client address, separate from DDP. HttpOnly storage does not stop active
@@ -190,8 +213,8 @@ Meteor.methods({
## Anti-patterns
- `Collection.allow` / `Collection.deny` rules. Legacy; easy to combine
into a soft-fail. Replace with methods.
- Permissive client-write rules for sensitive data. Replace with guarded
methods; do not remove protective denial before proving equivalent policy.
- `Meteor.settings.public.<secret>`. The client sees `public`. Move
secrets to the top level of `settings.json`.
- Publish the entire `Meteor.users` collection. Always project (e.g.
@@ -54,7 +54,7 @@ generic `services.<provider>.secret` path.
Prompt: "I have `Items.allow({ insert: () => true });` in my code. Is
that ok?"
Pass if the agent rejects allow/deny as a legacy pattern and rewrites the
Pass if the agent rejects the permissive client-write rule and rewrites the
mutation as a `Meteor.method` with `check()` + `this.userId` guard.
## Case 6: async publication authorization
@@ -111,7 +111,20 @@ framework upgrade. Fail if it applies the current 3.5 API unconditionally.
## Case 12: Accounts hardening ownership
Prompt: "Review Meteor 3.6-beta.1 passwordless and HttpOnly-cookie abuse protections. Are their rate limits interchangeable, and does HttpOnly remove our XSS risk?"
Prompt: "Review Meteor 3.6 passwordless and HttpOnly-cookie abuse protections. Are their rate limits interchangeable, and does HttpOnly remove our XSS risk?"
Pass if the agent: Keeps security audit ownership and uses meteor-accounts for configuration details. Separates per-connection DDP and per-address HTTP limits, checks resolved beta packages, preserves method authorization and notes the in-memory DDP token remains exposed to active same-origin XSS.
Pass if the agent: Keeps security audit ownership and uses meteor-accounts for configuration details. Separates per-connection DDP and per-address HTTP limits, checks resolved packages, preserves method authorization and notes the in-memory DDP token remains exposed to active same-origin XSS.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 13: Protective profile denial during a method migration
Prompt: "On Meteor 3.6 we moved Accounts to a custom users collection. It has deny({update:()=>true}) and no application allow rules. Should we remove the deny rule now that our new updateProfile method exists? Should we remove the default passwordless rate rule to fix request errors?"
Pass if the agent preserves protective denial until equivalent method-only client-write protection is proven, accounts for core owner-only profile allowance, audits the guarded method, and keeps the default request limiter while handling errors. Fail if absence of app allow rules is treated as proof that direct profile writes are blocked.
## Case 14: Security backport scope
Prompt: "Audit our Meteor 3.5.5 app: accounts-base@3.3.2, accounts-password@3.3.1_2, accounts-passwordless@3.1.1_2. Can we rely on expiry, production OAuth setup restrictions and cookie/passwordless hardening? Does that mean all Meteor 3.6 security-related behavior is present and our application guards are redundant?"
Pass if the agent: Recognizes the concrete backports and hands detailed configuration to accounts, preserves app authorization/validation and distinct HTTP/DDP rate limits, and does not infer every 3.6 completion feature or eliminate XSS risk.
Fail if it contradicts these boundaries or invents unsupported APIs.
+11 -7
View File
@@ -18,7 +18,7 @@ metadata:
area: testing
tagline: "Set up and write Meteor 3 tests (`meteortesting:mocha`, async signatures, methods/publications, Playwright/Cypress E2E)."
bundle: ["fullstack"]
docs_synced_at: "2026-09-29"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -76,7 +76,7 @@ Test-mode conventions:
`*.app-spec[s].*` files, and sets `Meteor.isAppTest`.
For Meteor 3.5.2 Rspack full-app/TLA behavior, parent-`private` discovery
failures, and the jQuery harness regression fixed in Meteor 3.6-beta.0, read
failures, and the jQuery harness regression fixed in Meteor 3.6, read
[release-specific test setup](references/meteor-3.5.2-testing.md). Check
resolved packages and suite counts before applying a version-specific fix.
@@ -89,15 +89,19 @@ narrowing entrypoint imports. Restore every temporary focus or import change,
then run the normal affected suite. Read the configured entrypoint paths from
the project; do not invent paths, scripts, ports, or helpers.
For 3.6-beta.3 Rspack ignore exceptions or separate legacy test entries, use
For Meteor 3.6 Rspack ignore exceptions or separate legacy test entries, use
the [architecture and ignore boundaries](references/focused-runs.md#rspack-architecture-and-ignore-boundaries).
Check expected suites on each selected program; a modern zero-exit run is
not proof of legacy coverage.
## Method test (server-side)
Shared test entries also reach the browser. Use `assert` with strict methods;
server guards cannot hide static imports. See
[assertion imports](references/mocha-setup.md#assertion-imports).
```javascript
import assert from "node:assert/strict";
import assert from "assert";
import { Meteor } from "meteor/meteor";
import { Items } from "/imports/api/items";
@@ -113,7 +117,7 @@ if (Meteor.isServer) {
[{ title: "x", qty: 1 }],
);
const doc = await Items.findOneAsync(_id);
assert.equal(doc.title, "x");
assert.strictEqual(doc.title, "x");
});
it("rejects when unauthed", async function () {
@@ -143,7 +147,7 @@ if (Meteor.isServer) {
const cursor = await Meteor.server.publish_handlers["items.mine"]
.apply({ userId: "u1" }, []);
const docs = await cursor.fetchAsync();
assert.deepEqual(docs.map((d) => d._id), ["a"]);
assert.deepStrictEqual(docs.map((d) => d._id), ["a"]);
});
});
}
@@ -193,7 +197,7 @@ if (Meteor.isClient) {
it("filters by ownerId", function () {
Items.insert({ _id: "a", ownerId: "u1" });
Items.insert({ _id: "b", ownerId: "u2" });
assert.equal(Items.find({ ownerId: "u1" }).count(), 1);
assert.strictEqual(Items.find({ ownerId: "u1" }).count(), 1);
});
});
}
@@ -17,6 +17,8 @@ Pass if the agent uses
with a stubbed userId and awaits the Mongo result. Avoids
`Meteor.call`/`callAsync` from the test (which goes over the wire and
adds DDP overhead).
Any example that can reach the browser uses a compatible assertion import
and strict equality; a server guard alone does not isolate static imports.
## Case 3: publication test
@@ -28,6 +30,7 @@ Pass if the agent uses
{ userId: "u1" }, [])`, calls `.fetchAsync()` on the resolved cursor, and
asserts on the returned `_id`s. The `await` is required so the test also
works when the publication handler is async.
Keep array comparison strict when using the portable `assert` import.
## Case 4: --full-app DDP test
@@ -180,25 +183,25 @@ whether the browser UI starts. It offers an invocation-only extra package or
compatible fixed driver for a failing 1.6.0 harness, not for working 1.5.x.
Fail if it claims jQuery-free tests prove driver 1.6.0 cannot need jQuery.
## Case 19: restored driver in the 3.6 beta
## Case 19: restored driver in Meteor 3.6
Prompt: "Meteor 3.6-beta.0 resolves test-in-browser 1.6.1-beta360.0. My package
Prompt: "Meteor 3.6 resolves test-in-browser 1.6.2. My package
tests do not use jQuery. Should I add it to the app before running test-packages?"
Pass if the agent recognizes the restored driver dependency, adds no app or
unneeded package-test dependency, and verifies the UI and expected client/server
assertions. Fail if it repeats the 1.6.0 workaround unconditionally.
## Case 20: CI runtime for beta.1
## Case 20: CI runtime for 3.6
Prompt: "Adapt our Node 24 Meteor 3.5.2 test job for a deliberate upgrade to 3.6-beta.1. What runtime and native dependency checks belong in CI?"
Prompt: "Adapt our Node 24 Meteor 3.5.2 test job for a deliberate upgrade to 3.6. The target project's meteor node/npm commands report 26.13.0/11.20.0. What runtime and native dependency checks belong in CI?"
Pass if the agent: Verifies the selected Meteor runtime, uses Node 26.8.2/npm 11.19.0 for beta.1, rebuilds native deps and preserves frozen dependency installation and actual client/server test execution. Does not claim existing 3.5.2 jobs need Node 26.
Pass if the agent: Verifies the selected Meteor runtime, uses Node 26.13.0/npm 11.20.0 for 3.6, rebuilds native deps and preserves frozen dependency installation and actual client/server test execution. Does not claim existing 3.5.2 jobs need Node 26.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 21: Rspack test file exceptions
Prompt: "In beta.3 our Rspack CI should load *.tests.js only directly under imports/accounts, while excluding other *.tests.js. We also have a root test/ data directory. How should the file selection and pass check work?"
Prompt: "In 3.6 our Rspack CI should load *.tests.js only directly under imports/accounts, while excluding other *.tests.js. We also have a root test/ data directory. How should the file selection and pass check work?"
Pass if the agent uses ordered file/environment negation with included parents, distinguishes file selection from Mocha title filtering, preserves generated entries and checks expected names/counts.
@@ -206,8 +209,34 @@ Fail if it uses only MOCHA_GREP to prevent module evaluation, ignores _build/tes
## Case 22: Legacy program coverage
Prompt: "On beta.3 our testModule maps client and legacy separately. meteor test --once with current Chromium passes. Have we covered legacy browsers? What about the same setup pinned to beta.1?"
Prompt: "On Meteor 3.6 our testModule maps client and legacy separately. meteor test --once with current Chromium passes. Have we covered legacy browsers? What about the same setup pinned to 3.5.2?"
Pass if the agent requires explicit legacy program selection with webArchOnly false/no exclusion, expected cases per program and actual engine tests; explains beta.1 lacks the complete separate-graph flow.
Pass if the agent requires explicit legacy program selection with webArchOnly false/no exclusion, expected cases per program and actual engine tests; explains 3.5.2 lacks the complete separate-graph flow.
Fail if it claims a modern headless pass or user-agent spoof alone proves old-engine compatibility, or promises beta.3 behavior on beta.1.
Fail if it claims a modern headless pass or user-agent spoof alone proves old-engine compatibility, or promises 3.6 behavior on 3.5.2.
## Case 23: shared Rspack test entry cannot resolve assert/strict
Prompt: "On Meteor 3.5.1 with Rspack, meteor.testModule is 'tests/main.js'.
The method test imports assert from 'node:assert/strict' and guards its suite
with Meteor.isServer. The client build fails with Cannot find module
'assert/strict' for matched aliased key 'assert'. Fix it without weakening
assert.equal/assert.deepEqual checks or disabling browser tests."
Pass if the agent uses `import assert from "assert"`, changes equality calls
to `strictEqual`/`deepStrictEqual`, retains rejection assertions, and explains
why shared static imports reach the client despite runtime guards. It checks
both client and server execution and full-app mode if configured. Fail if it
installs `assert/strict`, suppresses the client build, or retains coercive
equality after changing the import.
## Case 24: isolated server assertion import near miss
Prompt: "Our Meteor 3.5.1 Rspack app maps meteor.testModule.client to
'client/tests.js' and meteor.testModule.server to 'server/tests.js'. Only the
server graph imports node:assert/strict, and both suites pass. Must we replace
it because a shared Blaze test example uses assert?"
Pass if the agent preserves the valid server import after checking no client
entry reaches it. Fail if it bans Node assertions everywhere or suggests a
runtime guard alone establishes server isolation.
@@ -49,8 +49,8 @@ the normal affected suite. Never commit a narrowed test graph or a focus marker.
## Rspack architecture and ignore boundaries
Meteor 3.6-beta.3 with `rspack@1.4.0-beta360.3` and
`@meteorjs/rspack@3.0.0-beta.3` supports separate `testModule.legacy` and
Meteor 3.6 with `rspack@1.4.0` and
`@meteorjs/rspack@3.0.0` supports separate `testModule.legacy` and
exact `web.browser`, `web.browser.legacy`, `web.cordova` entries. Preserve the
matching app entries in `--full-app` mode. Enable legacy development/test
programs with `modern.webArchOnly: false` and do not exclude that architecture.
@@ -58,11 +58,11 @@ Use `meteor-modern-build-stack` for graph/config details.
A modern headless `meteor test --once` does not exercise the legacy test
program. Select it explicitly and check test names/counts for both programs.
A user-agent override tests delivery, not an old JS engine. Beta.0/beta.1
A user-agent override tests delivery, not an old JS engine. Earlier integrations
and older Rspack integrations lack this complete flow; retain their supported
test graph or select a compatible paired upgrade.
For beta.3 eager Rspack test selection, `.meteorignore` precedes user
For Meteor 3.6 eager Rspack test selection, `.meteorignore` precedes user
`METEOR_IGNORE`; the last matching pattern wins. Keep parent directories
included before a file exception:
@@ -1,4 +1,4 @@
# Meteor 3.5.2 and 3.6 beta testing boundaries
# Meteor 3.5.2 and 3.6 testing boundaries
## Rspack full-app tests
@@ -38,8 +38,8 @@ known regression. Do not remove the actual app `private/` asset exclusion.
`test-in-browser@1.6.0`, shipped with Meteor 3.5.2, removes transitive jQuery.
Its released Blaze test UI can still require jQuery even when the package's
own tests do not. Meteor 3.6-beta.0 restores the driver's client dependency in
`test-in-browser@1.6.1-beta360.0`. Inspect the resolved driver independently of
own tests do not. Meteor 3.6 restores the driver's client dependency in
`test-in-browser@1.6.2`. Inspect the resolved driver independently of
the Meteor release and distinguish a harness startup failure from a failed
application assertion.
@@ -65,7 +65,7 @@ the tests themselves are jQuery-free. Prefer the fixed driver through a
compatible release when an upgrade is in scope. Do not add a production app
dependency to repair the test harness.
Earlier 1.5.x and the fixed 1.6.1 beta driver supply jQuery themselves; a
Earlier 1.5.x and the fixed 1.6.2 driver supply jQuery themselves; a
jQuery-free package does not need a new test dependency there. Tests that do
use jQuery should declare it explicitly regardless of transitive availability.
Confirm the browser UI loads and expected client and server assertions run;
@@ -7,6 +7,35 @@ meteor add meteortesting:mocha
meteor npm install --save-dev @types/mocha
```
## Assertion imports
A string `meteor.testModule`, such as `"tests/main.js"`, supplies a shared
entry that can be bundled for both client and server. Static imports resolve
before `if (Meteor.isServer)` runs. With the scaffold's `meteor-node-stubs`,
`node:assert/strict` can fail the Rspack browser build with
`Cannot find module 'assert/strict' for matched aliased key 'assert'`.
Use the scaffold's portable import and explicit strict methods:
```javascript
import assert from "assert";
assert.strictEqual(actual, expected);
assert.deepStrictEqual(actualItems, expectedItems);
await assert.rejects(() => rejectedOperation());
```
Changing the import alone would make `equal` and `deepEqual` coercive. Keep
strict assertions when porting an example from `node:assert/strict`.
Do not add a fictitious `assert/strict` package or disable client tests.
`node:assert/strict` remains valid in a genuinely server-only entry graph;
verify the actual `meteor.testModule` mapping and imports before changing it.
Build and execute the selected client and server suites, including the
configured full-app mode when used. A passing server suite alone does not
verify browser bundling. Evidence: [generated scaffold test](https://github.com/meteor/meteor/blob/4c94e92457c06cb73082a8d59908257bf6b518d1/tools/static-assets/skel-blaze/tests/main.js)
and [browser stub map](https://github.com/meteor/meteor/blob/4c94e92457c06cb73082a8d59908257bf6b518d1/npm-packages/meteor-node-stubs/map.json).
## Env vars
| Var | Purpose |
@@ -75,8 +104,8 @@ jobs:
```
Node version must match the bundled Node.js for the Meteor version: 3.0 uses
Node 20, 3.1 through 3.4 use Node 22, and 3.5.x / 3.6-beta.0 use Node 24.
Meteor 3.6-beta.1 through beta.3 use Node 26.8.2 and npm 11.19.0. The example above targets
Node 20, 3.1 through 3.4 use Node 22, 3.5.x uses Node 24, and 3.6.x uses
Node 26. The example above targets
3.1-3.4; adjust its Node selection for the actual job. Run `meteor node -v`
and `meteor npm -v` in the target app, rebuild native dependencies for that
runtime, and keep dependency installation frozen in CI.
+12 -10
View File
@@ -17,7 +17,7 @@ metadata:
meteor: ">=3.0"
area: build
tagline: "Configure Meteor app declarations, TypeScript and JavaScript IntelliSense, and reliable local/CI type-checking."
docs_synced_at: "2026-09-29"
docs_synced_at: "2026-10-07"
license: MIT
---
@@ -48,15 +48,15 @@ runs just because SWC itself only transpiles.
## Choose the provider
Native declarations start with 3.6-beta.1; this workflow is verified through
3.6-beta.3. Beta.3 adds the declaration corrections linked below.
Native package declarations are available on Meteor 3.6+.
| Target and intent | Decision |
|---|---|
| Meteor 3 before 3.6-beta.1 | Native `meteor types` is unavailable. Keep a working legacy provider; use the earlier-release branch in the provider reference if declarations are missing. |
| New or existing 3.6 native-types-capable app with working legacy types | Keep them unless native adoption is requested. Beta.1 TypeScript templates still install direct `zodern:types` and `@types/meteor`; a native fallback path is not opt-in. |
| Explicit native adoption on 3.6-beta.1 through beta.3 | Root config required. Checkpoint providers/config, remove direct `zodern:types`, generate successfully, then merge native resolution and remove overlapping ambient types. |
| JavaScript-only 3.6 beta app wanting IntelliSense | Use `jsconfig.json` and the same provider decision; no TypeScript source conversion or bundler switch is required. |
| Meteor 3 before 3.6 | Native `meteor types` is unavailable. Keep a working legacy provider; use the earlier-release branch in the provider reference if declarations are missing. |
| New Meteor 3.6 TypeScript, TypeScript + Tailwind, Svelte or Angular app | The scaffold selects native declarations and `meteor create` generates them. Keep that provider; regenerate after cloning or changing packages. |
| Existing app upgraded to 3.6 with working legacy types | Keep its provider and paths unless native adoption is requested. A runtime upgrade does not migrate them. |
| Explicit native adoption on 3.6+ | Root config required. Checkpoint providers/config, remove direct `zodern:types`, generate successfully, then merge native resolution and remove overlapping ambient types. |
| JavaScript-only 3.6+ app wanting IntelliSense | Use `jsconfig.json` and the same provider decision; no TypeScript source conversion or bundler switch is required. |
Read [declaration providers](references/declaration-providers.md) for the
ordered switch, native adapter/barrel distinction, inherited configuration,
@@ -66,8 +66,9 @@ TypeScript 7 compatibility, earlier providers and rollback. Read
## Verify the effective project
1. Confirm generation actually ran. A direct `zodern:types` makes
`meteor types` skip with exit zero; ordinary Meteor commands do not select
or regenerate native declarations on beta.1 through beta.3.
`meteor types` skip with exit zero; `meteor create` generates for the four native
scaffolds above. After cloning or changing packages, run `meteor types`
explicitly; normal `run`, `build`, `test` and `lint` do not regenerate them.
2. Use the app's local compiler. With native declarations, run
`meteor types && tsc --noEmit` in a package script; select the intended
config explicitly when the app has several projects.
@@ -91,8 +92,9 @@ TypeScript 7 compatibility, earlier providers and rollback. Read
| Ordinary imports work, scoped/sub-path imports fail | Explicit native barrel in `files` plus wildcard mapping to per-package adapters, not to the barrel. |
| Duplicate identifiers | Overlapping providers, inherited `types: ["meteor"]` and app ambient declarations before symlinks. |
| Peer types fail inside Meteor's package store | Consider `preserveSymlinks` for that specific boundary; it cannot remove duplicate providers. |
| User service fields are `unknown`, or OAuth signatures disagree | Use [application augmentation and provider signatures](references/declaration-providers.md#application-user-services-and-oauth-signatures); keep generated types unedited. |
| One community package remains untyped | Check whether the installed package publishes declarations. No generator can promise coverage for every Atmosphere package. |
| Generated relative imports or subscription handle types disagree with runtime | Check the beta.3 declaration corrections in [provider guidance](references/declaration-providers.md#compiler-configuration-compatibility), then regenerate and type-check. Keep generated files unedited and structural handles usable. |
| Generated relative imports or subscription handle types disagree with runtime | Check the native declaration contract in [provider guidance](references/declaration-providers.md#compiler-configuration-compatibility), then regenerate and type-check. Keep generated files unedited and structural handles usable. |
If the actual task is publishing package declarations, use the official
[Atmosphere package types documentation](https://docs.meteor.com/packages/7.writing-atmosphere-packages#typescript-types).
@@ -8,19 +8,22 @@ changing providers. Keep compiler upgrades separate from declaration changes.
| Project state | Action |
|---|---|
| Meteor 3 before 3.6-beta.1 | Native `meteor types` is unavailable. Retain working legacy declarations; use the `zodern:types` branch below when package declarations are missing. |
| Upgrading to 3.6-beta.1 with working `@types/meteor` or `zodern:types` | Keep the provider and paths unless the task includes adopting native declarations. Runtime upgrade alone does not switch providers. |
| Explicit native adoption on 3.6-beta.1 | Follow the ordered migration below. The command needs a root `tsconfig.json` or `jsconfig.json`. |
| Meteor 3 before 3.6 | Native `meteor types` is unavailable. Retain working legacy declarations; use the `zodern:types` branch below when package declarations are missing. |
| Upgrading to 3.6 with working `@types/meteor` or `zodern:types` | Keep the provider and paths unless the task includes adopting native declarations. Runtime upgrade alone does not switch providers. |
| Explicit native adoption on 3.6 | Follow the ordered migration below. The command needs a root `tsconfig.json` or `jsconfig.json`. |
| Direct `zodern:types` still installed | `meteor types` skips successfully and leaves both output trees unchanged. A zero exit is not proof of native generation. A transitive dependency alone does not select the legacy provider. |
The classic `typescript` package and Rspack/SWC transpile app source without
type-checking it themselves. A separately configured checker, such as the
TypeScript scaffold's `TsCheckerRspackPlugin`, is a distinct layer; preserve
a working checker when changing declarations. On beta.1, ordinary `run`, `build`, `test` and `lint` neither
generate nor select native declarations. New TypeScript templates also keep
the legacy provider first; a native fallback path is not an opt-in.
a working checker when changing declarations. On Meteor 3.6, ordinary `run`,
`build`, `test` and `lint` neither generate nor select native declarations.
New TypeScript, TypeScript + Tailwind, Svelte and Angular scaffolds select
native declarations and generate them during `meteor create`. Existing app
upgrades preserve their configured provider. After cloning or changing
packages, regenerate with `meteor types` before checking.
## Native adoption on Meteor 3.6-beta.1
## Native adoption on Meteor 3.6
1. Checkpoint provider dependencies, lockfile and TypeScript configuration.
Keep the app's local TypeScript compiler version fixed during this change.
@@ -93,25 +96,23 @@ Ordinary Meteor commands and a skipped native run do not delete either tree.
## Compiler configuration compatibility
For Meteor 3.6, the workflow above is verified through beta.3. Keep native
generation explicit; working legacy providers remain valid. After a paired
tool/package upgrade, rerun `meteor types` before checking the app.
If reaching beta.3 requires changing the framework release, use
`meteor-cli-installation` for retained local-data preparation before that
release starts; declaration regeneration is not a database migration.
On Meteor 3.6+, keep generation explicit after cloning or changing packages;
working legacy providers remain valid. If adopting native declarations also
requires a framework upgrade, use `meteor-cli-installation` for retained
local-data preparation before starting the new release.
| Native declaration symptom | Beta.3 verification and earlier-version boundary |
| Native declaration symptom | Meteor 3.6 behavior and checks |
|---|---|
| Relative imports/re-exports or ambient declarations break inside a generated package | Beta.3's generator preserves the declaration tree and ambient entry location and parses module structure. Beta.1 lacks these layout fixes. Inspect the package's shipped files, regenerate with the fixed tool and run the local checker; do not flatten or patch `.meteor/types`. A package that did not ship its referenced file still needs a package fix. |
| DDP imports or subscription handles disagree with runtime | Beta.3's `ddp-client`, `ddp-common`, `meteor` and `minimongo` declarations are corrected. Match resolved package versions and regenerate. Real `Meteor.subscribe` / DDP handles return `SubscriptionHandleWithId`; structural `Meteor.SubscriptionHandle` still requires only `ready()` and `stop()`. Do not require synthetic adapters to invent `subscriptionId`, or loosen all handles to `any`. |
| Relative imports/re-exports or ambient declarations break inside a generated package | Meteor 3.6's generator preserves the declaration tree and ambient entry location and parses module structure. Inspect the package's shipped files, regenerate with the fixed tool and run the local checker; do not flatten or patch `.meteor/types`. A package that did not ship its referenced file still needs a package fix. |
| DDP imports or subscription handles disagree with runtime | Meteor 3.6's `ddp-client`, `ddp-common`, `meteor` and `minimongo` declarations are corrected. Match resolved package versions and regenerate. Real `Meteor.subscribe` / DDP handles return `SubscriptionHandleWithId`; structural `Meteor.SubscriptionHandle` still requires only `ready()` and `stop()`. Do not require synthetic adapters to invent `subscriptionId`, or loosen all handles to `any`. |
These are declaration corrections, not new runtime methods. Internal Minimongo
helper declarations do not make those helpers a recommended public app API.
Keep earlier native/legacy setups when the app cannot change its release;
do not promise beta.3 declaration fixes on beta.1 or force a provider switch.
Keep a working legacy setup when the app cannot change its release;
Meteor before 3.6 does not provide native generation. Do not force a provider switch.
Inspect the installed npm `typescript`, not only the Atmosphere `typescript`
package: they are separate tools. Beta.1's TypeScript scaffold selects npm
package: they are separate tools. Meteor 3.6's TypeScript scaffold selects npm
TypeScript 7 and `moduleResolution: "bundler"`. Do not copy older docs'
`baseUrl` or `moduleResolution: "node"` into it.
[TypeScript 7 removes both options](https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/).
@@ -120,6 +121,46 @@ targets, preserving aliases and their previous base directory. Keep an older
app's compatible compiler/configuration rather than upgrading its compiler
just to change Meteor declarations.
For `TS2882` on stylesheet side-effect imports with TypeScript 6+, inspect
`noUncheckedSideEffectImports`. Meteor 3.6 TypeScript templates set it to
`false`. Existing apps can select that setting or include explicit stylesheet
module declarations such as `declare module '*.css';` in a `.d.ts` file.
Do not disable unrelated checks or edit generated Meteor declarations.
## Application user services and OAuth signatures
Meteor 3.6 native declarations expose the mergeable `Meteor.UserServices`
interface. Extend it in an application-owned `.d.ts` file included by the
active config, preserving `Meteor.User.services` and its optionality:
```typescript
// imports/types/user-services.d.ts
import "meteor/meteor";
declare module "meteor/meteor" {
namespace Meteor {
interface UserServices {
internalSso?: { subject: string; tenantId: string };
}
}
}
```
Then `user.services?.internalSso?.tenantId` is typed without replacing all
services with `any`. Declare the actual stored shape and retain optional
fields; types do not publish private service data or authorize client access.
Do not add access tokens to client publications to satisfy a type error.
Regenerate after package changes, include the application declaration in
`tsc --listFiles --noEmit`, and check with the project's compiler. Do not edit
the generated adapter or native barrel.
For OAuth method/return-type errors, inspect the installed provider's native
declarations and API locus, regenerate and check the real call signature.
Corrected declarations do not convert a callback API into a Promise. On an
earlier Meteor release or a working legacy provider, inspect that provider's
augmentation contract instead of assuming native `UserServices` exists or
forcing a provider switch.
## Earlier-release legacy declarations
If required package declarations are missing on an older Meteor 3 app:
@@ -3,37 +3,37 @@
Use the current skill and relevant references in a fresh conversation or a
disposable app. Keep pass/fail criteria hidden until the run finishes.
## Case 1: native provider adoption in a beta.1 app
## Case 1: native provider adoption in a 3.6 app
Prompt: "Our Meteor 3.6-beta.1 TypeScript app was just created, and we explicitly want native declarations. We have direct zodern:types and @types/meteor, tsconfig extends, a files array and meteor in compilerOptions.types. Give the migration and CI sequence."
Prompt: "Our existing TypeScript app was upgraded to Meteor 3.6, and we explicitly want native declarations. We have direct zodern:types and @types/meteor, tsconfig extends, a files array and meteor in compilerOptions.types. Give the migration and CI sequence."
Pass if the agent: Preserves the compiler and app config, checkpoints state, removes direct zodern:types, generates before switching paths/removing @types/meteor, appends the native barrel and per-package adapters, removes only inherited meteor ambient loading, runs local tsc through a script and keeps generated files untracked. Provides rollback without treating compilation as checking.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 2: preserve providers during runtime upgrade
Prompt: "Upgrade our existing Meteor app to 3.6-beta.1 but keep the working TypeScript provider. meteor types exits zero saying zodern:types is installed. Did it generate native types, and should we remove the provider?"
Prompt: "Upgrade our existing Meteor app to 3.6 but keep the working TypeScript provider. meteor types exits zero saying zodern:types is installed. Did it generate native types, and should we remove the provider?"
Pass if the agent: Keeps the explicit existing-provider preference, explains successful skip and direct dependency precedence, and distinguishes runtime upgrade, native generation and type-checking. Does not remove working providers.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 3: native generation failure
Prompt: "After removing direct zodern:types on 3.6-beta.1, meteor types fails. Should we replace paths, uninstall @types/meteor and delete .meteor/local/types to finish?"
Prompt: "After removing direct zodern:types on 3.6, meteor types fails. Should we replace paths, uninstall @types/meteor and delete .meteor/local/types to finish?"
Pass if the agent: Stops provider switching until generation succeeds, preserves old output and config, restores the removed package for rollback and reports nonzero generation failure. Does not delete fallback output or invoke a destructive reset.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 4: native scoped imports and mixed providers
Prompt: "After beta.1 native opt-in, meteor/random resolves but meteor/react-meteor-data/suspense fails. Our tsconfig excludes .meteor and extends a config with types [meteor,node]. Why do we also see duplicate declarations?"
Prompt: "After 3.6 native opt-in, meteor/random resolves but meteor/react-meteor-data/suspense fails. Our tsconfig excludes .meteor and extends a config with types [meteor,node]. Why do we also see duplicate declarations?"
Pass if the agent: Checks explicit native barrel in files despite exclude, keeps paths mapped to packages/* rather than the barrel, checks installed package declaration coverage and removes overlapping ambient meteor provider while preserving node and unrelated config. Does not blame all failures on preserveSymlinks.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 5: TypeScript 7 configuration during native adoption
Prompt: "After selecting Meteor 3.6-beta.1 native declarations, our existing TypeScript 7 app reports TS5102 for baseUrl copied from the guide. Should we downgrade TypeScript or copy moduleResolution: node as well? The Rspack config already has TsCheckerRspackPlugin."
Prompt: "After selecting Meteor 3.6 native declarations, our existing TypeScript 7 app reports TS5102 for baseUrl copied from the guide. Should we downgrade TypeScript or copy moduleResolution: node as well? The Rspack config already has TsCheckerRspackPlugin."
Pass if the agent preserves the compiler and checker, removes the unsupported
baseUrl while preserving alias semantics through relative paths, keeps a
@@ -43,7 +43,7 @@ or claim the configured checker does not run just because SWC itself strips type
## Case 6: generated barrel hides application source
Prompt: "After beta.1 native opt-in we added files: [.meteor/types/packages.d.ts] to a tsconfig that previously had neither files nor include. tsc now passes even with a wrong assignment in imports/probe.ts. Are native types working?"
Prompt: "After 3.6 native opt-in we added files: [.meteor/types/packages.d.ts] to a tsconfig that previously had neither files nor include. tsc now passes even with a wrong assignment in imports/probe.ts. Are native types working?"
Pass if the agent checks the effective source set with local tsc --listFiles,
explains that adding files removed implicit inclusion, and preserves the
@@ -65,7 +65,7 @@ untracked, and not prescribe native `meteor types` on 3.5.2.
## Case 8: JavaScript IntelliSense without conversion
Prompt: "Our JavaScript-only Meteor 3.6-beta.1 app wants IntelliSense for meteor/random. There is no root tsconfig or jsconfig and no direct zodern:types. We do not want a TypeScript conversion, a bundler change or JS lint errors."
Prompt: "Our JavaScript-only Meteor 3.6 app wants IntelliSense for meteor/random. There is no root tsconfig or jsconfig and no direct zodern:types. We do not want a TypeScript conversion, a bundler change or JS lint errors."
Pass if the agent adds a root jsconfig, generates native declarations before
selecting their paths, includes native adapters/barrel and intended JS source,
@@ -74,7 +74,7 @@ and CI error checking optional and does not convert source or add Rspack.
## Case 9: missing root configuration
Prompt: "On 3.6-beta.1, meteor types says there is nothing to do. We only have tsconfig files under imports/ui and packages. Should we delete .meteor/local or run meteor reset?"
Prompt: "On Meteor 3.6, meteor types says there is nothing to do. We only have tsconfig files under imports/ui and packages. Should we delete .meteor/local or run meteor reset?"
Pass if the agent checks for an appropriate root config, preserves nested
project ownership, reruns generation, and checks real output. It does not
@@ -120,16 +120,51 @@ api.types exists on every Meteor 3 release.
## Case 14: Native declaration layout recovery
Prompt: "Our beta.1 native generated declarations lose a package relative import and nested ambient declaration path. The package ships those files. We can update to beta.3. Should we flatten or edit .meteor/types?"
Prompt: "After upgrading to Meteor 3.6, stale native generated declarations lose a package relative import and nested ambient declaration path. The package ships those files. Should we flatten or edit .meteor/types?"
Pass if the agent checks exact tool/packages, uses beta.3 layout corrections then explicit meteor types and local compiler/source inclusion checks, preserving provider config and unedited generated files.
Pass if the agent checks exact tool/packages, regenerates with the 3.6 tool using meteor types and local compiler/source inclusion checks, preserving provider config and unedited generated files.
Fail if it patches generated files, adds any/skipLibCheck to hide errors, or promises the generator recreates unshipped files.
## Case 15: Structural subscription handles
Prompt: "On beta.3 native declarations we read subscriptionId from Meteor.subscribe and DDP.connect(...).subscribe. Our wrapper returns only ready and stop and is typed Meteor.SubscriptionHandle. Must we invent an ID for it?"
Prompt: "On Meteor 3.6 native declarations we read subscriptionId from Meteor.subscribe and DDP.connect(...).subscribe. Our wrapper returns only ready and stop and is typed Meteor.SubscriptionHandle. Must we invent an ID for it?"
Pass if the agent distinguishes concrete SubscriptionHandleWithId returns from structural SubscriptionHandle, keeps wrapper valid without synthetic IDs, checks resolved declarations/regeneration and notes older providers may differ.
Fail if it makes subscriptionId mandatory for all structural handles, uses any or treats type corrections as new runtime APIs.
## Case 16: new native scaffold versus an upgraded legacy app
Prompt: "We created TypeScript and Svelte apps with Meteor 3.6. Should we add zodern:types and @types/meteor because the templates need them? A separate app upgraded from 3.5.2 already uses those providers. What happens after cloning the new apps?"
Pass if the agent identifies native defaults and creation-time generation for
the new apps, preserves the upgraded app's working legacy provider, and runs
meteor types before checking a fresh clone. It preserves app source inclusion
and separates generation from type-checking.
Fail if it adds competing legacy providers to the new scaffolds, migrates the
existing app unasked, or claims normal startup always regenerates native types.
## Case 17: stylesheet imports with TypeScript 6 or newer
Prompt: "Our existing Meteor 3.6 app reports TS2882 for import './App.css' after moving to TypeScript 6. Should we edit .meteor/types or disable all checking?"
Pass if the agent inspects noUncheckedSideEffectImports, offers the template's
false setting or included stylesheet module declarations, preserves other
compiler settings, and checks the affected source with the local compiler.
Fail if it patches generated Meteor declarations, treats SWC success as a
type-check, or disables unrelated checks.
## Case 18: Native user service augmentation
Prompt: "Our Meteor 3.6 app uses native declarations. user.services.internalSso is unknown; the stored service has subject and tenantId strings and is optional. Add the types without editing .meteor/types or replacing services with any."
Pass if the agent uses an app-owned included declaration that augments Meteor.UserServices through meteor/meteor, keeps optional service/access and fields typed, verifies inclusion and compiler results. Fail if it replaces Meteor.User.services, edits generated output or publishes secrets for typing.
## Case 19: Legacy user service near miss
Prompt: "We stay on Meteor 3.5.3 with working @types/meteor. Should we run meteor types and copy the 3.6 native UserServices augmentation to fix our custom service field?"
Pass if the agent preserves the legacy provider, says native generation is unavailable and inspects that provider's augmentation contract. Fail if it forces a release/provider switch or assumes the native interface exists.
@@ -1,6 +1,6 @@
# JavaScript IntelliSense
Native Meteor-import declarations require Meteor 3.6-beta.1 or later; on an
Native Meteor-import declarations require Meteor 3.6 or later; on an
earlier Meteor 3 app retain the existing legacy declarations. A JS app does
not need a TypeScript conversion or Rspack migration to obtain editor types.
@@ -9,7 +9,7 @@ already owns these files, configure that project instead of creating a
competing `jsconfig.json`. Otherwise create or merge a root `jsconfig.json`,
retaining the app's source patterns, aliases, resolver and exclusions.
For beta.1 native opt-in, follow the generation-before-switch and rollback
For Meteor 3.6 native opt-in, follow the generation-before-switch and rollback
sequence in [declaration providers](declaration-providers.md). The root config
must exist before `meteor types`; a direct `zodern:types` still causes a
successful skip. Once generation succeeds, merge:
+8 -9
View File
@@ -18,7 +18,7 @@ metadata:
area: migration
tagline: "Migrate a Meteor 2.x app to 3.x (`callAsync`, async Mongo, Fibers removal, Blaze reactivity, Express 5, Atmosphere resolution)."
bundle: ["migration"]
docs_synced_at: "2026-09-23"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -31,6 +31,9 @@ in phases. Do not flip the framework version flag first.
## Recommended strategy
For Meteor 3.6, [prepare retained local data](references/other-breaking-changes.md#local-database-before-meteor-36)
under the previous release before updating.
1. Update the project to the latest 2.x release.
2. Run the app with `WARN_WHEN_USING_OLD_API=true meteor run`. The console
logs every sync-API call that needs an async sibling, giving you a
@@ -48,7 +51,7 @@ in phases. Do not flip the framework version flag first.
pin `api.versionsFrom(['2.x', '3.0'])`. See
`references/package-triage.md`. Save `.meteor/versions` and npm lockfile
checkpoints so package-major changes remain distinguishable from Meteor.
5. Upgrade to Meteor 3.x.
5. Upgrade to the selected Meteor 3.x release.
6. Sweep implicit globals; rewrite to `const` or `export` / `import`.
See `references/module-system.md`.
7. Audit Blaze helpers and `Tracker.autorun` blocks for lost reactivity
@@ -66,7 +69,7 @@ in phases. Do not flip the framework version flag first.
`references/other-breaking-changes.md`.
10. For TypeScript projects, inspect the target release and existing declaration
provider. Keep working `@types/meteor` or `zodern:types` setups. Meteor
3.6-beta.1 adds explicit native opt-in through `meteor types`; earlier
3.6 adds explicit native opt-in through `meteor types`; earlier
releases retain the legacy workflow. See
`references/typescript-migration.md`, then use `meteor-typescript` for
provider changes and checking.
@@ -141,9 +144,5 @@ in phases. Do not flip the framework version flag first.
`react-migration.md`, `eval-cases.md`.
- Current Meteor React integration after the upgrade: `meteor-react`.
## Further reading (optional)
Real-world migration write-ups for context, not for fixing specific
issues. The symptom router above is sufficient on its own. Open
`references/community-case-studies.md` only when the user asks for
narrative case studies or wants to calibrate effort and timeline.
For requested case studies, read
`references/community-case-studies.md`; use the symptom router for fixes.
@@ -12,6 +12,14 @@ returns a `Promise`.
| `Meteor.call('m', a, b)` (fire-and-forget) | `Meteor.callAsync('m', a, b).catch(console.error)` |
| `Meteor.apply('m', args, opts, cb)` | `await Meteor.applyAsync('m', args, opts)` |
Keep the background call's `.catch`: the client async-stub queue attaches
internal rejection handlers, so an ignored `callAsync` can fail without a
console error or `unhandledrejection`. If later UI depends on success, await
inside `try`/`catch` and confirm only after resolution. Returning the Promise
is sufficient only when its caller handles rejection. Server logging and
derived Promises have separate behavior; do not assume all errors are silent.
See the [client queue](https://github.com/meteor/meteor/blob/4c94e92457c06cb73082a8d59908257bf6b518d1/packages/ddp-client/client/queue_stub_helpers.js).
## Server-side rewrites
On the server, `Meteor.call` runs inline (no DDP round trip). Use `callAsync`
@@ -409,32 +409,59 @@ offers the Linux and macOS shell installer on Windows.
## Case 29: native provider handoff during runtime migration
Prompt: "Migrate our Meteor 2 TypeScript app to 3.6-beta.1, including async APIs and an explicit native declaration switch. Which workflow owns each part?"
Prompt: "Migrate our Meteor 2 TypeScript app to 3.6, including async APIs and an explicit native declaration switch. Which workflow owns each part?"
Pass if the agent keeps runtime/async migration in this skill, preserves the
provider through that upgrade, then hands explicit native adoption to
meteor-typescript. It checkpoints dependencies and config and stops the
provider switch if generation fails. It must not replace async migration with
only a type configuration edit or select native declarations before beta.1.
only a type configuration edit or select native declarations before 3.6.
## Case 30: preserve providers during runtime upgrade
Prompt: "Upgrade our existing Meteor app to 3.6-beta.1 but keep the working TypeScript provider. meteor types exits zero saying zodern:types is installed. Did it generate native types, and should we remove the provider?"
Prompt: "Upgrade our existing Meteor app to 3.6 but keep the working TypeScript provider. meteor types exits zero saying zodern:types is installed. Did it generate native types, and should we remove the provider?"
Pass if the agent: Keeps the explicit existing-provider preference, explains successful skip and direct dependency precedence, and distinguishes runtime upgrade, native generation and type-checking. Does not remove working providers.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 33: native Node boundary during upgrade
Prompt: "For our deliberate Meteor 2 to 3.6-beta.1 migration, can the existing Node 24 production image stay unchanged?"
Prompt: "For our deliberate Meteor 2 to 3.6 migration, the target project's meteor node/npm commands report 26.13.0/11.20.0. Can the existing Node 24 production image stay unchanged?"
Pass if the agent: Uses Node 26.8.2/npm 11.19.0 for beta.1 after checking target runtime, rebuilds native modules and hands deployment details to meteor-deployment. Retains older-release mappings rather than generalizing Node 26 to all Meteor 3.
Pass if the agent: Uses Node 26.13.0/npm 11.20.0 for 3.6 after checking target runtime, rebuilds native modules and hands deployment details to meteor-deployment. Retains older-release mappings rather than generalizing Node 26 to all Meteor 3.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 36: standalone declarations near miss
Prompt: "The app already runs on Meteor 3.6-beta.1. Only meteor/* editor types and our tsc check are broken; no framework or bundler upgrade is requested."
Prompt: "The app already runs on Meteor 3.6. Only meteor/* editor types and our tsc check are broken; no framework or bundler upgrade is requested."
Pass if the agent chooses meteor-typescript for provider/resolution/checking
and does not start a Meteor 2-to-3 conversion or bundler migration.
## Case 37: Meteor 2 local database to 3.6
Prompt: "We are preparing a Meteor 2 app for Meteor 3.6 with valuable local data on a MongoDB server older than 7. Async conversion is planned. Can we just change the Meteor release then set FCV 7.0?"
Pass if the agent keeps async/package migration stages, requires verified backup, old server/version/FCV inspection and intermediate Mongo major upgrades before MongoDB 8; stops old app before update and rejects a release rollback as database rollback.
Fail if it starts 3.6 against retained older data, runs FCV 7.0 on an incompatible server or suggests reset --db as migration.
## Case 38: Provider choice and local data before framework upgrade
Prompt: "We are migrating a Meteor 2 TypeScript app to Meteor 3.6, but want to keep its existing type provider and preserve the local database. Production uses an external MONGO_URL. What migration order should we follow? Should we run meteor types automatically or update Meteor before checking the old Mongo version?"
Pass if the agent preserves declaration choice, performs existing async/package migration work, inspects and backs up the local DB before updating, handles required intermediate Mongo upgrades/FCV instead of treating an older server as 7, and separates external DB management. Fail if it requires native generation, removes providers or deletes local data.
## Case 39: migrated fire-and-forget call hides rejection
Prompt: "While migrating our client to Meteor 3.5.1, I replaced a callback
Meteor.call with `Meteor.callAsync('orders.create', input); showSaved();`.
The server rejects with Meteor.Error, but no unhandledrejection appears.
Can I remove the migration example's catch and rely on our global listener?"
Pass if the agent keeps explicit rejection ownership, explains the client's
internal queue handlers, and awaits the result before showing confirmed
success. It preserves a catch for intentional background work and does not
claim the server always logs or every derived Promise is handled. Fail if it
approves the listener as a replacement for handling this call.
@@ -89,6 +89,33 @@ meteor reset --db # clears build cache AND local Mongo
Update any CI or development scripts that rely on `meteor reset` wiping
the database.
## Local database before Meteor 3.6
Meteor 3.6 ships MongoDB 8.0.29 locally. Before updating or running
that release against existing data, back up and verify recovery. Start with
the previous release, connect with `meteor mongo` (using `mongosh`), and check:
```javascript
db.version()
db.adminCommand({ getParameter: 1, featureCompatibilityVersion: 1 })
```
MongoDB 8 requires MongoDB 7 with FCV `"7.0"`. A Meteor 2 database may be
older: follow intermediate MongoDB major upgrades, not a direct jump to 8.
On MongoDB 7, if FCV is older, set it on the primary after backup and recheck:
```javascript
db.adminCommand({ setFeatureCompatibilityVersion: "7.0", confirm: true })
```
Stop the app before selecting 3.6. Fresh databases do not need old-data
preparation; external `MONGO_URL` upgrades belong to the provider/admin.
`meteor reset` preserves data, `--db` deletes it, and reverting Meteor is
not a database rollback. FCV `7.0` alone does not guarantee a supported
MongoDB 8-to-7 binary downgrade. Use `meteor-cli-installation` for host requirements
and the [official preparation guide](https://docs.meteor.com/about/install#updating-local-database).
An earlier constrained release keeps its own database/runtime requirements.
## Release-specific Node baseline
Meteor 3 does not have one Node baseline across every minor release:
@@ -97,12 +124,13 @@ Meteor 3 does not have one Node baseline across every minor release:
|----------------|--------------|
| 3.0 | Node 20 |
| 3.1 through 3.4 | Node 22 |
| 3.5.x and 3.6-beta.0 | Node 24 |
| 3.6-beta.1 | Node 26.8.2 (npm 11.19.0) |
| 3.5.x | Node 24 |
| 3.6.x | Node 26 |
Run `meteor node --version` in the target app and use that version in CI,
native dependency builds, and container images. Audit `engines.node` and
native packages whenever the target Meteor release changes Node major.
Use `meteor-deployment` for container rollout and environment configuration.
## "Cannot enlarge memory array" during `meteor update`
@@ -201,3 +229,4 @@ bundle earlier Node majors as shown above.
---
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/v3-migration-docs/breaking-changes/index.md
Source: https://github.com/meteor/meteor/blob/devel/v3-docs/docs/about/install.md
@@ -8,8 +8,8 @@ configs, including `extends`.
| Target and intent | Migration decision |
|---|---|
| Earlier Meteor 3 release, including 3.5.2 | Native `meteor types` is unavailable. Preserve working `@types/meteor` or `zodern:types` and verify with the app's existing local checker. |
| Meteor 3.6-beta.1 runtime upgrade only | Keep the provider, compiler and config. The upgrade does not select native declarations. |
| Explicit native adoption on beta.1 | Checkpoint providers/config and use `meteor-typescript` for the separate declaration migration, editor resolution and CI workflow. |
| Meteor 3.6 runtime upgrade only | Keep the provider, compiler and config. The upgrade does not select native declarations. |
| Explicit native adoption on 3.6 | Checkpoint providers/config and use `meteor-typescript` for the separate declaration migration, editor resolution and CI workflow. |
A direct `zodern:types` makes `meteor types` skip successfully; exit zero
alone is not evidence of generation. When explicitly switching, remove only
+16 -63
View File
@@ -2,7 +2,7 @@
name: migrate-to-rspack
description: >
Use when migrating an existing Meteor app to Rspack (Meteor 3.4+), or
upgrading Rspack 1 to 2 on Meteor 3.6 beta. Triggers on nested imports,
upgrading Rspack 1 to 2 on Meteor 3.6. Triggers on nested imports,
mainModule entry points, server-only apps, replacing fourseven:scss /
meteor/less / coffeescript / jorgenvatle:vite / zodern:melte with loaders,
Svelte/TypeScript preprocessing or Lingui SWC plugin failures after upgrade,
@@ -21,7 +21,7 @@ metadata:
area: migration
tagline: "Migrate an existing Meteor 3 app to the Rspack bundler integration (`mainModule`, replacing legacy build plugins with loaders)."
bundle: ["migration"]
docs_synced_at: "2026-09-23"
docs_synced_at: "2026-11-13"
license: MIT
---
@@ -30,9 +30,8 @@ license: MIT
Rspack compiles app code; Meteor builds Atmosphere packages and assembles the
bundle. Keep packages, but audit their architecture and browser dependencies.
Prerequisite: Meteor 3.4+. Recommended before activation: enable
`"meteor": { "modern": true }` and fix Babel fallbacks. For setup and helpers,
use `meteor-modern-build-stack`.
Meteor 3.4+ required. Prefer enabling `"meteor": { "modern": true }` and
fixing Babel fallbacks first. For setup/helpers, use `meteor-modern-build-stack`.
Match `@meteorjs/rspack` to the Meteor release, not to
`@rspack/core` or `@rspack/cli`:
@@ -43,15 +42,14 @@ Match `@meteorjs/rspack` to the Meteor release, not to
| 3.4.1 and 3.5 | `1.1.0` | `2.0.1` | Adds v2 helpers and inherited `TOOL_NODE_FLAGS`. |
| 3.5.1 | `1.2.0` | `2.1.0` | Revised client polyfills and extension discovery. |
| 3.5.2 | `1.3.0` | `2.2.0` | Dependency diagnostics, mode isolation, full-app/TLA and cache fixes. |
| 3.6-beta.0 | `1.4.0-beta360.0` | `3.0.0-beta.1` | Rspack 2.2.0 and workspace-aware installs. |
| 3.6-beta.1 | `1.4.0-beta360.1` | `3.0.0-beta.2` | TypeScript rebuild-loop fix; Node 26.8.2. |
| 3.6 | `1.4.0` | `3.0.0` | Rspack core/CLI 2.2.7+, dev server 2.2.1+, React Compiler, workspace installs and separate architecture graphs. |
Inspect `.meteor/versions`, `package.json`, and the lockfile: Atmosphere,
Meteor npm integration and Rspack core versions are independent. With automatic
installs enabled, startup aligns dependencies; review and commit the changes.
`meteor update --npm` is an alternative. Keep the release pairing.
Already using Rspack? For the Meteor 3.6 beta upgrade, follow
Already using Rspack? For the Meteor 3.6 upgrade, follow
[Rspack 1 to 2](references/rspack-2-upgrade.md) and its toolchain checks.
Keep valid entries/configuration; skip the first-activation steps below.
@@ -102,39 +100,14 @@ Without `mainModule`, Rspack has no entry. Meteor's eager-loading model
does not apply: Rspack does not auto-discover modules. See
`references/framework-and-css.md` for CSS and HTML routing.
For Meteor 3.6 separate legacy/native entries and earlier-version limits,
read [architecture preservation](references/code-migrations.md#architecture-preservation).
## Required: no nested imports in app code
```javascript
// app code: NOT allowed under Rspack
if (condition) {
import { a as b } from "./c";
console.log(b);
}
```
Three fixes:
```javascript
// 1. Move to top
import { a as b } from "./c";
if (condition) console.log(b);
// 2. Dynamic import (standardized, supported)
if (condition) {
const { a: b } = await import("./c");
console.log(b);
}
// 3. require (CommonJS interop)
if (condition) {
const { a: b } = require("./c");
console.log(b);
}
```
Diagnose with verbose mode and look for `(app)` files failing with
`Error: 'import' and 'export' cannot be used outside of module code`.
`(package)` failures are fine; Atmosphere packages are not bundled by Rspack.
Apply the [nested-import rewrites](references/code-migrations.md#nested-imports)
to app code. Adapt callers when using Promise-returning `import()`;
Atmosphere package code stays on Meteor's bundler.
## Required: reserve build folders
@@ -173,36 +146,16 @@ See `references/framework-and-css.md`.
| `meteor/coffeescript` | `coffee-loader` (optionally chained with `swc-loader`). |
| `zodern:melte` (Svelte) | Official Rspack Svelte loader. |
| `jorgenvatle:vite` (Vue/Solid) | Native Rspack Vue/Solid loaders. |
| `babel-plugin-react-compiler` | SWC on the 3.6 beta pairing; earlier integrations retain Babel. See framework reference. |
| `zodern:types` | Keep the working declaration provider during bundler migration; beta.1 native adoption is a separate explicit choice. |
| `babel-plugin-react-compiler` | SWC on the 3.6 pairing; earlier integrations retain Babel. See framework reference. |
| `zodern:types` | Keep the working declaration provider during bundler migration; 3.6 native adoption is a separate explicit choice. |
Plugins acting only on Atmosphere package files can stay. Plugins acting on
app-folder files (entry folder excluded) must move to Rspack.
## CommonJS default-import interop
Old Meteor accepted `import x from "some-cjs-lib"` for a `module.exports = ...`
package. Rspack + SWC do not by default. Two options:
```javascript
// preferred: switch to namespace import
import * as x from "some-cjs-lib";
```
Or restore interop in `.swcrc`:
```json
{
"module": {
"type": "commonjs",
"noInterop": false,
"importInterop": "node"
}
}
```
This emits CommonJS, defeating tree-shaking and static analysis app-wide.
Migrate imports instead unless you cannot.
Prefer namespace imports. For the interop override and its app-wide
CommonJS/tree-shaking cost, read `references/code-migrations.md`.
## CI and Docker
@@ -22,6 +22,17 @@ loads every file eagerly and Rspack has nothing to anchor on.
Loading order belongs in the entry file. Imports cascade from there. See
[Modular application structure](https://docs.meteor.com/packages/modules).
### Architecture preservation
On the 3.6 pairing, preserve explicit `legacy`, `web.browser`,
`web.browser.legacy` and `web.cordova` entries and matching test entries.
They compile separately through the same config; `false` disables an app
entry, not package code. Use `meteor-modern-build-stack`'s architecture
reference for config flags, legacy npm transpilation and program selection.
Earlier Meteor integrations lack this complete flow. Do not collapse
an intentional legacy notice into the modern app or promise ES5 alone makes
all dependencies compatible.
### Server-only apps
If the app has no client UI (API servers, microservices, workers), set
@@ -242,28 +242,28 @@ helpers and build-time dev dependencies, and verifies a clean immutable build.
## Case 24: Rspack 2 config migration
Prompt: "Upgrade our Meteor 3.5.2 Rspack app to 3.6-beta.0. Its config uses experiments.css, experiments.cache, output.libraryTarget, webpack-merge, and .swcrc. What must change?"
Prompt: "Upgrade our Meteor 3.5.2 Rspack app to 3.6. Its config uses experiments.css, experiments.cache, output.libraryTarget, webpack-merge, and .swcrc. What must change?"
Pass if the agent: Uses the beta package pairing, removes obsolete CSS experiment, moves cache top-level, reviews library.type while preserving Meteor output, replaces webpack-merge with rspack-merge, and preserves Meteor wrapper .swcrc discovery despite raw Rspack 2 behavior.
Pass if the agent: Uses the Meteor 3.6 package pairing, removes obsolete CSS experiment, moves cache top-level, reviews library.type while preserving Meteor output, replaces webpack-merge with rspack-merge, and preserves Meteor wrapper .swcrc discovery despite raw Rspack 2 behavior.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 25: npm peer transition warning
Prompt: "On Meteor 3.6-beta.0 autoInstallDeps is false and installed Rspack core/CLI/React Refresh are 1.x. The printed npm update command hits old peer constraints. Should we set legacy-peer-deps globally?"
Prompt: "On Meteor 3.6 autoInstallDeps is false and installed Rspack core/CLI/React Refresh are 1.x. The printed npm update command hits old peer constraints. Should we set legacy-peer-deps globally?"
Pass if the agent: Rejects a global bypass, verifies the coordinated Rspack 2 transition, permits a scoped npm --legacy-peer-deps invocation for confirmed old peers, and notes the beta manual warning may omit the flag. Does not apply the flag to pnpm or Yarn.
Pass if the agent: Rejects a global bypass, verifies the coordinated Rspack 2 transition, permits a scoped npm --legacy-peer-deps invocation for confirmed old peers, and checks the printed command already includes the flag. Does not apply the flag to pnpm or Yarn.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 26: preserve an existing Workbox migration
Prompt: "We are moving an existing Meteor app to the 3.6 beta Rspack pairing. It uses a Workbox-generated service worker. Must we discard it for the new Blaze PWA scaffold?"
Prompt: "We are moving an existing Meteor app to the 3.6 Rspack pairing. It uses a Workbox-generated service worker. Must we discard it for the new Blaze PWA scaffold?"
Pass if the agent: Treats Workbox as optional but valid, inventories generation and cache/update behavior, proves migration parity, and does not overwrite the existing app or promise offline data.
Fail if it contradicts these boundaries or invents unsupported commands.
## Case 27: automatic upgrade of an existing Rspack app
Prompt: "Our existing Meteor 3.5.2 app already uses Rspack and automatic npm installation is enabled. Upgrade to 3.6-beta.0. Must we run meteor update --npm separately, re-add rspack, or regenerate our working config?"
Prompt: "Our existing Meteor 3.5.2 app already uses Rspack and automatic npm installation is enabled. Upgrade to 3.6. Must we run meteor update --npm separately, re-add rspack, or regenerate our working config?"
Pass if the agent gives the release update then normal `meteor run`, explains
startup's paired dependency update, and reviews/commits the resulting version
@@ -271,9 +271,9 @@ files and authoritative lockfile. It keeps valid entries/configuration and
checks custom tooling separately. Fail if it requires the extra npm command,
re-adds Rspack or promises automatic rewriting of all custom configuration.
## Case 28: beta startup with deliberate auto-install opt-out
## Case 28: Meteor 3.6 startup with deliberate auto-install opt-out
Prompt: "We are upgrading our Rspack app to Meteor 3.6-beta.0, but meteor.autoInstallDeps is false and CI must never rewrite dependencies. Will normal startup still upgrade everything? Give the local preparation and CI boundary."
Prompt: "We are upgrading our Rspack app to Meteor 3.6, but meteor.autoInstallDeps is false and CI must never rewrite dependencies. Will normal startup still upgrade everything? Give the local preparation and CI boundary."
Pass if the agent respects the opt-out, prepares the coordinated dependency
set locally, reviews and commits changes, then uses the existing manager's
@@ -282,9 +282,9 @@ frozen install with build-time dev dependencies. It explains that explicit
silently enables auto-install, mutates locks in CI or treats opt-out as success
despite unresolved required dependencies.
## Case 29: Svelte preprocessing after the beta upgrade
## Case 29: Svelte preprocessing after the Meteor 3.6 upgrade
Prompt: "After upgrading to Meteor 3.6-beta.0/Rspack 2, a Skeleton Svelte component fails during TypeScript preprocessing. We use svelte-loader and svelte-preprocess with PostCSS. Our tsconfig has extends and path aliases. What can we learn from Complex Todos without replacing our build setup?"
Prompt: "After upgrading to Meteor 3.6/Rspack 2, a Skeleton Svelte component fails during TypeScript preprocessing. We use svelte-loader and svelte-preprocess with PostCSS. Our tsconfig has extends and path aliases. What can we learn from Complex Todos without replacing our build setup?"
Pass if the agent checks resolved compiler/loader/preprocessor versions and
the first error, describes the example's Svelte update and TypeScript dev
@@ -296,7 +296,7 @@ migrates the app to Vite/SvelteKit.
## Case 30: Lingui plugin major differs from the application toolchain
Prompt: "On Meteor 3.6-beta.0 with @rspack/core 2.2.0, our builtin:swc-loader fails loading @lingui/swc-plugin 5.11.0. The other Lingui tools are 5.x. Should I update only @swc/core, remove the plugin, or upgrade every Lingui package to 6? Notes Offline changed the plugin to 6.7.0."
Prompt: "On Meteor 3.6 with @rspack/core 2.2.7, our builtin:swc-loader fails loading @lingui/swc-plugin 5.11.0. The other Lingui tools are 5.x. Should I update only @swc/core, remove the plugin, or upgrade every Lingui package to 6? Notes Offline changed the plugin to 6.7.0."
Pass if the agent identifies Rspack's embedded SWC as the relevant host,
checks resolved plugin/runtime compatibility, and treats the example's
@@ -316,7 +316,7 @@ version as a Meteor-wide floor or silently moves this app to Rspack 2.
## Case 32: raw Rspack 2 advice versus Meteor configuration
Prompt: "The Rspack 2 guide says its packages are pure ESM, dev-server is explicit, and resolve.roots defaults to empty. After upgrading our Meteor app to 3.6-beta.0, should I replace our working CommonJS rspack.config.js with a standalone ESM config and rebuild all resolution rules? Our host CI image still uses Node 18."
Prompt: "The Rspack 2 guide says its packages are pure ESM, dev-server is explicit, and resolve.roots defaults to empty. After upgrading our Meteor app to 3.6, should I replace our working CommonJS rspack.config.js with a standalone ESM config and rebuild all resolution rules? Our host CI image still uses Node 18."
Pass if the agent distinguishes host Node from Meteor's build runtime,
checks Rspack 2's supported Node floor, preserves valid Meteor CommonJS
@@ -327,9 +327,9 @@ converts the project to ESM unconditionally or ignores the old host runtime.
Also fail if it calls host Node 18 the proven build blocker without checking
whether the command uses Meteor's supported bundled Node instead.
## Case 33: beta feedback without overstating validation
## Case 33: release feedback without overstating validation
Prompt: "All five examples in PR #50 started, so can we say every plugin and offline/production behavior is verified? My beta app still fails in a custom loader. Help me prepare feedback; do not post anything."
Prompt: "All five examples in PR #50 started, so can we say every plugin and offline/production behavior is verified? My Meteor 3.6 app still fails in a custom loader. Help me prepare feedback; do not post anything."
Pass if the agent limits the PR claim to reported migration/startup, requires
the affected feature and applicable production/offline checks, and drafts a
@@ -341,7 +341,7 @@ posts a report.
## Case 34: new-app setup is not a migration
Prompt: "I'm creating a new Meteor 3.6-beta.0 app, not upgrading an existing one. I need the initial Rspack setup and an explanation of defineConfig versus extendConfig. Which skill owns this?"
Prompt: "I'm creating a new Meteor 3.6 app, not upgrading an existing one. I need the initial Rspack setup and an explanation of defineConfig versus extendConfig. Which skill owns this?"
Pass if the agent selects `meteor-modern-build-stack` for setup/configuration
helpers, reserving `migrate-to-rspack` for existing-app migration compatibility.
@@ -358,9 +358,31 @@ path and applicable development/production checks before a broader claim.
Fail if it declares all plugin 5.x versions broken on Rspack 2, forces the
example pin, or dismisses a different project's failure from this one smoke.
## Case 36: beta.1 upgrade preserves types provider
## Case 36: 3.6 upgrade preserves types provider
Prompt: "Upgrade our existing Rspack app from Meteor 3.5.2 to 3.6-beta.1. Automatic dependency installs are enabled and our zodern:types setup works. Must we migrate types, run update --npm, or rebuild native npm dependencies?"
Prompt: "Upgrade our existing Rspack app from Meteor 3.5.2 to 3.6. Automatic dependency installs are enabled and our zodern:types setup works. Must we migrate types, run update --npm, or rebuild native npm dependencies?"
Pass if the agent: Uses update --release 3.6-beta.1 then normal startup, checks the beta.1 pairing and lockfile, preserves the current declaration provider and valid config, and verifies Node 26/native module compatibility. Does not mandate a second update --npm or native declaration migration.
Pass if the agent: Uses update --release 3.6 then normal startup, checks the 3.6 pairing and lockfile, preserves the current declaration provider and valid config, and verifies Node 26/native module compatibility. Does not mandate a second update --npm or native declaration migration.
Fail if it contradicts these boundaries or invents unsupported APIs.
## Case 37: Cumulative 3.6 upgrade
Prompt: "Plan our Rspack 1 app upgrade from Meteor 3.5.2 to 3.6. We keep local data on MongoDB 7 FCV 6.0, use npm with an immutable CI lockfile, and want to retain zodern:types."
Pass if the agent prepares backup and MongoDB 7 FCV 7.0 before upgrade, uses 3.6 dependency pairing, reviews local lockfile/native Node 26 rebuilds and respects working provider and immutable CI.
Fail if it starts the new database first, deletes data, uses an earlier integration dependency set or forces native declarations.
## Case 38: Preserve architecture migration intent
Prompt: "We are migrating an existing 3.6 app to its paired Rspack integration. mainModule has client, legacy for an unsupported-browser notice, and web.cordova: false. Our testModule also has a legacy entry. What must the migration preserve?"
Pass if the agent keeps explicit architecture graphs and false semantics, uses the build owner for shared config/transpilation, verifies legacy test/program selection and actual engine limits.
Fail if it collapses legacy into client, says false removes all package code, or treats a modern headless test as legacy coverage.
## Case 39: 3.6 legacy migration and older pairing
Prompt: "Our existing Rspack app moves to Meteor 3.6 and needs separate legacy browser and Cordova entries/tests. An older app stays on 3.5.2. Can we use Meteor.isLegacy at runtime or a rspack.legacy.config.js, and can a normal modern-browser CI run validate both?"
Pass if the agent reconciles both 3.6 integration packages, keeps selection in architecture main/test maps and conditions in the config callback, verifies Cordova mapping and actual selected suites/production delivery, preserves older shared-client entry behavior, and rejects runtime/automatic-config-file inventions or modern-only proof.
@@ -18,7 +18,7 @@ skips adding React-only dependencies (no `react-refresh`). No extra config.
## React Compiler
On Meteor 3.6-beta.0's Rspack 2.2.0 / `@meteorjs/rspack@3.0.0-beta.1`
On Meteor 3.6's Rspack 2.2.7 / `@meteorjs/rspack@3.0.0`
pairing, prefer the built-in SWC compiler through `Meteor.extendSwcConfig`.
Use `meteor-react` for React 19 and React 17/18 target/runtime setup.
Earlier integrations retain a Babel loader scoped to `.jsx`/`.tsx`; Babel
@@ -156,7 +156,7 @@ and remove the workaround immediately after upgrading. Never ignore the active
Rspack build context.
If no CSS rule is present, Meteor keeps handling stylesheets the legacy
way. Meteor 3.6-beta.0's paired integration supplies a `css/auto` rule by
way. Meteor 3.6's paired integration supplies a `css/auto` rule by
default; inspect the effective rules before diagnosing duplicate CSS owners.
## CSS Modules
@@ -255,7 +255,7 @@ Skeleton: `meteor create --tailwind`.
## Service Worker
For an existing Workbox integration or a generated worker, use
`workbox-webpack-plugin`'s `GenerateSW`. Meteor 3.6-beta.0 also supplies a
`workbox-webpack-plugin`'s `GenerateSW`. Meteor 3.6 also supplies a
dependency-free Blaze worker via `meteor create --pwa`; use `meteor-blaze`
for that scaffold and preserve an existing worker when migrating. Neither
approach supplies offline data synchronization. For Workbox:
@@ -1,21 +1,29 @@
# Rspack 1 to 2 in Meteor
Use this branch for Meteor 3.6 beta. The current audited target is
`3.6-beta.1`, with `rspack@1.4.0-beta360.1` and
`@meteorjs/rspack@3.0.0-beta.2`. A deliberately pinned `3.6-beta.0` keeps
`rspack@1.4.0-beta360.0` and `@meteorjs/rspack@3.0.0-beta.1`; use the
requested release instead of silently changing the target.
Meteor 3.5.2 keeps `rspack@1.3.0`, `@meteorjs/rspack@2.2.0` and Rspack 1.x.
Do not force Rspack 2 into a constrained older release.
Use this workflow for Meteor 3.6. Commands target 3.6.1; preserve
an explicitly requested earlier release and its pairing from
[the skill's version table](../SKILL.md). Meteor 3.5.2 retains Rspack 1.x.
Meteor 3.4.4 and 3.5.5 also retain Rspack 1; their static-asset fixes do
not require migrating to Rspack 2.
## Upgrade the coordinated dependency set
1. Checkpoint `.meteor/release`, `.meteor/versions`, app/workspace manifests,
the authoritative lockfile and custom `rspack.config.*`.
Before 3.6's MongoDB 8 opens retained data, back up and verify recovery.
Under the previous release, check `db.version()` and FCV: MongoDB 7 needs
FCV `7.0`; older servers need intermediate major upgrades first.
If needed, set FCV on the MongoDB 7 primary using
`db.adminCommand({ setFeatureCompatibilityVersion: "7.0", confirm: true })`,
recheck, then stop the app. Check hosts against the
[database preparation guide](https://docs.meteor.com/about/install#updating-local-database).
External `MONGO_URL` upgrades are separate. `meteor reset --db` deletes data.
Neither reverting Meteor nor retaining FCV `7.0` guarantees a database
downgrade; use the verified recovery plan.
2. With default `meteor.autoInstallDeps` enabled, update then start normally:
```bash
meteor update --release 3.6-beta.1
meteor update --release 3.6.1
meteor run
```
@@ -26,18 +34,17 @@ Do not force Rspack 2 into a constrained older release.
dependencies explicitly in an authorized local workflow, then commit and
test a frozen install. `meteor update --npm` overrides the opt-out for that
invocation; do not put a lockfile-rewriting step in immutable CI.
3. The beta's required npm minimums are core/CLI/dev-server 2.2.0, Meteor integration
3.0.0-beta.2 on beta.1 (3.0.0-beta.1 on beta.0), SWC core 1.15.32,
helpers 0.5.23 and Rsdoctor 1.5.9.
Keep helpers in runtime dependencies, the bundler tools in dev dependencies.
Detected React adds refresh plugin 2.0.0 and refresh runtime 0.17.0.
Record the resolved versions: compatible newer patches can satisfy these
minimums without matching the original examples' lockfiles exactly.
4. With npm and installed Rspack 1.x peers, the automatic upgrade uses
`--legacy-peer-deps`. The beta's manual warning can omit it. If that exact
coordinated update is rejected for stale peers, use the flag for that
invocation, review the lockfile and validate the installed majors. Do not
use `--force`, a global peer bypass or a flag copied into pnpm/Yarn.
3. Use the [coordinated dependency table](../../meteor-modern-build-stack/references/meteor-3.6-workspaces.md#rspack-2-dependency-set):
integration 3.0.0, core/CLI 2.2.7, dev server 2.2.1, SWC core 1.16.2,
helpers 0.5.23 and Rsdoctor 1.6.4. Keep helpers in runtime dependencies
and bundler tools in dev dependencies. Detected React adds refresh plugin
2.0.2 and runtime 0.19.0. Add `swc-loader` only for an app-owned loader
path; the dependency manager does not select it. Compatible newer patches
can satisfy these minimums; record the actual locked versions.
4. With npm and installed Rspack 1.x peers, the automatic upgrade and manual
command use `--legacy-peer-deps` for the coordinated transition. Keep the
flag scoped to that invocation, review the lockfile and validate installed
majors. Do not use `--force`, a global peer bypass or the flag in pnpm/Yarn.
5. Keep pnpm/Yarn workspace ownership. Resolve the manager at the workspace
root, add dependencies from the nested Meteor app, and commit its manifest
plus the root lockfile. Preserve intentional local dependency protocols.
@@ -49,7 +56,7 @@ if none exists. It does not rewrite an existing `rspack.config.*` or migrate
every third-party loader/plugin. Inspect the effective merged configuration
before applying raw Rspack advice.
| Existing customization | Action on the beta pairing |
| Existing customization | Action on Meteor 3.6 |
|---|---|
| `experiments.css` | Remove the obsolete option; the integration already supplies CSS rules with `type: "css/auto"`. Test CSS Modules and loader output. |
| `experiments.cache` | Use top-level `cache`; normally retain Meteor's persistent-cache defaults or `Meteor.setCache(false)` for a measured diagnostic. |
@@ -63,7 +70,7 @@ Also check these [upstream migration boundaries](https://www.rspack.dev/guide/mi
| Surface | Migration check |
|---|---|
| Node and ESM | Rspack 2 requires Node `^20.19.0 \|\| >=22.12.0`. Meteor 3.6-beta.1 bundles Node 26.8.2, beta.0 bundles Node 24.15.0; host Node 18 alone does not prove a Meteor build incompatibility. Identify which binary actually invokes each tool before upgrading that runtime. Keep valid Meteor CommonJS configs/output despite pure-ESM Rspack packages. |
| Node and ESM | Rspack 2 requires Node `^20.19.0 \|\| >=22.12.0`. Meteor 3.6.x bundles Node 26; host Node 18 alone does not prove a Meteor build incompatibility. Identify which binary actually invokes each tool before upgrading that runtime. Keep valid Meteor CommonJS configs/output despite pure-ESM Rspack packages. |
| Dev server | `@rspack/dev-server` is now explicit; Meteor's dependency check supplies it. Review custom `devServer.proxy` and `watchFiles` against the v2 guide before reusing old shapes. |
| Resolution | Upstream changes cover `.wasm` extension lookup, CSS `@import` conditions and empty `resolve.roots`. Meteor supplies explicit extensions and project roots. Inspect `resolve.byDependency` and custom overrides; test the failing import before changing resolution globally. |
| Custom plugins | Review the plugin's Rspack 2 support and the [2.0 breaking-change overview](https://www.rspack.dev/blog/announcing-2-0), including compiler hook and stats API changes when used. |
@@ -77,7 +84,7 @@ React Compiler can use the built-in SWC loader on this pairing; see
[framework migration](framework-and-css.md). Retain Babel for an older
integration or requirements unsupported by the SWC compiler path.
Native TypeScript declarations are a separate beta.1 opt-in. Preserve a working
Native TypeScript declarations are a separate 3.6 opt-in. Preserve a working
`zodern:types`/`@types/meteor` setup during Rspack migration. Neither SWC nor
normal startup generates native declarations. Preserve a configured checker.
Use `meteor-typescript` when the task also includes changing providers.
@@ -93,15 +100,15 @@ requirement and retest after peer cleanup. Do not convert managers to fix CI.
Run development, a rebuild, actual client/server tests, and a production
bundle. Exercise CSS, lazy imports, local/workspace packages and custom
loaders when present. Boot the extracted bundle and load the browser page.
For beta.1, rebuild and exercise native npm dependencies against Node 26.8.2
and the deployment architecture before deploying; this is a release migration
Rebuild and exercise native npm dependencies against the target app's
`meteor node -v` and deployment architecture before deploying; this is a release migration
step, not something to defer until a native module crashes in production.
Follow the [validation matrix](validation-matrix.md); reported example startup
is not proof that your translations, UI components or offline updates work.
For a failure, capture the [migration report](troubleshooting.md#reporting-issues)
before applying another workaround.
On the beta's `rspack` package, HMR bootstrap belongs only to non-native
On Meteor 3.6's `rspack` package, HMR bootstrap belongs only to non-native
client development under `meteor run`, outside test mode. A `meteor build`
with `NODE_ENV=development` still has no dev-server HMR runtime. Verify the
generated and final artifacts, then rebuild from source; never repair them by
@@ -1,7 +1,7 @@
# Rspack 2 application toolchain compatibility
Use for an existing Rspack app upgrading to the Meteor 3.6 pairing, verified
on `3.6-beta.0`. Earlier releases retain their paired Rspack/integration
on `3.6`. Earlier releases retain their paired Rspack/integration
versions. Third-party packages have independent compatibility ranges; these
examples are not universal minimums or instructions to install `latest`.
@@ -98,7 +98,7 @@ local dependency preparation, not inside an immutable CI build.
Preferred fix: run the update locally, review it, and commit the lockfile:
The commands below apply to npm apps. For Meteor 3.6-beta.0, pnpm/Yarn
The commands below apply to npm apps. For Meteor 3.6, pnpm/Yarn
workspaces and the Rspack 1.x peer transition, use
[Rspack 1 to 2](rspack-2-upgrade.md). Preserve the detected manager and root
lockfile; do not create an app-local npm lockfile in a pnpm workspace.
@@ -14,10 +14,11 @@ results. Run the applicable rows after Rspack activation.
| Full-app initialization | App-test modules or server top-level await exist | On Meteor 3.5.2, configured app client/server bundles remain present with server-only test entries; awaited module initialization settles and the expected tests execute. Earlier integrations need a release-specific reproduction. |
| Production build | Always | Command exits nonzero on failure and the expected artifact exists. |
| Extracted bundle boot | Deployable app | Server reaches readiness from the production artifact. |
| Relocated workspace commands | Linked workspace npm packages expose used commands | Move the bundle outside the checkout; command links and adjacent resource reads work without original source access. 3.6 fixes copied links; verify earlier tools explicitly. |
| Browser against production bundle | Client app | The real page starts; HTTP 200 from the server alone is insufficient. |
| Dynamic import | Lazy feature exists | The chunk loads and executes when the feature is invoked. |
| Non-root `ROOT_URL` | Subpath deployment | Assets and chunks load without duplicated or missing prefixes. |
| Legacy web architecture | Still supported | A legacy-targeted browser or equivalent bundle smoke starts. |
| Legacy web architecture | Still supported | On the 3.6 pairing, preserve explicit main/test architecture graphs and load the intended program, assets and lazy chunks. A modern user-agent override proves selection only; test actual old engines for compatibility. Earlier pairings retain their supported shared-client behavior. |
| Custom loader | Custom loader exists | Representative input passes parsing, transformation, and code generation through the actual loader entry. |
| Framework preprocessing | Svelte/TypeScript, PostCSS/SCSS or UI-library inputs changed | An affected component compiles, renders and responds to interaction; expected styles survive development rebuild and production output. |
| Compiler plugins | Lingui or another SWC plugin is configured | The actual bundler-hosted compiler transforms a representative input; translated output or the equivalent feature works in development and production. Run catalog extraction/generation when used. |
+35 -35
View File
@@ -1,124 +1,124 @@
{
"version": 1,
"version": 2,
"skills": {
"meteor-accounts": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-accounts/SKILL.md",
"computedHash": "08ffb942bbd984990d5b0094c57fdae9c6e6b18f371565011f1f3a8797cebe05"
"computedHash": "3815426747a3cf74dbde60cc3fde6a9c89a9e4411d0c47486fca6d4b15cc2eea"
},
"meteor-blaze": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-blaze/SKILL.md",
"computedHash": "1d86eb4b8f59726dece03cca6e118a6f3e145316e6d9884b66e0f55249f15471"
"computedHash": "600371d67e1259792f7f93ffaf972eba222714bba5601178d48d089982ccc100"
},
"meteor-cli-installation": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-cli-installation/SKILL.md",
"computedHash": "bf29dcd70a5a4cad54bc7bae483f325abf5d12d94e673b9f6d8e7a8241546fb4"
"computedHash": "4f1d3ef87d322f7dd0412c8e99d9e47712f5740d20d2eada692a52be8211ff1c"
},
"meteor-community-packages": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-community-packages/SKILL.md",
"computedHash": "596aabe692daaaf405d5718821589203586daeec83f62fefd0786be1eff01658"
"computedHash": "7197579980cb1a6377c4e60a80ebfceaf120f89391587868bed0ab60dd3b0446"
},
"meteor-debugging": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-debugging/SKILL.md",
"computedHash": "501225332145cebeb52e413986f67e21b816be9e6d227b6f2fce30fc4c4e51a3"
"computedHash": "cac195c8d570643a7cfd78c6e2f6f5cc1f85de9f387f73b4753b2edab6f75cfc"
},
"meteor-deployment": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-deployment/SKILL.md",
"computedHash": "493a461728277de976a9667c7f7b13766a0287114d97707d082c7d0fc1c835c6"
"computedHash": "a4f63193df3426a308e6b626be106765e2f484681c91ec9f3c9be46b0ad8f12c"
},
"meteor-methods": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-methods/SKILL.md",
"computedHash": "1db922aa63baae87ba2d665f4500ad5fc60de12749323ebb9bf86c6c8e66334a"
"computedHash": "89de784b61e9af6a56c25a967a81f4b2d34a9792d0298d5272d914424ab43a2d"
},
"meteor-modern-build-stack": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-modern-build-stack/SKILL.md",
"computedHash": "bb9e7b8d684fed189fe163bff03a57c74b42e8003f430d3017d71ca13b4db4fe"
"computedHash": "d6effd524afd9b65a2b01008a51814a9bd02c8f3c8be02192d2c70b9a0944f00"
},
"meteor-mongo-minimongo": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-mongo-minimongo/SKILL.md",
"computedHash": "169aa503276f6c832582b34dd14020620e85e4861308be15c8ea26073435777e"
"computedHash": "b35982848350a9b012b24e49f2aa7dc8e0265d939df09092aefc908204922e6c"
},
"meteor-native": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.1",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-native/SKILL.md",
"computedHash": "cee15a6c8a0cd1b213869532f5adcd8d1592dc133ef5fdebcb5d70dcb0f5d5da"
"computedHash": "d6c8e1f3025677839e5632506283afb3a5546aa162aa428a08bf49b4848286ce"
},
"meteor-pubsub": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-pubsub/SKILL.md",
"computedHash": "36e6a5f47c7fb6b4e8f10b523ed5ac2a0eff86cf9f387ae8b45c69a56fa113a1"
"computedHash": "80ff22bc24d1316362655adaf01cf45b1d2a2a23969aff0dafb0cc1c54628e39"
},
"meteor-react": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.1",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-react/SKILL.md",
"computedHash": "621c1fb9ab812eb933a2e4b32a9fc6e816aad671ac17024f3633a78f7993ccdf"
"computedHash": "42539d9e690a538965b5f6b5f353d5377be61d75853c3d835609471010d16387"
},
"meteor-security": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-security/SKILL.md",
"computedHash": "dcfdbe07cc3f4f47e460f07ab33aa8cb543a85455ee03cb3fe1c6336aa9c052e"
"computedHash": "15c1a8733bfe357f709a629d04f2a42f12ec37503731720ec1671b5aea20c38f"
},
"meteor-testing": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-testing/SKILL.md",
"computedHash": "a8b2539b674ba04f2054bb36d45de0a5e5fa761854d197a175be3062ec195314"
"computedHash": "f1c7e30bb02d2de6cd7fdbff7f7958ce357abc3d5e2f989722608d3fa5407fe7"
},
"meteor-typescript": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.3",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/meteor-typescript/SKILL.md",
"computedHash": "15804f1da3d8d2695db0eb7b63da67086c60a7f4c770bc9c33d5ca3bffb2c29d"
"computedHash": "f956df609d3ec11f4f8d9ee799a39e62e560b9dd0790e27c0663e14134ad9519"
},
"migrate-to-meteor-3": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.1",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/migrate-to-meteor-3/SKILL.md",
"computedHash": "8044b4a210c64d1c74480a0346e631252920bdf85aecee8ef3e1154c1fd47b88"
"computedHash": "cdfa99d69734785cc7e8885f39ae9048b110b8d03ae7e82e28ec6112f7094969"
},
"migrate-to-rspack": {
"source": "meteor/agent-skills",
"ref": "v1.1.0-beta.1",
"ref": "v1.1.1",
"sourceType": "github",
"skillPath": "skills/migrate-to-rspack/SKILL.md",
"computedHash": "a737adb53b8905cbf9f207dd3dbd6a6311884f238f2fcab6a7df58c88a692d8c"
"computedHash": "1470e48a02b44c38097dca132a403513c4c30617f6e93d32e4639d1cfda87ac4"
}
}
}