@propeller-commerce/propeller-v2-react-ui 0.23.0 → 0.23.1
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 +17 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,23 @@ once it reaches 1.0. Until then (the `0.x` line) the public API may change
|
|
|
8
8
|
between minor versions; breaking changes are called out below and in
|
|
9
9
|
[MIGRATION.md](./MIGRATION.md).
|
|
10
10
|
|
|
11
|
+
## [0.23.1] - 2026-09-24
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **The language fallback never ran, so a machine listed in one language still
|
|
16
|
+
opened empty.** 0.23.0 added the fallback but only advanced it on a *thrown*
|
|
17
|
+
error. The API answers a wrong-language slug with a **partial** response —
|
|
18
|
+
`machine: null` alongside `SPARE_PARTS_MACHINE_NOT_FOUND_ERROR` — and the
|
|
19
|
+
SDK's `runOperation` returns that data rather than throwing unless the client
|
|
20
|
+
opts into `throwOnPartialErrors`, which no boilerplate does. So `getMachine`
|
|
21
|
+
resolved to `null`, the first candidate language was accepted as a hit, the
|
|
22
|
+
remaining languages were never tried and `notFound` was never set: one
|
|
23
|
+
request in the tree language per page, and the same empty listing as before.
|
|
24
|
+
A `null` machine now counts as "not found in this language" and the loop
|
|
25
|
+
continues, so the fallback reaches the language the slug was authored in and
|
|
26
|
+
a slug that resolves nowhere sets `notFound`. (PWP-993)
|
|
27
|
+
|
|
11
28
|
## [0.23.0] - 2026-09-24
|
|
12
29
|
|
|
13
30
|
### Fixed
|
package/dist/index.cjs
CHANGED
|
@@ -2807,7 +2807,8 @@ function machineLanguageCandidates(machineLanguage, language, extra) {
|
|
|
2807
2807
|
async function resolveMachineAcrossLanguages(candidates, fetchOne) {
|
|
2808
2808
|
for (const language of candidates) {
|
|
2809
2809
|
try {
|
|
2810
|
-
|
|
2810
|
+
const machine = await fetchOne(language);
|
|
2811
|
+
if (machine !== null && machine !== void 0) return { machine, language };
|
|
2811
2812
|
} catch (error) {
|
|
2812
2813
|
if (!isMachineNotFound(error)) throw error;
|
|
2813
2814
|
}
|