vitest-native 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,73 @@
1
1
  # vitest-native
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Native engine
6
+
7
+ - Propagate the configured iOS/Android platform through native resolution,
8
+ transformation caches, Babel caller metadata, and native boundary constants.
9
+ - Bring assets, helper controls, native-module injection, animated matchers, and
10
+ snapshot serialization to the native engine contract.
11
+ - Reject mock-only `mocks` overrides under the native engine instead of silently
12
+ ignoring them.
13
+
14
+ ### Mock engine
15
+
16
+ - Block `onPress` on disabled `Pressable`/`Touchable*`/`Button` under
17
+ `@testing-library/react-native` v14. RNTL 14 resolves press handlers by walking
18
+ the composite fiber, which re-finds `onPress` on the wrapping `forwardRef` mock,
19
+ so the earlier host-prop stripping no longer blocked the press; disabled hosts
20
+ are now marked `pointerEvents: "none"` so RNTL's `isEventEnabled` rejects it
21
+ (no-op under RNTL ≤13). Thanks @jakeboone02.
22
+ - Stop passing the `hostComponentNames` option to `configure()` on RNTL ≥14,
23
+ which removed it in favor of auto-detection; this silences an "Unknown
24
+ option(s) passed to configure" warning while preserving the option for
25
+ RNTL ≤13.
26
+
27
+ ### Reliability
28
+
29
+ - Fix hot-runtime cross-file leaks from import-time globals, direct environment
30
+ mutations, and app-owned RN event listeners.
31
+ - Add a dedicated one-worker hot-isolation gate, a generated 100-file soak,
32
+ end-to-end memory-triggered worker recycling, and Android platform-resolution
33
+ coverage.
34
+ - Validate plugin and hot-runtime options eagerly with actionable errors.
35
+ - Fail configuration for unsupported required Vite, Vitest, and React peers
36
+ instead of continuing after a console error.
37
+
38
+ ### Compatibility and release engineering
39
+
40
+ - Validate packed release tarballs in bare RN 0.83/RNTL 12, Expo 56/RNTL 13,
41
+ Vite 8 monorepo/RNTL 14, RN 0.86 Android, and a mock-engine RNTL 14 consumer
42
+ (the combination that guards the disabled-press fix above).
43
+ - Support Vite 8's Oxc JSX configuration without the deprecated `esbuild`
44
+ option, while retaining Vite 6–7 support.
45
+ - Load RNTL matchers across the public, `build`, and `dist` layouts used by
46
+ RNTL 12–14, and expose Vitest's `expect` for RNTL matcher registration without
47
+ enabling all Vitest globals.
48
+ - Upgrade the validated baseline to Vitest 4.1.8, RN 0.85.3, and React 19.2,
49
+ with exact peer upper bounds for unsupported future majors.
50
+ - Require patched Vite floors (^6.4.2, ^7.3.2, or ^8.0.5) and refresh build
51
+ tooling/transitive resolutions to remove known high-severity advisories.
52
+ - Make Linux Node 20/22, macOS, Windows, packed consumers, the example app,
53
+ soak tests, cross-checks, and package export analysis blocking release gates.
54
+
55
+ ## 0.4.1
56
+
57
+ ### Patch Changes
58
+
59
+ Documentation fixes (the README is consumers' primary reference):
60
+
61
+ - **Quick Start now runs as written.** It used bare `test()`/`expect()` with no
62
+ import, but the plugin does not enable Vitest globals — copying it produced
63
+ `test is not defined`. Added the `import { test, expect } from 'vitest'` and a
64
+ note on the `globals: true` alternative.
65
+ - **Installation** notes the companion dependencies the examples need
66
+ (`@testing-library/react-native`; a real RN app already provides `react-native`
67
+ + `@react-native/babel-preset` + `@babel/core`).
68
+ - Corrected the RN-conformance count (118 ported: 115 passing, 3 documented skips).
69
+ - "Spiritual successor" → "Maintained successor" wording, with a migration link.
70
+
3
71
  ## 0.4.0
4
72
 
5
73
  **The native engine is now the zero-config default.** `reactNative()` with no