@walkeros/cli 3.2.0 → 3.3.0-next-1776113011459

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,103 @@
1
1
  # @walkeros/cli
2
2
 
3
+ ## 3.3.0-next-1776113011459
4
+
5
+ ### Minor Changes
6
+
7
+ - 2849acb: **BREAKING CHANGE:** The `packages` block has moved from
8
+ `flow.<name>.packages` to `flow.<name>.bundle.packages`. Flow files using the
9
+ old shape fail fast with a migration error pointing to the new location.
10
+
11
+ Also adds `flow.<name>.bundle.overrides` — a `Record<string, string>` for
12
+ pinning transitive dependency versions, matching npm's `overrides` semantics.
13
+ Use this to resolve version conflicts when a transitive dependency's declared
14
+ range conflicts with another required version in the same tree (the original
15
+ motivating case: `@amplitude/engagement-browser` pins
16
+ `@amplitude/analytics-types@^1.0.0` while `@amplitude/analytics-browser`
17
+ transitively requires `analytics-types@2.11.1` exact — previously an
18
+ unresolvable bundler conflict).
19
+
20
+ **Migration:** move the existing `packages` block one level deeper into a new
21
+ `bundle` wrapper.
22
+
23
+ ```diff
24
+ {
25
+ "version": 3,
26
+ "flows": {
27
+ "default": {
28
+ "web": {},
29
+ - "packages": {
30
+ - "@walkeros/collector": {}
31
+ - },
32
+ + "bundle": {
33
+ + "packages": {
34
+ + "@walkeros/collector": {}
35
+ + }
36
+ + },
37
+ "sources": { },
38
+ "destinations": { }
39
+ }
40
+ }
41
+ }
42
+ ```
43
+
44
+ **Overrides example:**
45
+
46
+ ```json
47
+ {
48
+ "flows": {
49
+ "default": {
50
+ "web": {},
51
+ "bundle": {
52
+ "packages": {
53
+ "@walkeros/web-destination-amplitude": {}
54
+ },
55
+ "overrides": {
56
+ "@amplitude/analytics-types": "2.11.1"
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ ```
63
+
64
+ Overrides only substitute **transitive** dependencies during resolution —
65
+ direct package specs declared in `bundle.packages` always win. Overrides
66
+ targeting a direct local-path package emit a warning and are ignored. Peer
67
+ constraint mismatches against the chosen override emit a warning but do not
68
+ error (the override is an explicit user directive).
69
+
70
+ - 08c365a: Add preview mode preflight to web bundles
71
+ - `WrapSkeletonOptions` accepts optional `previewOrigin` and `previewScope`
72
+ fields
73
+ - `generateWrapEntry` injects a preflight snippet before `startFlow` when both
74
+ are set: checks `?elbPreview` param / cookie, loads preview bundle from
75
+ `{previewOrigin}/preview/{previewScope}/walker.{token}.js`, skips production
76
+ flow. Zero overhead when preview options are absent.
77
+ - Input validation rejects path-traversal in `previewScope` and special
78
+ characters in `previewOrigin`.
79
+
80
+ - 08c365a: Bundle /dev exports into stage 1 skeleton for environment-agnostic
81
+ simulation
82
+ - `/dev` exports from packages are included in the skipWrapper bundle as
83
+ `__devExports`
84
+ - Stage 2 production bundles tree-shake dev exports (no size impact)
85
+ - `prepareFlow()` accepts `Flow.Config` object or pre-built `bundlePath`
86
+ - Simulate functions read env/createTrigger from bundle instead of filesystem
87
+
88
+ ### Patch Changes
89
+
90
+ - ae02457: Fix bare filename resolution in bundle command —
91
+ `walkeros bundle flow.json` now resolves relative to cwd instead of CLI
92
+ examples directory. Add TTY hint when writing to stdout
93
+ - Updated dependencies [2849acb]
94
+ - Updated dependencies [08c365a]
95
+ - Updated dependencies [08c365a]
96
+ - Updated dependencies [08c365a]
97
+ - Updated dependencies [08c365a]
98
+ - @walkeros/core@3.3.0-next-1776113011459
99
+ - @walkeros/server-core@3.3.0-next-1776113011459
100
+
3
101
  ## 3.2.0
4
102
 
5
103
  ### Minor Changes