@klerick/json-api-nestjs-typeorm 0.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +24 -0
  3. package/package.json +63 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ ## 0.1.0-beta.0 (2025-05-21)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **json-api-nestjs-typeorm:** Adapter for typerorm ([f25d319](https://github.com/klerick/nestjs-json-api/commit/f25d319))
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **json-api-nestjs-typeorm, json-api-nestjs-microorm:** Fix mysql like error ([780bbf9](https://github.com/klerick/nestjs-json-api/commit/780bbf9))
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - Alex H
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # json-api-nestjs-typeorm
2
+
3
+ TypeOrm adapter for **[json-api-nestjs](https://github.com/klerick/nestjs-json-api/tree/master/libs/json-api/json-api-nestjs)**
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ $ npm install @klerick/json-api-nestjs-typeorm
9
+ ```
10
+
11
+
12
+ ## Configuration params
13
+
14
+ The following interface is using for the configuration:
15
+
16
+ ```typescript
17
+ export type TypeOrmParam = {
18
+ useSoftDelete?: boolean // Use soft delete
19
+ runInTransaction?: <Func extends (...args: any) => any>(
20
+ isolationLevel: IsolationLevel,
21
+ fn: Func
22
+ ) => ReturnType<Func> // You can use cutom function for wrapping transaction in atomic operation, example: runInTransaction from https://github.com/Aliheym/typeorm-transactional
23
+ };
24
+ ```
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@klerick/json-api-nestjs-typeorm",
3
+ "version": "0.1.0-beta.1",
4
+ "license": "MIT",
5
+ "private": false,
6
+ "contributors": [
7
+ {
8
+ "email": "klerick666@gmain.com",
9
+ "name": "Aleksandr Kharkovey"
10
+ }
11
+ ],
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/klerick/nestjs-json-api.git"
15
+ },
16
+ "engines": {
17
+ "node": ">= 20.0.0"
18
+ },
19
+ "dependencies": {
20
+ "@mikro-orm/core": "^6.4.3",
21
+ "@nestjs/common": "^11.0.10",
22
+ "@nestjs/typeorm": "^11.0.0",
23
+ "change-case-commonjs": "^5.4.4",
24
+ "reflect-metadata": "^0.1.12 || ^0.2.0",
25
+ "rxjs": "^7.1.0",
26
+ "tslib": ">2.3.0",
27
+ "typeorm": "^0.3.20"
28
+ },
29
+ "type": "commonjs",
30
+ "main": "./src/index.js",
31
+ "typings": "./src/index.d.ts",
32
+ "description": "MicroOrm adapter for JsonApi Plugin for NestJs",
33
+ "keywords": [
34
+ "nestjs",
35
+ "nest",
36
+ "jsonapi",
37
+ "json-api",
38
+ "typeorm",
39
+ "microorm",
40
+ "CRUD"
41
+ ],
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "peerDependencies": {
46
+ "@anatine/zod-openapi": "2.2.7",
47
+ "@klerick/json-api-nestjs": "10.0.0-beta.1",
48
+ "@klerick/json-api-nestjs-shared": "1.0.0-beta.1",
49
+ "@nestjs/core": "11.0.10",
50
+ "@nestjs/swagger": "11.0.4",
51
+ "ts-toolbelt": "9.6.0",
52
+ "zod": "3.24.1",
53
+ "zod-validation-error": "3.4.0"
54
+ },
55
+ "exports": {
56
+ "./package.json": "./package.json",
57
+ ".": {
58
+ "types": "./src/index.d.ts",
59
+ "default": "./src/index.js"
60
+ }
61
+ },
62
+ "types": "./src/index.d.ts"
63
+ }