@contractspec/lib.contracts-library 3.0.0 → 3.1.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.
@@ -3,7 +3,7 @@ $ bun run prebuild && bun run build:bundle && bun run build:types
3
3
  $ contractspec-bun-build prebuild
4
4
  $ contractspec-bun-build transpile
5
5
  [contractspec-bun-build] transpile target=bun root=src entries=5
6
- Bundled 5 modules in 21ms
6
+ Bundled 5 modules in 28ms
7
7
 
8
8
  ./index.js 5.1 KB (entry point)
9
9
  templates/index.js 5.1 KB (entry point)
@@ -12,7 +12,7 @@ Bundled 5 modules in 21ms
12
12
  templates/todos.js 1.70 KB (entry point)
13
13
 
14
14
  [contractspec-bun-build] transpile target=node root=src entries=5
15
- Bundled 5 modules in 20ms
15
+ Bundled 5 modules in 26ms
16
16
 
17
17
  ./index.js 5.1 KB (entry point)
18
18
  templates/index.js 5.1 KB (entry point)
@@ -21,7 +21,7 @@ Bundled 5 modules in 20ms
21
21
  templates/todos.js 1.69 KB (entry point)
22
22
 
23
23
  [contractspec-bun-build] transpile target=browser root=src entries=5
24
- Bundled 5 modules in 36ms
24
+ Bundled 5 modules in 27ms
25
25
 
26
26
  ./index.js 5.1 KB (entry point)
27
27
  templates/index.js 5.1 KB (entry point)
package/AGENTS.md CHANGED
@@ -1,28 +1,27 @@
1
- # lib.contracts-library
1
+ # AI Agent Guide — `@contractspec/lib.contracts-library`
2
+
3
+ Scope: `packages/libs/contracts-library/*`
2
4
 
3
5
  Contract definitions for library templates and local runtime.
4
6
 
5
7
  ## Quick Context
6
8
 
7
- - **Type**: Library (contracts)
9
+ - **Layer**: lib
8
10
  - **Consumers**: `bundle.library`
9
11
 
10
- ## Exports
12
+ ## Public Exports
11
13
 
12
14
  - `./templates` — Template contracts
13
15
  - `./templates/recipes` — Recipe specs
14
16
  - `./templates/todos` — Todo specs
15
17
 
16
- ## Usage
18
+ ## Guardrails
17
19
 
18
- ```typescript
19
- import { RecipeSpec } from '@contractspec/lib.contracts-library/templates/recipes';
20
- ```
20
+ - Template contracts define the shape consumed by bundle.library — breaking changes cascade to all template renderers.
21
+ - Keep contract schemas additive; avoid removing or renaming fields without a migration path.
21
22
 
22
- ## Commands
23
+ ## Local Commands
23
24
 
24
- ```bash
25
- bun build # Build library
26
- bun build:types # Type check
27
- bun lint # Lint code
28
- ```
25
+ - Build: `bun run build`
26
+ - Types: `bun run build:types`
27
+ - Lint: `bun run lint`
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @contractspec/lib.contracts-library
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [02c0cc5]
8
+ - @contractspec/lib.contracts-spec@3.1.1
9
+
10
+ ## 3.1.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 28987eb: chore: upgrade dependencies
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [f2a4faf]
19
+ - Updated dependencies [28987eb]
20
+ - Updated dependencies [28987eb]
21
+ - @contractspec/lib.contracts-spec@3.1.0
22
+ - @contractspec/lib.schema@3.1.0
23
+
3
24
  ## 3.0.0
4
25
 
5
26
  ### Major Changes
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Chaman Ventures, SASU
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/lib.contracts-library",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
@@ -111,12 +111,12 @@
111
111
  "main": "./dist/index.js",
112
112
  "types": "./dist/index.d.ts",
113
113
  "dependencies": {
114
- "@contractspec/lib.contracts-spec": "3.0.0",
115
- "@contractspec/lib.schema": "3.0.0"
114
+ "@contractspec/lib.contracts-spec": "3.1.1",
115
+ "@contractspec/lib.schema": "3.1.0"
116
116
  },
117
117
  "devDependencies": {
118
- "@contractspec/tool.typescript": "3.0.0",
118
+ "@contractspec/tool.typescript": "3.1.0",
119
119
  "typescript": "^5.9.3",
120
- "@contractspec/tool.bun": "3.0.0"
120
+ "@contractspec/tool.bun": "3.1.0"
121
121
  }
122
122
  }