@turnai/turn-shared 1.0.4 → 1.0.6

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 ADDED
@@ -0,0 +1,61 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
+
7
+ ## [1.0.6] - 2026-03-19
8
+
9
+ ### Changed
10
+
11
+ - Replaced **apisauce** with **axios** `0.27.2` for `BaseAPI`. Responses keep an **apisauce-compatible shape** (`ok`, `data`, `status`, `problem`, etc.) for existing callers.
12
+ - **Ramda** is no longer pulled in (it was a transitive dependency of apisauce).
13
+
14
+ ### Fixed
15
+
16
+ - `validatePhone` now uses **`this.twilioKey`** for Twilio Basic auth instead of an undefined global.
17
+
18
+ ### Added
19
+
20
+ - This **CHANGELOG**.
21
+
22
+ ## [1.0.5] - 2026-03-19
23
+
24
+ ### Changed
25
+
26
+ - **Smaller bundle:** replaced **moment** with **dayjs** (relative time + UTC plugins).
27
+ - **Lodash:** added **babel-plugin-lodash** so only used methods are included in the graph (no `_.chain` in `parseQuery`; use `fromPairs` + `map` instead).
28
+ - **`parseQuery`:** implemented with native **`URLSearchParams`** (no lodash).
29
+ - **Webpack:** `performance.hints` disabled to avoid noisy size warnings; **`npm run analyze`** opens **webpack-bundle-analyzer** (via `cross-env ANALYZE=1`).
30
+
31
+ ### Removed
32
+
33
+ - **MobX** removed from production **`validators`** (replaced `isObservableArray` with a small duck check). MobX remains a **devDependency** for tests only, so it is not bundled.
34
+
35
+ ### Fixed
36
+
37
+ - Tests updated for **babel-plugin-lodash** (`parseQuery`, setter factory spies → behavior tests).
38
+
39
+ ## [1.0.4] - 2026-03-19
40
+
41
+ ### Changed
42
+
43
+ - **Driver’s license validation** dependency: **`@turnai/validate-us-drivers-license`** from npm (private package; document `npm login` / `NODE_AUTH_TOKEN` for install).
44
+ - **Status / UI helpers:** `translateStatus` / `getStatus` / `pickColor` and **SC** driver’s license test data aligned with current behavior and published validators.
45
+ - **Node:** documented **`engines.node`** `>=10` and **`.nvmrc`**; publish workflow uses **`node-version-file`** and **npm cache** where applicable.
46
+
47
+ ### Added
48
+
49
+ - **`prepublishOnly`** runs webpack before publish; **`files`** field limits published tarball to `lib` + `README.md` (and **CHANGELOG** when present).
50
+ - **GitHub Actions:** `NODE_AUTH_TOKEN` for the job so **`npm ci`** can fetch private scoped packages.
51
+
52
+ ## [1.0.3] - 2026-03-18
53
+
54
+ ### Notes
55
+
56
+ - Baseline for the above; prior published **`@turnai/turn-shared`** line with scoped package, `publishConfig`, and npm publishing flow.
57
+
58
+ [1.0.6]: https://github.com/turnhq/turn-shared/compare/v1.0.5...v1.0.6
59
+ [1.0.5]: https://github.com/turnhq/turn-shared/compare/v1.0.4...v1.0.5
60
+ [1.0.4]: https://github.com/turnhq/turn-shared/compare/v1.0.3...v1.0.4
61
+ [1.0.3]: https://github.com/turnhq/turn-shared/releases/tag/v1.0.3
package/README.md CHANGED
@@ -20,7 +20,7 @@ Make your changes in the src files, when you're ready to push your changes run `
20
20
 
21
21
  ## Services included
22
22
  ### BaseAPI
23
- API with turn endpoints, created with apisauce.
23
+ API with turn endpoints, built on axios (apisauce-compatible response shape: `ok`, `data`, `status`, `problem`).
24
24
 
25
25
 
26
26
  ## Styles included