Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/actions/build-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ runs:
- uses: ./.github/actions/setup-node
with:
working-directory: ./docs
ignore-workspace: true

- run: pnpm run build
shell: bash
Expand Down
6 changes: 1 addition & 5 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ inputs:
description: Download build artifact
required: false
default: "false"
ignore-workspace:
description: Ignore the repository workspace when installing dependencies
required: false
default: "false"

runs:
using: composite
Expand All @@ -28,7 +24,7 @@ runs:
node-version: ${{ inputs.node-version }}
cache: pnpm

- run: pnpm install --frozen-lockfile ${{ inputs.ignore-workspace == 'true' && '--ignore-workspace' || '' }}
- run: pnpm install --frozen-lockfile
shell: bash
working-directory: ${{ inputs.working-directory || '.' }}

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/upload-coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
runs:
using: composite
steps:
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: coverage-${{ inputs.name }}
path: packages/typeorm/coverage/lcov.info
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Initialize CodeQL
uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
languages: javascript-typescript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
category: "/language:javascript-typescript"
2 changes: 1 addition & 1 deletion .github/workflows/mutation-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: mutation-testing
path: ./packages/typeorm/reports/mutation/mutation.html
12 changes: 12 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
- *ci
- packages/codemod/**

legacy-naming-strategies:
- *ci
- packages/legacy-naming-strategies/**

preview:
needs: detect-changes
if: needs.detect-changes.outputs.changes != '[]'
Expand All @@ -65,5 +69,13 @@ jobs:
echo "PACKAGES=${{ env.PACKAGES }} ./packages/codemod" >> "$GITHUB_ENV"
working-directory: packages/codemod

# @typeorm/legacy-naming-strategies
- name: build legacy-naming-strategies
if: contains(needs.detect-changes.outputs.changes, 'legacy-naming-strategies')
run: |
pnpm run build
echo "PACKAGES=${{ env.PACKAGES }} ./packages/legacy-naming-strategies" >> "$GITHUB_ENV"
working-directory: packages/legacy-naming-strategies

# publish
- run: pnpm exec pkg-pr-new publish ${{ env.PACKAGES }} --template='./playground'
14 changes: 8 additions & 6 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
#
# | Trigger | Target | Branch | Version | Tag |
# |----------------|-----------|--------|----------------------------|--------------------|
# | GitHub Release | | v0.3 | 0.3.29 | latest/legacy (*) |
# | GitHub Release | | v0 | 0.3.29 | latest/legacy (*) |
# | GitHub Release | | master | 1.0.0 | latest (*) |
# | GitHub Release | | master | 1.0.0-pre | next |
# | GitHub Release | | master | 1.0.0-rc.1 | next |
# | Schedule | | v0.3 | 0.3.29-nightly.20260309 | nightly |
# | Schedule | | master | 1.0.0-nightly.20260309 | dev |
# | Manual | release | master | (same as GitHub Release) | (auto) |
# | Manual | master | master | 1.0.0-nightly.20260309 | dev |
# | Manual | v0.3 | v0.3 | 0.3.29-nightly.20260309 | nightly |
# | Manual | v0 | v0 | 0.3.29-nightly.20260309 | nightly |
#
# (*) Tag detection for releases: prerelease suffix → "next", stable → "latest" only if
# the version is greater than the current "latest" (prevents older branches from
Expand Down Expand Up @@ -60,7 +59,7 @@ jobs:
echo 'matrix=[{"target":"release"}]' >> $GITHUB_OUTPUT
;;
schedule)
echo 'matrix=[{"ref":"master","tag":"dev","node":"26"},{"ref":"v0","tag":"nightly","node":"20"}]' >> $GITHUB_OUTPUT
echo 'matrix=[{"ref":"master","tag":"dev","node":"26"}]' >> $GITHUB_OUTPUT
;;
workflow_dispatch)
TARGET="${{ inputs.target }}"
Expand All @@ -70,9 +69,12 @@ jobs:
if [ "$TARGET" == "master" ]; then
TAG="dev"
NODE="26"
else
elif [ "$TARGET" == "v0" ]; then
TAG="nightly"
NODE="20"
else
echo "Unknown target: $TARGET"
exit 1
fi
echo "matrix=[{\"ref\":\"$TARGET\",\"tag\":\"$TAG\",\"node\":\"$NODE\"}]" >> $GITHUB_OUTPUT
fi
Expand All @@ -97,7 +99,7 @@ jobs:
with:
ref: ${{ matrix.ref || github.ref }}

- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1

- name: Check if there are new commits since last publish (nightly) or if it's a release
id: publishable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
permissions:
pull-requests: read
steps:
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
- uses: amannn/action-semantic-pull-request@2252a14e810aa9b85c2d560bd7070c802206ecf6 # v6.1.2
with:
types: |
build
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:8.2.5
image: mongo:9.0.8
ports:
- "27017:27017"
steps:
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
MYSQL_PASSWORD: password
MYSQL_DATABASE: typeorm
mariadb:
image: mariadb:10.11.16
image: mariadb:10.11.19
ports:
- "3307:3306"
env:
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:9.5.0
image: mysql:26.10.0
ports:
- "3306:3306"
env:
Expand All @@ -173,7 +173,7 @@ jobs:
MYSQL_PASSWORD: password
MYSQL_DATABASE: typeorm
mariadb:
image: mariadb:12.2.2
image: mariadb:13.0.2
ports:
- "3307:3306"
env:
Expand Down Expand Up @@ -309,6 +309,7 @@ jobs:
- uses: ./.github/actions/upload-coverage
with:
name: spanner-node-${{ inputs.node-version }}-linux

sqljs:
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- pr_compliance_checklist.yaml

docs: &docs
- *package-json
- docs/**/*

