@o-zone/scorer-core 0.0.3 → 0.0.5

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/README.md CHANGED
@@ -5,7 +5,7 @@ Orienteering scoring core library with modular exports for server, race, and com
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- bun add @o-zone/scorer-core
8
+ pnpm add @o-zone/scorer-core
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -29,21 +29,21 @@ import { ... } from '@o-zone/scorer-core/competition';
29
29
 
30
30
  ### Setup
31
31
  ```bash
32
- bun install
32
+ pnpm install
33
33
  ```
34
34
 
35
35
  ### Build
36
36
  ```bash
37
- bun run build # Compile TypeScript → dist/
38
- bun run build:watch # Watch mode for development
37
+ pnpm run build # Compile TypeScript → dist/
38
+ pnpm run build:watch # Watch mode for development
39
39
  ```
40
40
 
41
41
  ### Quality Checks
42
42
  ```bash
43
- bun run check:types # TypeScript type checking
44
- bun run lint # Code quality with Biome
45
- bun run lint:fix # Auto-fix lint issues
46
- bun run format # Code formatting
43
+ pnpm run check:types # TypeScript type checking
44
+ pnpm run lint # Code quality with Biome
45
+ pnpm run lint:fix # Auto-fix lint issues
46
+ pnpm run format # Code formatting
47
47
  ```
48
48
 
49
49
  ## Publishing
@@ -52,7 +52,7 @@ This package uses [Changesets](https://github.com/changesets/changesets) for aut
52
52
 
53
53
  ### Workflow
54
54
  1. Make code changes
55
- 2. Run `bun changeset add` to document changes
55
+ 2. Run `pnpm changeset add` to document changes
56
56
  3. Push to main branch
57
57
  4. GitHub Actions automatically:
58
58
  - Creates a Release PR (bumps version, updates changelog)
@@ -76,20 +76,20 @@ dist/ # Built output (published to npm)
76
76
 
77
77
  | Command | Purpose |
78
78
  |---------|---------|
79
- | `bun run build` | Build TypeScript to dist/ |
80
- | `bun run build:watch` | Watch mode build |
81
- | `bun run check:types` | Type check without emit |
82
- | `bun run lint` | Lint code |
83
- | `bun run lint:fix` | Auto-fix lint issues |
84
- | `bun run format` | Format code |
85
- | `bun changeset add` | Create a changeset |
86
- | `bun run publish` | Build and publish |
79
+ | `pnpm run build` | Build TypeScript to dist/ |
80
+ | `pnpm run build:watch` | Watch mode build |
81
+ | `pnpm run check:types` | Type check without emit |
82
+ | `pnpm run lint` | Lint code |
83
+ | `pnpm run lint:fix` | Auto-fix lint issues |
84
+ | `pnpm run format` | Format code |
85
+ | `pnpm changeset add` | Create a changeset |
86
+ | `pnpm run publish` | Build and publish |
87
87
 
88
88
  ## Technologies
89
89
 
90
90
  - **Language**: TypeScript 5.3+
91
- - **Runtime**: Bun 1.3.5+
92
- - **Package Manager**: Bun
91
+ - **Runtime**: pnpm 1.3.5+
92
+ - **Package Manager**: pnpm
93
93
  - **Linter**: Biome
94
94
  - **Release Management**: Changesets
95
95
  - **CI/CD**: GitHub Actions
@@ -103,6 +103,6 @@ MIT
103
103
 
104
104
  1. Create a feature branch
105
105
  2. Make your changes
106
- 3. Run `bun run lint:fix` to format
107
- 4. Create a changeset: `bun changes`
106
+ 3. Run `pnpm run lint:fix` to format
107
+ 4. Create a changeset: `pnpm changes`
108
108
  5. Push and create a pull request
@@ -0,0 +1,10 @@
1
+ import * as z from 'zod';
2
+ export declare const Competition: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ name: z.ZodString;
5
+ competition_class: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodNumber;
7
+ short_name: z.ZodString;
8
+ }, z.core.$loose>>;
9
+ }, z.core.$loose>;
10
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/common/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AASzB,eAAO,MAAM,WAAW;;;;;;;iBAMd,CAAC"}
@@ -0,0 +1,15 @@
1
+ import * as z from 'zod';
2
+ const CompetitionClass = z
3
+ .object({
4
+ id: z.number(),
5
+ short_name: z.string(),
6
+ })
7
+ .loose();
8
+ export const Competition = z
9
+ .object({
10
+ id: z.number(),
11
+ name: z.string(),
12
+ competition_class: z.array(CompetitionClass),
13
+ })
14
+ .loose();
15
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/common/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC;KACD,KAAK,EAAE,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;CAC7C,CAAC;KACD,KAAK,EAAE,CAAC"}
@@ -1,5 +1,34 @@
1
1
  import * as z from 'zod';
