@autobusal/providers 1.37.8 → 1.37.10

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.10
4
+
5
+ ### Added
6
+
7
+ - `ReviewData.published_on` - the review's date as ISO 8601, beside the localized display string. Structured data needs a machine date, and reversing a printed `d/m/Y` back into one would couple the schema to a locale format.
8
+
9
+ ## 1.37.9
10
+
11
+ ### Added
12
+
13
+ - **`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.
14
+
3
15
  ## 1.37.8
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.8",
3
+ "version": "1.37.10",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/reviews.ts CHANGED
@@ -39,5 +39,9 @@ export interface ReviewData {
39
39
  // first name plus an initial, built server-side
40
40
  author: string
41
41
  published: string | null
42
+ // Edited: Claude - Date: 2026-08-20
43
+ // the same day as `published` but plain ISO 8601 (YYYY-MM-DD) - schema.org's
44
+ // datePublished refuses the d/m/Y display string above
45
+ published_on: string | null
42
46
  reply: ReviewReplyData | null
43
47
  }