@edraj/sauron-browser 1.5.0 → 1.7.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 +33 -0
- package/COPYING +674 -0
- package/LICENSE +160 -656
- package/README.md +26 -10
- package/dist/index.cjs +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@edraj/sauron-browser` are documented here.
|
|
4
4
|
|
|
5
|
+
## 1.7.0
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- **`release` is required at init.** `Sauron.init()` now throws when `release`
|
|
10
|
+
is missing, not a string, or whitespace-only. `release` is trimmed before it
|
|
11
|
+
is sent. `InitOptions.release` is now a required `string` (was optional).
|
|
12
|
+
|
|
13
|
+
## 1.6.0
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- **Navigation direction on history breadcrumbs.** SPA navigation breadcrumbs
|
|
18
|
+
now carry `operation` alongside `from` and `to`: `push` for
|
|
19
|
+
`history.pushState`, `replace` for `history.replaceState`, and `pop` for
|
|
20
|
+
`popstate`. A breadcrumb trail no longer reads the same whether the user
|
|
21
|
+
advanced through a flow or backed out of it.
|
|
22
|
+
|
|
23
|
+
The vocabulary is shared with the Flutter SDK's `SauronNavigatorObserver`
|
|
24
|
+
(`push` / `pop` / `replace` / `remove`), so a trail reads the same whichever
|
|
25
|
+
SDK sent it. `remove` has no web equivalent and is never emitted here.
|
|
26
|
+
|
|
27
|
+
**A forward navigation is recorded as `pop`.** `history.forward()` fires the
|
|
28
|
+
same `popstate` event as `history.back()` and carries nothing to separate
|
|
29
|
+
them, so `pop` means "moved through history" rather than specifically "went
|
|
30
|
+
back". Telling them apart would mean writing a counter into `history.state`,
|
|
31
|
+
which the host app's router also owns — not a trade this SDK makes to
|
|
32
|
+
improve a breadcrumb.
|
|
33
|
+
|
|
34
|
+
No API change: `operation` is added to `data` on breadcrumbs the SDK already
|
|
35
|
+
emitted, and the same-path guard still suppresses a `replaceState` to the
|
|
36
|
+
current URL before any direction is recorded.
|
|
37
|
+
|
|
5
38
|
## 1.5.0
|
|
6
39
|
|
|
7
40
|
### Added
|