Skip to content

Commit

Permalink
Merge pull request #1291 from FoalTS/upgrade-typeorm-peer-dep
Browse files Browse the repository at this point in the history
Upgrade TypeORM peer dependency to v0.3.20
  • Loading branch information
LoicPoullain authored Aug 24, 2024
2 parents ed9cfa5 + 62ebbd4 commit 6c23242
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 76 deletions.
4 changes: 4 additions & 0 deletions docs/blog/version-5.0-release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Version 5.0 of [Foal](https://foalts.org/) is out!
> }
> ```
## TypeORM upgrade
- The minimum required version of TypeORM is v0.3.20.
## Better typing
- The default type of `Context.state` is now `{}`. This way, you'll get a compilation error if you forget to specify a type for the state.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/authentication/session-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = {
#### TypeORMStore

```
npm install [email protected].17 @foal/typeorm
npm install [email protected].20 @foal/typeorm
```

This store uses the default TypeORM connection whose configuration is usually specified in `config/default.{json|yml|js}`.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/databases/typeorm/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ When creating a new project, an `SQLite` database is used by default as it does
### Packages

```
npm install [email protected].17 @foal/typeorm
npm install [email protected].20 @foal/typeorm
```

Two packages are required to use TypeORM with FoalTS:
Expand Down
90 changes: 26 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/acceptance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"sqlite3": "~5.1.7",
"superagent": "~9.0.1",
"supertest": "~7.0.0",
"typeorm": "0.3.17",
"typeorm": "0.3.20",
"yamljs": "~0.3.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/generate/specs/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@foal/typeorm": "^4.0.0",
"source-map-support": "~0.5.21",
"sqlite3": "~5.1.7",
"typeorm": "0.3.17"
"typeorm": "0.3.20"
},
"devDependencies": {
"@foal/cli": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/generate/specs/app/package.mongodb.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@foal/core": "^4.0.0",
"mongodb": "~5.9.2",
"source-map-support": "~0.5.21",
"typeorm": "0.3.17"
"typeorm": "0.3.20"
},
"devDependencies": {
"@foal/cli": "^4.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@foal/core": "^4.0.0",
"mongodb": "~5.9.2",
"source-map-support": "~0.5.21",
"typeorm": "0.3.17",
"typeorm": "0.3.20",
"yamljs": "~0.3.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/generate/specs/app/package.yaml.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@foal/typeorm": "^4.0.0",
"source-map-support": "~0.5.21",
"sqlite3": "~5.1.7",
"typeorm": "0.3.17",
"typeorm": "0.3.20",
"yamljs": "~0.3.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/generate/templates/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@foal/typeorm": "^4.0.0",
"source-map-support": "~0.5.21",
"sqlite3": "~5.1.7",
"typeorm": "0.3.17"
"typeorm": "0.3.20"
},
"devDependencies": {
"@foal/cli": "^4.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@foal/core": "^4.0.0",
"mongodb": "~5.9.2",
"source-map-support": "~0.5.21",
"typeorm": "0.3.17"
"typeorm": "0.3.20"
},
"devDependencies": {
"@foal/cli": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"graphql": "~16.9.0",
"source-map-support": "~0.5.21",
"sqlite3": "~5.1.7",
"typeorm": "0.3.17",
"typeorm": "0.3.20",
"yamljs": "~0.3.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/typeorm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@foal/core": "^4.5.0"
},
"peerDependencies": {
"typeorm": "^0.3.17"
"typeorm": "^0.3.20"
},
"devDependencies": {
"@types/mocha": "10.0.7",
Expand All @@ -61,7 +61,7 @@
"rimraf": "~5.0.5",
"sqlite3": "~5.1.7",
"ts-node": "~10.9.2",
"typeorm": "0.3.17",
"typeorm": "0.3.20",
"typescript": "~5.5.4"
}
}

0 comments on commit 6c23242

Please sign in to comment.