Skip to content

Commit f078790

Browse files
committed
chore: add reflect-metadata v0.1.14 backward-compatibility
1 parent 9030945 commit f078790

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ on:
99

1010
jobs:
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 }}
@@ -28,6 +30,17 @@ jobs:
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

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to Schema Forge will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and 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

1014
1. Publish `jsonSchemaToGeminiOldTool`, `jsonSchemaToGeminiOldResponseSchema` that whould be published in 1.0.0.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {
@@ -93,6 +93,6 @@
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+
}

0 commit comments

Comments
 (0)