Files
TREK/shared
dependabot[bot] 964b2459d1 chore(deps): bump the npm-minor-and-patch group with 20 updates
Bumps the npm-minor-and-patch group with 20 updates:

| Package | From | To |
| --- | --- | --- |
| [@capacitor/android](https://github.com/ionic-team/capacitor) | `8.6.2` | `8.6.3` |
| [@capacitor/core](https://github.com/ionic-team/capacitor) | `8.6.2` | `8.6.3` |
| [@capacitor/filesystem](https://github.com/ionic-team/capacitor-filesystem) | `8.1.5` | `8.1.6` |
| [@capacitor/ios](https://github.com/ionic-team/capacitor) | `8.6.2` | `8.6.3` |
| [maplibre-gl](https://github.com/maplibre/maplibre-gl-js) | `6.19.0` | `6.20.0` |
| [@capacitor/cli](https://github.com/ionic-team/capacitor) | `8.6.2` | `8.6.3` |
| [@testing-library/dom](https://github.com/testing-library/dom-testing-library) | `10.4.1` | `10.4.2` |
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) | `19.3.2` | `19.3.3` |
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) | `10.1.8` | `10.1.9` |
| [postcss](https://github.com/postcss/postcss) | `8.5.33` | `8.5.34` |
| [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) | `8.3.8` | `8.4.0` |
| [@mikro-orm/cli](https://github.com/mikro-orm/mikro-orm) | `7.2.12` | `7.2.13` |
| [@mikro-orm/core](https://github.com/mikro-orm/mikro-orm) | `7.2.12` | `7.2.13` |
| [@mikro-orm/migrations](https://github.com/mikro-orm/mikro-orm) | `7.2.12` | `7.2.13` |
| [@mikro-orm/postgresql](https://github.com/mikro-orm/mikro-orm) | `7.2.12` | `7.2.13` |
| [@mikro-orm/seeder](https://github.com/mikro-orm/mikro-orm) | `7.2.12` | `7.2.13` |
| [@mikro-orm/sql](https://github.com/mikro-orm/mikro-orm) | `7.2.12` | `7.2.13` |
| [@mikro-orm/sqlite](https://github.com/mikro-orm/mikro-orm) | `7.2.12` | `7.2.13` |
| [ws](https://github.com/websockets/ws) | `8.23.0` | `8.23.1` |
| [@mikro-orm/entity-generator](https://github.com/mikro-orm/mikro-orm) | `7.2.12` | `7.2.13` |


Updates `@capacitor/android` from 8.6.2 to 8.6.3
- [Release notes](https://github.com/ionic-team/capacitor/releases)
- [Changelog](https://github.com/ionic-team/capacitor/blob/8.6.3/CHANGELOG.md)
- [Commits](https://github.com/ionic-team/capacitor/compare/8.6.2...8.6.3)

Updates `@capacitor/core` from 8.6.2 to 8.6.3
- [Release notes](https://github.com/ionic-team/capacitor/releases)
- [Changelog](https://github.com/ionic-team/capacitor/blob/8.6.3/CHANGELOG.md)
- [Commits](https://github.com/ionic-team/capacitor/compare/8.6.2...8.6.3)

Updates `@capacitor/filesystem` from 8.1.5 to 8.1.6
- [Release notes](https://github.com/ionic-team/capacitor-filesystem/releases)
- [Changelog](https://github.com/ionic-team/capacitor-filesystem/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ionic-team/capacitor-filesystem/compare/v8.1.5...v8.1.6)

Updates `@capacitor/ios` from 8.6.2 to 8.6.3
- [Release notes](https://github.com/ionic-team/capacitor/releases)
- [Changelog](https://github.com/ionic-team/capacitor/blob/8.6.3/CHANGELOG.md)
- [Commits](https://github.com/ionic-team/capacitor/compare/8.6.2...8.6.3)

Updates `maplibre-gl` from 6.19.0 to 6.20.0
- [Release notes](https://github.com/maplibre/maplibre-gl-js/releases)
- [Changelog](https://github.com/maplibre/maplibre-gl-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/maplibre/maplibre-gl-js/compare/v6.19.0...v6.20.0)

Updates `@capacitor/cli` from 8.6.2 to 8.6.3
- [Release notes](https://github.com/ionic-team/capacitor/releases)
- [Changelog](https://github.com/ionic-team/capacitor/blob/8.6.3/CHANGELOG.md)
- [Commits](https://github.com/ionic-team/capacitor/compare/8.6.2...8.6.3)

Updates `@testing-library/dom` from 10.4.1 to 10.4.2
- [Release notes](https://github.com/testing-library/dom-testing-library/releases)
- [Changelog](https://github.com/testing-library/dom-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/dom-testing-library/compare/v10.4.1...v10.4.2)

Updates `@types/react` from 19.3.2 to 19.3.3
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `eslint-config-prettier` from 10.1.8 to 10.1.9
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v10.1.8...v10.1.9)

Updates `postcss` from 8.5.33 to 8.5.34
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.5.33...8.5.34)

Updates `vite` from 8.3.8 to 8.4.0
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.4.0/packages/vite)

Updates `@mikro-orm/cli` from 7.2.12 to 7.2.13
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mikro-orm/mikro-orm/compare/v7.2.12...v7.2.13)

Updates `@mikro-orm/core` from 7.2.12 to 7.2.13
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mikro-orm/mikro-orm/compare/v7.2.12...v7.2.13)

Updates `@mikro-orm/migrations` from 7.2.12 to 7.2.13
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mikro-orm/mikro-orm/compare/v7.2.12...v7.2.13)

Updates `@mikro-orm/postgresql` from 7.2.12 to 7.2.13
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mikro-orm/mikro-orm/compare/v7.2.12...v7.2.13)

Updates `@mikro-orm/seeder` from 7.2.12 to 7.2.13
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mikro-orm/mikro-orm/compare/v7.2.12...v7.2.13)

Updates `@mikro-orm/sql` from 7.2.12 to 7.2.13
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mikro-orm/mikro-orm/compare/v7.2.12...v7.2.13)

Updates `@mikro-orm/sqlite` from 7.2.12 to 7.2.13
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mikro-orm/mikro-orm/compare/v7.2.12...v7.2.13)

Updates `ws` from 8.23.0 to 8.23.1
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.23.0...8.23.1)

Updates `@mikro-orm/entity-generator` from 7.2.12 to 7.2.13
- [Release notes](https://github.com/mikro-orm/mikro-orm/releases)
- [Changelog](https://github.com/mikro-orm/mikro-orm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mikro-orm/mikro-orm/compare/v7.2.12...v7.2.13)

---
updated-dependencies:
- dependency-name: "@capacitor/android"
  dependency-version: 8.6.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@capacitor/core"
  dependency-version: 8.6.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@capacitor/filesystem"
  dependency-version: 8.1.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@capacitor/ios"
  dependency-version: 8.6.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: maplibre-gl
  dependency-version: 6.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm-minor-and-patch
- dependency-name: "@capacitor/cli"
  dependency-version: 8.6.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@testing-library/dom"
  dependency-version: 10.4.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@types/react"
  dependency-version: 19.3.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: eslint-config-prettier
  dependency-version: 10.1.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: postcss
  dependency-version: 8.5.34
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: vite
  dependency-version: 8.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-minor-and-patch
- dependency-name: "@mikro-orm/cli"
  dependency-version: 7.2.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@mikro-orm/core"
  dependency-version: 7.2.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@mikro-orm/migrations"
  dependency-version: 7.2.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@mikro-orm/postgresql"
  dependency-version: 7.2.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@mikro-orm/seeder"
  dependency-version: 7.2.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@mikro-orm/sql"
  dependency-version: 7.2.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@mikro-orm/sqlite"
  dependency-version: 7.2.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: ws
  dependency-version: 8.23.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
- dependency-name: "@mikro-orm/entity-generator"
  dependency-version: 7.2.13
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-30 19:53:16 +00:00
..
2026-06-16 22:22:45 +02:00
2026-06-16 22:22:45 +02:00

@trek/shared

Single source of truth for TREK's API contracts, expressed as Zod schemas and consumed by both the server (request validation + inferred DTO types) and the client (typed requests/responses).

This package is part of the incremental NestJS + React 19 migration (see the "Brownfield Rewrite" board). It is intentionally dormant until modules start importing it — adding it changes nothing for users.

Rules

  • One folder per domain: src/<domain>/<domain>.schema.ts (+ .spec.ts).
  • Domain-agnostic building blocks live in src/common/.
  • A route is only considered migrated once its contract lives here.
  • Schemas are the source of truth; server DTOs and client types are inferred from them (z.infer<typeof schema>), never hand-duplicated.

Consumption (dev)

Both apps resolve @trek/shared to this package's TypeScript source:

  • Server (tsx): via paths in server/tsconfig.json.
  • Client (vite): via resolve.alias in client/vite.config.ts (+ paths for the type-checker).

Production packaging (Docker / workspace wiring) is introduced in card F2, when the server first depends on this package at runtime. Until then prod builds are untouched.

Not yet here

The canonical error envelope is finalised in card F5 (it must match TREK's current Express error responses byte-for-byte), so it is deliberately not invented in F1.