2
- export declare const CompetitionEntry: z.ZodObject<{
3
- id: z.ZodNumber;
2
+ export declare const CompetitionScoreRequest: z.ZodObject<{
3
+ competition: z.ZodObject<{
4
+ id: z.ZodNumber;
5
+ name: z.ZodString;
6
+ competition_class: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNumber;
8
+ short_name: z.ZodString;
9
+ }, z.core.$loose>>;
10
+ }, z.core.$loose>;
11
+ entries: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNumber;
13
+ competition_class: z.ZodNullable<z.ZodObject<{
14
+ id: z.ZodNumber;
15
+ name: z.ZodString;
16
+ short_name: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$loose>>;
18
+ organization: z.ZodNullable<z.ZodObject<{
19
+ id: z.ZodNumber;
20
+ name: z.ZodString;
21
+ club_code: z.ZodNullable<z.ZodString>;
22
+ school_code: z.ZodNullable<z.ZodString>;
23
+ onz_region: z.ZodNullable<z.ZodObject<{
24
+ id: z.ZodNumber;
25
+ name: z.ZodString;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$loose>>;
28
+ race_runs: z.ZodArray<z.ZodObject<{
29
+ score: z.ZodNullable<z.ZodNumber>;
30
+ }, z.core.$loose>>;
31
+ }, z.core.$loose>>;
32
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
4
33
  }, z.core.$loose>;
5
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/competition/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,gBAAgB;;iBAInB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/competition/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAyCzB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM1B,CAAC"}
@@ -1,7 +1,43 @@
1
1
  import * as z from 'zod';
2
- export const CompetitionEntry = z
2
+ import { Competition } from '../common/schema';
3
+ const CompetitionClass = z
3
4
  .object({
4
5
  id: z.number(),
6
+ name: z.string(),
7
+ short_name: z.string().nullable(),
8
+ })
9
+ .loose();
10
+ const Organization = z
11
+ .object({
12
+ id: z.number(),
13
+ name: z.string(),
14
+ club_code: z.string().nullable(),
15
+ school_code: z.string().nullable(),
16
+ onz_region: z
17
+ .object({
18
+ id: z.number(),
19
+ name: z.string(),
20
+ })
21
+ .nullable(),
22
+ })
23
+ .loose();
24
+ const CompetitionEntry = z
25
+ .object({
26
+ id: z.number(),
27
+ competition_class: CompetitionClass.nullable(),
28
+ organization: Organization.nullable(),
29
+ race_runs: z.array(z
30
+ .object({
31
+ score: z.number().nullable(),
32
+ })
33
+ .loose()),
34
+ })
35
+ .loose();
36
+ export const CompetitionScoreRequest = z
37
+ .object({
38
+ competition: Competition,
39
+ entries: z.array(CompetitionEntry),
40
+ config: z.record(z.string(), z.any()),
5
41
  })
6
42
  .loose();
7
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/competition/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACf,CAAC;KACD,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/competition/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,KAAK,EAAE,CAAC;AAEX,MAAM,YAAY,GAAG,CAAC;KACnB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,CAAC;SACV,MAAM,CAAC;QACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;KACjB,CAAC;SACD,QAAQ,EAAE;CACd,CAAC;KACD,KAAK,EAAE,CAAC;AAEX,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,iBAAiB,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IAC9C,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,CAAC,CAAC,KAAK,CAChB,CAAC;SACE,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC7B,CAAC;SACD,KAAK,EAAE,CACX;CACF,CAAC;KACD,KAAK,EAAE,CAAC;AAEX,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;CACtC,CAAC;KACD,KAAK,EAAE,CAAC"}
@@ -49,14 +49,10 @@ export declare const Race: z.ZodObject<{
49
49
  }, z.core.$loose>>;
50
50
  }, z.core.$loose>>;
51
51
  }, z.core.$loose>;
