Skip to content

Commit

Permalink
Merge branch 'v4-0-0' into drop-mariadb-support
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicPoullain committed Sep 3, 2023
2 parents 7be35f4 + 1c0a979 commit 415024f
Show file tree
Hide file tree
Showing 82 changed files with 4,680 additions and 1,417 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/daily-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16, 18]
node-version: [18, 20]

services:
mongodb:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [16, 18]
node-version: [18, 20]

env:
SETTINGS_AWS_ACCESS_KEY_ID: ${{ secrets.SETTINGS_AWS_ACCESS_KEY_ID }}
Expand All @@ -29,8 +29,8 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use npm version 8.5
run: npm install -g npm@8.5
- name: Use npm version 9.6
run: npm install -g npm@9.6
- name: Install project dependencies
run: npm install
- name: Install package dependencies and build packages
Expand Down
16 changes: 2 additions & 14 deletions docs/docs/authentication/session-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -1064,26 +1064,14 @@ async function main() {
#### `MongoDBStore`

```
npm install mongodb@4
npm install mongodb@5
```

> The `MongoDBStore` requires version 4 of the [mongodb](https://www.npmjs.com/package/mongodb) package. If you are using TypeORM with MongoDB, which requires version 3, you can have both versions coexist in your `package.json` as follows:
> ```json
> {
> "mongodb": "~3.7.3",
> "mongodb4": "npm:mongodb@~4.3.1",
> }
> ```
>
> ```typescript
> import { MongoClient } from 'mongodb4';
> ```
*index.ts*
```typescript
import { createApp, ServiceManager } from '@foal/core';
import { MongoDBStore } from '@foal/mongodb';
import { MongoClient } from 'mongodb'; // or from 'mongodb4';
import { MongoClient } from 'mongodb';

async function main() {
const mongoDBClient = await MongoClient.connect('mongodb://localhost:27017/db');
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 @@ -49,7 +49,7 @@ FoalTS supports officially the following databases:
| --- | --- | --- |
| PostgreSQL | 9.6+ ([Version Policy](https://www.postgresql.org/support/versioning/)) | `pg@8` |
| MySQL | 5.7+ ([Version Policy](https://en.wikipedia.org/wiki/MySQL#Release_history)) | `mysql@2` |
| SQLite | 3 | `sqlite3@5` and `better-sqlite3@7` (since v2.1) |
| SQLite | 3 | `sqlite3@5` |
| MongoDB | 4.0+ ([Version Policy](https://www.mongodb.com/support-policy)) | `mongodb@3` |

## Use with FoalTS
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/databases/typeorm/mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ foal createapp my-app --mongodb
## Configuration

```
npm install mongodb
npm install mongodb@5
```

<Tabs
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/tutorials/simple-todo-list/1-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ In this tutorial you will learn how to create a basic web application with FoalT

> **Requirements:**
>
> [Node.js](https://nodejs.org/en/) 16 or greater
> [Node.js](https://nodejs.org/en/) 18 or greater
## Create a New Project

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1064,26 +1064,14 @@ async function main() {
#### `MongoDBStore`

```
npm install mongodb@4
npm install mongodb@5
```

> The `MongoDBStore` requires version 4 of the [mongodb](https://www.npmjs.com/package/mongodb) package. If you are using TypeORM with MongoDB, which requires version 3, you can have both versions coexist in your `package.json` as follows:
> ```json
> {
> "mongodb": "~3.7.3",
> "mongodb4": "npm:mongodb@~4.3.1",
> }
> ```
>
> ```typescript
> import { MongoClient } from 'mongodb4';
> ```
*index.ts*
```typescript
import { createApp, ServiceManager } from '@foal/core';
import { MongoDBStore } from '@foal/mongodb';
import { MongoClient } from 'mongodb'; // or from 'mongodb4';
import { MongoClient } from 'mongodb';

async function main() {
const mongoDBClient = await MongoClient.connect('mongodb://localhost:27017/db');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ FoalTS supports officially the following databases:
| --- | --- | --- |
| PostgreSQL | 9.6+ ([Version Policy](https://www.postgresql.org/support/versioning/)) | `pg@8` |
| MySQL | 5.7+ ([Version Policy](https://en.wikipedia.org/wiki/MySQL#Release_history)) | `mysql@2` |
| SQLite | 3 | `sqlite3@5` and `better-sqlite3@7` (since v2.1) |
| SQLite | 3 | `sqlite3@5` |
| MongoDB | 4.0+ ([Version Policy](https://www.mongodb.com/support-policy)) | `mongodb@3` |

## Use with FoalTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ En este tutorial aprenderá a crear una aplicación web básica con FoalTS. La a

> **Requisitos:**
>
> [Node.js](https://nodejs.org/en/) 16 o superior
> [Node.js](https://nodejs.org/en/) 18 o superior
## Crear un Nuevo Proyecto

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1064,26 +1064,14 @@ async function main() {
#### `MongoDBStore`

```
npm install mongodb@4
npm install mongodb@5
```

> The `MongoDBStore` requires version 4 of the [mongodb](https://www.npmjs.com/package/mongodb) package. If you are using TypeORM with MongoDB, which requires version 3, you can have both versions coexist in your `package.json` as follows:
> ```json
> {
> "mongodb": "~3.7.3",
> "mongodb4": "npm:mongodb@~4.3.1",
> }
> ```
>
> ```typescript
> import { MongoClient } from 'mongodb4';
> ```
*index.ts*
```typescript
import { createApp, ServiceManager } from '@foal/core';
import { MongoDBStore } from '@foal/mongodb';
import { MongoClient } from 'mongodb'; // or from 'mongodb4';
import { MongoClient } from 'mongodb';

async function main() {
const mongoDBClient = await MongoClient.connect('mongodb://localhost:27017/db');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ FoalTS supports officially the following databases:
| --- | --- | --- |
| PostgreSQL | 9.6+ ([Version Policy](https://www.postgresql.org/support/versioning/)) | `pg@8` |
| MySQL | 5.7+ ([Version Policy](https://en.wikipedia.org/wiki/MySQL#Release_history)) | `mysql@2` |
| SQLite | 3 | `sqlite3@5` and `better-sqlite3@7` (since v2.1) |
| SQLite | 3 | `sqlite3@5` |
| MongoDB | 4.0+ ([Version Policy](https://www.mongodb.com/support-policy)) | `mongodb@3` |

## Use with FoalTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1064,26 +1064,14 @@ async function main() {
#### `MongoDBStore`

```
npm install mongodb@4
npm install mongodb@5
```

> The `MongoDBStore` requires version 4 of the [mongodb](https://www.npmjs.com/package/mongodb) package. If you are using TypeORM with MongoDB, which requires version 3, you can have both versions coexist in your `package.json` as follows:
> ```json
> {
> "mongodb": "~3.7.3",
> "mongodb4": "npm:mongodb@~4.3.1",
> }
> ```
>
> ```typescript
> import { MongoClient } from 'mongodb4';
> ```
*index.ts*
```typescript
import { createApp, ServiceManager } from '@foal/core';
import { MongoDBStore } from '@foal/mongodb';
import { MongoClient } from 'mongodb'; // or from 'mongodb4';
import { MongoClient } from 'mongodb';

async function main() {
const mongoDBClient = await MongoClient.connect('mongodb://localhost:27017/db');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ FoalTS supports officially the following databases:
| --- | --- | --- |
| PostgreSQL | 9.6+ ([Version Policy](https://www.postgresql.org/support/versioning/)) | `pg@8` |
| MySQL | 5.7+ ([Version Policy](https://en.wikipedia.org/wiki/MySQL#Release_history)) | `mysql@2` |
| SQLite | 3 | `sqlite3@5` and `better-sqlite3@7` (since v2.1) |
| SQLite | 3 | `sqlite3@5` |
| MongoDB | 4.0+ ([Version Policy](https://www.mongodb.com/support-policy)) | `mongodb@3` |

## Use with FoalTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Pada tutorial kali ini kita akan coba membuat aplikasi web dengan Foal. Aplikasi

> **Yang diperlukan:**
>
> [Node.js](https://nodejs.org/en/) versi 16 ke atas
> [Node.js](https://nodejs.org/en/) versi 18 ke atas
## Memulai Proyek Baru

Expand Down
Loading

0 comments on commit 415024f

Please sign in to comment.