src: &src
Expand Down Expand Up @@ -68,8 +69,7 @@ jobs:
- packages/**

codemod:
- pnpm-lock.yaml
- pnpm-workspace.yaml
- *package-json
- packages/codemod/**/*

legacy-naming-strategies:
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
- run: pnpm run compile
- run: pnpm run package

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: build
path: packages/typeorm/build/
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [20, 26]
node-version: [22, 26]
uses: ./.github/workflows/tests-linux.yml
with:
node-version: ${{matrix.node-version}}
Expand All @@ -158,7 +158,7 @@ jobs:
- uses: ./.github/actions/setup-node
- run: pnpm exec c8 pnpm test
working-directory: packages/codemod
- uses: SonarSource/sonarqube-scan-action@d209202bc7d53ff1cc128f7f907dac145c9d6ae9 # v8.3.0
- uses: SonarSource/sonarqube-scan-action@59202af334b4ba7b5db01b701b8e79f8b3bef0f4 # v8.5.0
if: needs.detect-changes.outputs.sonar == 'true'
with:
projectBaseDir: packages/codemod
Expand All @@ -182,7 +182,7 @@ jobs:
download-build: true
- run: pnpm exec c8 pnpm test
working-directory: packages/legacy-naming-strategies
- uses: SonarSource/sonarqube-scan-action@d209202bc7d53ff1cc128f7f907dac145c9d6ae9 # v8.3.0
- uses: SonarSource/sonarqube-scan-action@59202af334b4ba7b5db01b701b8e79f8b3bef0f4 # v8.5.0
if: needs.detect-changes.outputs.sonar == 'true'
with:
projectBaseDir: packages/legacy-naming-strategies
Expand All @@ -205,7 +205,7 @@ jobs:
pattern: coverage-*
path: packages/typeorm/coverage/

- uses: SonarSource/sonarqube-scan-action@d209202bc7d53ff1cc128f7f907dac145c9d6ae9 # v8.3.0
- uses: SonarSource/sonarqube-scan-action@59202af334b4ba7b5db01b701b8e79f8b3bef0f4 # v8.5.0
if: needs.detect-changes.outputs.sonar == 'true'
with:
projectBaseDir: packages/typeorm
Expand Down
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"[css][javascript][json][jsonc][markdown][typescript][typescriptreact][yaml]": {
"[css][javascript][json][jsonc][markdown][toml][typescript][typescriptreact][yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": true,
"git.branchProtection": ["master"],
"js/ts.tsdk.path": "packages/typeorm/node_modules/typescript/lib"
"js/ts.tsdk.path": "node_modules/typescript/lib"
}
16 changes: 8 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ services:
MYSQL_PASSWORD: "password"
MYSQL_DATABASE: "typeorm"

mysql-9:
image: "mysql:26.7.0"
container_name: "typeorm-mysql-9"
mysql-26:
image: "mysql:26.10.0"
container_name: "typeorm-mysql-26"
ports:
- "3306:3306"
environment:
Expand All @@ -34,9 +34,9 @@ services:
MYSQL_PASSWORD: "password"
MYSQL_DATABASE: "typeorm"

mariadb-12:
image: "mariadb:12.3.3"
container_name: "typeorm-mariadb-12"
mariadb-13:
image: "mariadb:13.0.2"
container_name: "typeorm-mariadb-13"
ports:
- "3307:3306"
environment:
Expand Down Expand Up @@ -99,7 +99,7 @@ services:

# oracle
oracle:
image: "container-registry.oracle.com/database/free:23.7.0.0-lite"
image: "container-registry.oracle.com/database/free:23.26.3.0-lite"
container_name: "typeorm-oracle"
ports:
- "1521:1521"
Expand Down Expand Up @@ -161,7 +161,7 @@ services:

# mongodb
mongodb:
image: "mongo:8.3.8"
image: "mongo:9.0.8"
container_name: "typeorm-mongodb"
ports:
- "27017:27017"
19 changes: 5 additions & 14 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,16 @@
"@signalwire/docusaurus-plugin-llms-txt": "^1.2.2",
"clsx": "^2.1.1",
"docusaurus-lunr-search": "^3.6.0",
"lucide-react": "^1.38.0",
"lucide-react": "^1.76.0",
"lunr": "^2.3.9",
"prism-react-renderer": "^2.4.1",
"react": "^19.2.8",
"react-dom": "^19.2.8"
"react": "^19.3.1",
"react-dom": "^19.3.1",
"search-insights": "2.17.3"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.10.2",
"@docusaurus/tsconfig": "^3.10.2",
"@docusaurus/types": "^3.10.2",
"typescript": "^5.9.3"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=20.0"
},
"pnpm": {
"ignoredBuiltDependencies": [
"core-js"
]
"@docusaurus/types": "^3.10.2"
}
}
Loading
Loading