52
- export declare const Competition: z.ZodObject<{
53
- competition_class: z.ZodArray<z.ZodObject<{
54
- id: z.ZodNumber;
55
- short_name: z.ZodString;
56
- }, z.core.$loose>>;
57
- }, z.core.$loose>;
58
52
  export declare const RaceScoreRequest: z.ZodObject<{
59
53
  competition: z.ZodObject<{
54
+ id: z.ZodNumber;
55
+ name: z.ZodString;
60
56
  competition_class: z.ZodArray<z.ZodObject<{
61
57
  id: z.ZodNumber;
62
58
  short_name: z.ZodString;
@@ -112,5 +108,6 @@ export declare const RaceScoreRequest: z.ZodObject<{
112
108
  }, z.core.$loose>>;
113
109
  }, z.core.$loose>>;
114
110
  }, z.core.$loose>;
111
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
115
112
  }, z.core.$loose>;
116
113
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/race/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA0DzB,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKP,CAAC;AASX,eAAO,MAAM,WAAW;;;;;iBAId,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKnB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/race/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA2DzB,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKP,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMnB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import * as z from 'zod';
2
+ import { Competition } from '../common/schema';
2
3
  const RaceFormat = z.object({
3
4
  name: z.string(),
4
5
  race_discipline: z.enum(['FootO']),
@@ -54,21 +55,11 @@ export const Race = z
54
55
  race_class: z.array(RaceClass),
55
56
  })
56
57
  .loose();
57
- const CompetitionClass = z
58
- .object({
59
- id: z.number(),
60
- short_name: z.string(),
61
- })
62
- .loose();
63
- export const Competition = z
64
- .object({
65
- competition_class: z.array(CompetitionClass),
66
- })
67
- .loose();
68
58
  export const RaceScoreRequest = z
69
59
  .object({
70
60
  competition: Competition,
71
61
  race: Race,
62
+ config: z.record(z.string(), z.any()),
72
63
  })
73
64
  .loose();
74
65
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRo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MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;CACtC,CAAC;KACD,KAAK,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o-zone/scorer-core",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Orienteering scoring core library with modular exports",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,18 +25,6 @@
25
25
  "files": [
26
26
  "dist"
27
27
  ],
28
- "scripts": {
29
- "build": "tsc --project tsconfig.build.json",
30
- "build:watch": "tsc --project tsconfig.build.json --watch",
31
- "changes": "bun changeset add",
32
- "changeset": "bun changeset",
33
- "changeset:release": "bun changeset version && npm run build",
34
- "check:types": "tsc --noEmit",
35
- "format": "biome format . --write",
36
- "lint": "biome check .",
37
- "lint:fix": "biome check . --write",
38
- "publishx": "npm run build && bun changeset publish"
39
- },
40
28
  "dependencies": {
41
29
  "zod": "^4.3.6"
42
30
  },
@@ -51,8 +39,18 @@
51
39
  "peerDependencies": {
52
40
  "typescript": "^5"
53
41
  },
54
- "packageManager": "bun@1.3.5",
55
42
  "publishConfig": {
56
43
  "access": "public"
44
+ },
45
+ "scripts": {
46
+ "build": "tsc --project tsconfig.build.json",
47
+ "build:watch": "tsc --project tsconfig.build.json --watch",
48
+ "changes": "pnpm changeset add",
49
+ "changeset:publish": "npm run build && pnpm changeset publish",
50
+ "changeset:release": "pnpm changeset version && npm run build",
51
+ "check:types": "tsc --noEmit",
52
+ "format": "biome format . --write",
53
+ "lint": "biome check .",
54
+ "lint:fix": "biome check . --write"
57
55
  }
58
- }
56
+ }
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export { createRace, type Race } from './race/index.js';
2
- export { createCompetition, type Competition } from './competition/index.js';
3
- export * from './server.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC7E,cAAc,aAAa,CAAC"}
package/dist/index.js DELETED
@@ -1,5 +0,0 @@
1
- // Main entry point for @o-zone/scorer-core
2
- export { createRace } from './race/index.js';
3
- export { createCompetition } from './competition/index.js';
4
- export * from './server.js';
5
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,OAAO,EAAE,UAAU,EAAa,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAoB,MAAM,wBAAwB,CAAC;AAC7E,cAAc,aAAa,CAAC"}