Skip to content

Commit

Permalink
chore(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Oct 28, 2024
1 parent cdf32ed commit 4d0492e
Show file tree
Hide file tree
Showing 8 changed files with 5,445 additions and 3,307 deletions.
1,068 changes: 709 additions & 359 deletions package-lock.json

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@
"main": "./lib/index.js",
"scripts": {
"prebuild": "rm -rf './lib'",
"build": "npx tsc",
"eslint:checker": "npx eslint . --ext .js,.ts",
"eslint:fix": "npx eslint . --fix --config ./.eslintrc.json",
"prettier:checker": "npx prettier --check .",
"prettier:fix": "npx prettier --write .github/workflows/*.yml .",
"update": "npx npu && npm i --ignore-scripts; npm audit fix",
"build": "tsc",
"eslint:checker": "eslint . --ext .js,.ts",
"eslint:fix": "eslint . --fix --config ./.eslintrc.json",
"prettier:checker": "prettier --check .",
"prettier:fix": "prettier --write .github/workflows/*.yml .",
"update": "pu minor && npm i --ignore-scripts; npm audit fix",
"docker:down": "docker compose -f ./test/docker-compose.yml -p mysql2-orm down",
"docker:up": "docker compose -f ./test/docker-compose.yml -p mysql2-orm up -d",
"pretest": "npx tsc -p tsconfig.test.json && npx tsc --noEmit",
"test": "npx tsx test/index.test.ts",
"pretest": "tsc -p tsconfig.test.json && npx tsc --noEmit",
"test": "poku -p test",
"pretest:ci": "npm run docker:down && npm run docker:up",
"test:ci": "npm run eslint:checker && npm run prettier:checker && npx tsx test/index.test.ts",
"test:ci": "npm run eslint:checker && npm run prettier:checker && npm run test",
"posttest:ci": "npm run docker:down"
},
"dependencies": {
"mysql2": "^3.9.7"
"mysql2": "^3.11.3"
},
"devDependencies": {
"@types/node": "^20.12.7",
"@types/node": "^22.8.1",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"packages-update": "^1.2.1",
"poku": "^1.9.3",
"prettier": "^3.2.5",
"tsx": "^4.7.2",
"typescript": "^5.4.5"
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.1",
"packages-update": "^2.0.0",
"poku": "^2.7.1",
"prettier": "^3.3.3",
"tsx": "^4.19.2",
"typescript": "^5.6.3"
},
"license": "MIT",
"repository": {
Expand Down
5 changes: 0 additions & 5 deletions test/index.test.ts

This file was deleted.

6 changes: 3 additions & 3 deletions website/docs/documentation/queries/where.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ WHERE (`age` >= ? AND `status` = ?) OR (`age` < ? AND `status` = ?);

You can also use `where` as a string, creating your conditions and passing the params manually:

> <XOctagon className='warn' width={13} height={13} /> **Discouraged:** You may prefer
> to use a more robust ORM in these cases that covers native **MySQL Server** functions,
> such as `NOW`, `YEAR`, etc.
> <XOctagon className='warn' width={13} height={13} /> **Discouraged:** You may
> prefer to use a more robust ORM in these cases that covers native **MySQL
> Server** functions, such as `NOW`, `YEAR`, etc.
```ts
// highlight-start
Expand Down
13 changes: 7 additions & 6 deletions website/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,13 @@ See all available operators [here](/docs/category/operators).

## When Not to Use the ORM Class

- <XOctagon className='warn' width={13} height={13} /> Avoid using the ORM transaction
in scenarios that require parallel execution of multiple transactions in asynchronous
loops (no `await`). The connection management can hinder efficiency in high concurrency
scenarios where several transactions need to be processed at the same time in the
same node process. This limitation doesn't apply to **QueryBuilder** or scenarios
that properly utilize synchronous operations and `await` to manage transactions.
- <XOctagon className='warn' width={13} height={13} /> Avoid using the ORM
transaction in scenarios that require parallel execution of multiple
transactions in asynchronous loops (no `await`). The connection management can
hinder efficiency in high concurrency scenarios where several transactions
need to be processed at the same time in the same node process. This
limitation doesn't apply to **QueryBuilder** or scenarios that properly
utilize synchronous operations and `await` to manage transactions.
- When you need _Models_ (such as [Sequelize](https://sequelize.org), [TypeORM](https://typeorm.io), etc.).

<hr />
Expand Down
Loading

0 comments on commit 4d0492e

Please sign in to comment.