@geekmidas/schema 9.1.0 → 9.2.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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @geekmidas/schema
2
2
 
3
+ ## 9.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#324](https://github.com/geekmidas/toolbox/pull/324) [`836d73e`](https://github.com/geekmidas/toolbox/commit/836d73e8ab6db8ab0bcda2eb7847dcd9df023cbb) Thanks [@geekmidas](https://github.com/geekmidas)! - Dependency changes that let consumers clear security advisories
8
+ - 🐛 **constructs, envkit**: no longer depend on `lodash.pick` and `lodash.set` (GHSA-p6mc-m468-83gw, no fixed release). Native code does the same work, and constructs no longer bundles either module into its dist.
9
+ - **emailkit**: `nodemailer` ^6.9.7 → ^7.0.7. emailkit only uses the SMTP transport, which v7 leaves unchanged.
10
+ - **envkit, client, schema, storage**: the `zod` peer range widens from `~4.1.13` to `^4.1.13`, so apps can move to zod 4.6.6 (GHSA-mrhx-c7xc-m3w5).
11
+ - The OpenAPI client generator no longer emits `export type User = User` for an endpoint whose output is a registered schema, which zod 4.6 started producing.
12
+ - **telescope**: the OpenTelemetry peers accept the 2.x line (`@opentelemetry/sdk-trace-node` ^2 and the matching 0.2xx packages) as well as 1.x. This clears GHSA-45rx-2jwx-cxfr and GHSA-8988-4f7v-96qf.
13
+ - `setupTelemetry` works on both lines.
14
+ - Its log records are now exported through the SDK. Before, they went to a logger provider that was never registered.
15
+ - **testkit, db**: `@faker-js/faker` ~9.9.0 → ^10.4.1 (GHSA-qxc2-j82w-r537), and the `vitest` peer accepts `^3.2.4 || ^4.1.11`.
16
+ - 🔥 `@geekmidas/testkit/faker` extends faker, so faker 10's removed APIs apply to it.
17
+ - faker 10 is ESM-only. It needs Node 22.13 or later, its own minimum, and loading testkit from CommonJS relies on that version's `require()` of ES modules.
18
+
19
+ ## 9.2.0
20
+
3
21
  ## 9.1.0
4
22
 
5
23
  ## 9.0.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/schema",
3
- "version": "9.1.0",
3
+ "version": "9.2.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -56,11 +56,13 @@
56
56
  "openapi-types": "~12.1.3",
57
57
  "@standard-schema/spec": "~1.0.0"
58
58
  },
59
- "devDependencies": {},
59
+ "devDependencies": {
60
+ "zod": "~4.6.6"
61
+ },
60
62
  "peerDependencies": {
61
63
  "@valibot/to-json-schema": ">=1.3.0",
62
64
  "zod-to-json-schema": "~3.25.1",
63
- "zod": "~4.1.13"
65
+ "zod": "^4.1.13"
64
66
  },
65
67
  "scripts": {
66
68
  "ts": "tsc --noEmit --skipLibCheck src/**/*.ts"
@@ -156,7 +156,18 @@ describe('Schema Conversion', () => {
156
156
 
157
157
  const jsonSchema = await convertStandardSchemaToJsonSchema(schema);
158
158
 
159
- expect(jsonSchema).toHaveProperty('anyOf');
159
+ // A union of primitives comes out as a type array rather than `anyOf`.
160
+ // Both say the same thing, and the array is the 2020-12 spelling — which
161
+ // is the dialect this project emits, since OpenAPI 3.1 adopted it. The
162
+ // assertion is that the union survives conversion, so it is written
163
+ // against either encoding rather than whichever one Zod currently picks.
164
+ expect(jsonSchema).toEqual(
165
+ expect.objectContaining(
166
+ 'anyOf' in (jsonSchema as object)
167
+ ? { anyOf: expect.any(Array) }
168
+ : { type: ['string', 'number'] },
169
+ ),
170
+ );
160
171
  });
161
172
  });
162
173