@autobusal/providers 1.37.7 → 1.37.9

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.37.9
4
+
5
+ ### Added
6
+
7
+ - **`Errors/Message` carries a `data-error-page` marker.** The prerenderer has to tell a rendered page from a rendered not-found, and it cannot do that by matching text when the app speaks fifteen languages - it was writing 404s to disk as if they were pages and counting them as successes.
8
+
9
+ ## 1.37.8
10
+
11
+ ### Added
12
+
13
+ - **`SettingsData.map.tile_url`** - the basemap route maps draw on, from `/settings/get`. `null` until a commercial tile provider is configured server-side, which every client reads as "keep your built-in OpenStreetMap default". Served rather than built in because the mobile app shares this switch, and a compiled-in tile URL there could only be changed by shipping a store release.
14
+
3
15
  ## 1.37.7
4
16
 
5
17
  ### Added
@@ -48,7 +48,21 @@ const Message = ({ type }: Props): JSX.Element => {
48
48
  </div>
49
49
  </Background>
50
50
 
51
- <Container className="box">
51
+ { /* Edited: Claude - Date: 2026-08-19
52
+ A machine-readable marker saying WHICH page this is, for anything
53
+ that has to tell "the site answered" apart from "the site answered
54
+ with a dead end". The build-time prerenderer (scripts/prerender.js
55
+ in both apps) is the first such reader: it used to write a snapshot
56
+ of this very component to dist/{path}/index.html and count it as a
57
+ success, so a sitemap URL the route tree does not answer shipped as
58
+ a real-looking page - HTTP 200, "not found" in the body.
59
+
60
+ An attribute rather than the visible text, because the text is
61
+ translated into fifteen languages and a prerender crawls every one
62
+ of them; and rather than the '404' in <Code> below, because that is
63
+ a display string somebody could reasonably restyle or drop. This
64
+ exists only to be read. */ }
65
+ <Container className="box" data-error-page={ notFound ? 'not_found' : 'error' }>
52
66
  <Logo
53
67
  role="button"
54
68
  tabIndex={ 0 }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.37.7",
3
+ "version": "1.37.9",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/settings.ts CHANGED
@@ -7,6 +7,16 @@ export interface SettingsData {
7
7
 
8
8
  url: string
9
9
 
10
+ // Edited: Claude (audit) - Date: 2026-08-17
11
+ // The basemap route maps draw on (common's Map/Tiles.tsx). null until a
12
+ // commercial tile provider is configured server-side, which every client
13
+ // reads as "keep your built-in OpenStreetMap default". Served rather than
14
+ // built in because the mobile app shares this one switch, and a compiled-in
15
+ // tile URL there could only be changed by shipping a store release.
16
+ map?: {
17
+ tile_url: string | null
18
+ }
19
+
10
20
  // Edited: Ferjolt Ozuni - Date: 2026-08-11
11
21
  // The label's ISO 4217 currency code, e.g. "EUR" - the same source
12
22
  // Facts already trusts for its own Offer schema. null on a label that