File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 99
1010jobs :
1111 test :
12+ name : Test with Node ${{ matrix.node-version }} and reflect-metadata ${{ matrix.reflect-metadata-version }}
1213 runs-on : ubuntu-latest
1314
1415 strategy :
1516 matrix :
1617 node-version : [20.x]
18+ reflect-metadata-version : ["0.1.14", "0.2"] # Test 0.1.14 and latest 0.2.x
1719
1820 env :
1921 OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
2830 cache : ' npm'
2931 - name : Install dependencies
3032 run : npm ci
33+ - name : Install specific reflect-metadata version
34+ run : |
35+ if [[ "${{ matrix.reflect-metadata-version }}" == "0.2" ]]; then
36+ echo "Installing latest 0.2.x version of reflect-metadata"
37+ npm install reflect-metadata@^0.2.0
38+ else
39+ echo "Installing reflect-metadata ${{ matrix.reflect-metadata-version }}"
40+ npm install reflect-metadata@${{ matrix.reflect-metadata-version }}
41+ fi
42+ - name : Verify reflect-metadata version
43+ run : npm list reflect-metadata
3144 - name : Run linting
3245 run : npm run lint
3346 - name : Create empty .env file
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ All notable changes to Schema Forge will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 1.0.3] - 2025-03-27
9+
10+ 1 . Add reflect-metadata v0.1.14 backward-compatibility.
11+
812## [ 1.0.2] - 2025-03-25
913
10141 . Publish ` jsonSchemaToGeminiOldTool ` , ` jsonSchemaToGeminiOldResponseSchema ` that whould be published in 1.0.0.
Original file line number Diff line number Diff line change 11{
22 "name" : " @firefliesai/schema-forge" ,
3- "version" : " 1.0.2 " ,
3+ "version" : " 1.0.3 " ,
44 "main" : " dist/lib/index.js" ,
55 "types" : " dist/lib/index.d.ts" ,
66 "exports" : {
9393 "typescript-eslint" : " ^8.27.0"
9494 },
9595 "peerDependencies" : {
96- "reflect-metadata" : " ^0.2.2 "
96+ "reflect-metadata" : " ^0.1.14 || ^0.2.0 "
9797 }
98- }
98+ }
You can’t perform that action at this time.
0 commit comments