@pkgverse/prismock 2.0.0-beta.1 → 2.0.0-beta.5

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 (2) hide show
  1. package/CHANGELOG.md +111 -0
  2. package/package.json +6 -5
package/CHANGELOG.md ADDED
@@ -0,0 +1,111 @@
1
+ # 1.0.0-beta.1 (2025-11-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 🐛 🐛 add support for nested create with multiple items ([54e8731](https://github.com/JQuezada0/prismock/commit/54e873123bb03849dece0141799e769e23dd9b6e)), closes [#618](https://github.com/JQuezada0/prismock/issues/618)
7
+ * 🐛 Add support for nested select/include on create ([0ec8184](https://github.com/JQuezada0/prismock/commit/0ec81844440ffa78af1523097b421113afa0ed6b))
8
+ * 🐛 Correct Array.slice() with both skip + take ([40ba3c2](https://github.com/JQuezada0/prismock/commit/40ba3c2fbecd0e0fed9f98d993986b9e951531ca))
9
+ * 🐛 correctly manage nested operations with update ([a07ff92](https://github.com/JQuezada0/prismock/commit/a07ff929384fc11fa926b045e5b3dc8507b014cd))
10
+ * 🐛 correctly use default value ([0f3b1ca](https://github.com/JQuezada0/prismock/commit/0f3b1ca68fb09e70846f412ea772216f61c520c2)), closes [#560](https://github.com/JQuezada0/prismock/issues/560)
11
+ * 🐛 correctly use nested create ([e97fc7d](https://github.com/JQuezada0/prismock/commit/e97fc7dcb75bd90afaee8d2a6cefb9cf4329db70)), closes [#768](https://github.com/JQuezada0/prismock/issues/768)
12
+ * 🐛 create with no data ([665fb43](https://github.com/JQuezada0/prismock/commit/665fb4341537e752d1e31cb3bf76300a9c1eec87)), closes [#1096](https://github.com/JQuezada0/prismock/issues/1096)
13
+ * 🐛 don't include relations with include false ([ceae6ca](https://github.com/JQuezada0/prismock/commit/ceae6ca11261cee5f6ad7003c53f0abbfe975140)), closes [#953](https://github.com/JQuezada0/prismock/issues/953)
14
+ * 🐛 ensure we don't accept null from lt/lte filters ([34add0c](https://github.com/JQuezada0/prismock/commit/34add0cd5d290216294b26c4e14d2718cb8f31b1)), closes [#771](https://github.com/JQuezada0/prismock/issues/771)
15
+ * 🐛 find test ([6e9778d](https://github.com/JQuezada0/prismock/commit/6e9778de60ca045546311c5e496f8dad0ac7001c))
16
+ * 🐛 ignore undefined values given to update ([f3dbeca](https://github.com/JQuezada0/prismock/commit/f3dbecaef27aaec5c575a1612a0fa4665b0608f5))
17
+ * 🐛 make orderBy compatible with mysql & postgre ([2d5c4cd](https://github.com/JQuezada0/prismock/commit/2d5c4cd004403a80051583a45ef4ccd0a9b8ae23))
18
+ * 🐛 properly query with child: null ([2e7e30d](https://github.com/JQuezada0/prismock/commit/2e7e30dfc7608f707b46f3e6c57a7e16087a8a01)), closes [#1075](https://github.com/JQuezada0/prismock/issues/1075)
19
+ * 🐛 properly use create with many on update ([db17b3f](https://github.com/JQuezada0/prismock/commit/db17b3f974e8150d6f75ed934743950d9ccb14b4)), closes [#1016](https://github.com/JQuezada0/prismock/issues/1016)
20
+ * 🐛 remove duplicate include (in select and connect) ([8bac544](https://github.com/JQuezada0/prismock/commit/8bac54482fa7fb3f5d5dbaaaedc62b9f5af64cf0))
21
+ * add object id generation ([eeec13b](https://github.com/JQuezada0/prismock/commit/eeec13b99d770e19219899a5a06e2a65cfeb0144))
22
+ * allow non-scalar lists to be pushed ([8f8acbc](https://github.com/JQuezada0/prismock/commit/8f8acbc026ac4a5a58a93a8a3a59f269dea817a6))
23
+ * avoid using generated types ([eb0d880](https://github.com/JQuezada0/prismock/commit/eb0d880bcd55fc5a0f5404dd70f6dedb188a3dce))
24
+ * bug in scalar list push support that would push the push function of arrays onto each array ([4281ac7](https://github.com/JQuezada0/prismock/commit/4281ac753c71dbb479d0700952d3aa00419ec36d))
25
+ * createMany with update ([d727559](https://github.com/JQuezada0/prismock/commit/d727559b457cb37220c12477966d70bc947f8ec1))
26
+ * datetime querying ([83b9136](https://github.com/JQuezada0/prismock/commit/83b91364b85090080cd5fec639c68b6e3e25953b))
27
+ * deploy correctly ([218c1c1](https://github.com/JQuezada0/prismock/commit/218c1c146e86c175dcdff2f5c3de08a2b9d5af35))
28
+ * **deps:** update dependency bson to v4.7.1 ([9377451](https://github.com/JQuezada0/prismock/commit/9377451cb25afea299d31aea0b47430d84009d96))
29
+ * **deps:** update dependency bson to v4.7.2 ([3148ac2](https://github.com/JQuezada0/prismock/commit/3148ac281fd14f33c953ccabb18c634f40728519))
30
+ * **deps:** update dependency bson to v5 ([85da7e6](https://github.com/JQuezada0/prismock/commit/85da7e6a6d603052368bab12d23ed0db254a0d3b))
31
+ * **deps:** update dependency bson to v5.0.1 ([5893ea2](https://github.com/JQuezada0/prismock/commit/5893ea2c36df4396fde8a5ff3ed943e51c34bf72))
32
+ * **deps:** update dependency bson to v5.1.0 ([5494250](https://github.com/JQuezada0/prismock/commit/5494250b6dbad344f865126c709e5028290795ee))
33
+ * **deps:** update dependency bson to v5.2.0 ([b01a762](https://github.com/JQuezada0/prismock/commit/b01a762e787b7c315fe3a39e2f58268a264e5e64))
34
+ * **deps:** update dependency bson to v5.3.0 ([9aa563e](https://github.com/JQuezada0/prismock/commit/9aa563e67d208ac523bb85120ec18d3f036416cf))
35
+ * **deps:** update dependency bson to v5.4.0 ([0f9e91d](https://github.com/JQuezada0/prismock/commit/0f9e91dee718f91d72edcdaa75aa93c98ba19d53))
36
+ * **deps:** update dependency bson to v6 ([5e828b1](https://github.com/JQuezada0/prismock/commit/5e828b1b11bdd197384c9d5fc1b135daa2c2b68b))
37
+ * **deps:** update dependency bson to v6.1.0 ([8d3a678](https://github.com/JQuezada0/prismock/commit/8d3a67882b65d8dc62e8e248372e2053667b2736))
38
+ * **deps:** update dependency bson to v6.10.0 ([#1169](https://github.com/JQuezada0/prismock/issues/1169)) ([b4dbe16](https://github.com/JQuezada0/prismock/commit/b4dbe16dcd2b386b027120a6289223235e075e46))
39
+ * **deps:** update dependency bson to v6.10.0 ([#1169](https://github.com/JQuezada0/prismock/issues/1169)) ([df6fb97](https://github.com/JQuezada0/prismock/commit/df6fb97523cd8c5133b51999c3c4128a30317c0b))
40
+ * **deps:** update dependency bson to v6.10.1 ([#1188](https://github.com/JQuezada0/prismock/issues/1188)) ([48a341b](https://github.com/JQuezada0/prismock/commit/48a341ba35fac491b78796f6e346046fac7302bf))
41
+ * **deps:** update dependency bson to v6.10.1 ([#1188](https://github.com/JQuezada0/prismock/issues/1188)) ([b65bf33](https://github.com/JQuezada0/prismock/commit/b65bf33c46410377c82c80d6b613103cacb170e9))
42
+ * **deps:** update dependency bson to v6.10.2 ([#1233](https://github.com/JQuezada0/prismock/issues/1233)) ([9acea37](https://github.com/JQuezada0/prismock/commit/9acea37d643004415a31ea3e4c65c5400585ce00))
43
+ * **deps:** update dependency bson to v6.10.3 ([#1248](https://github.com/JQuezada0/prismock/issues/1248)) ([2739a47](https://github.com/JQuezada0/prismock/commit/2739a478ec9507ecdf275be87b6a5d798a3eff75))
44
+ * **deps:** update dependency bson to v6.10.4 ([#1351](https://github.com/JQuezada0/prismock/issues/1351)) ([68eb60e](https://github.com/JQuezada0/prismock/commit/68eb60e9ce3aec9224ac3be50af5e48b5cee4f4b))
45
+ * **deps:** update dependency bson to v6.2.0 ([db78832](https://github.com/JQuezada0/prismock/commit/db788323080b7d5b273da2c31d8c46a3590a7127))
46
+ * **deps:** update dependency bson to v6.3.0 ([6053c0e](https://github.com/JQuezada0/prismock/commit/6053c0eda0ddad7bc5ced6e9b936608d3485f2e4))
47
+ * **deps:** update dependency bson to v6.4.0 ([613f388](https://github.com/JQuezada0/prismock/commit/613f3884e6e7737e1d29f4eb831fc1992bc9cfa4))
48
+ * **deps:** update dependency bson to v6.5.0 ([88de544](https://github.com/JQuezada0/prismock/commit/88de544abd4daaa27002cae9f1341c109a238187))
49
+ * **deps:** update dependency bson to v6.6.0 ([78df73b](https://github.com/JQuezada0/prismock/commit/78df73b6fcb79bb3286d88331306a1a01393a48a))
50
+ * **deps:** update dependency bson to v6.7.0 ([f7aade0](https://github.com/JQuezada0/prismock/commit/f7aade0786514a86c864f4d049c2e8dc73a57ab0))
51
+ * **deps:** update dependency bson to v6.7.0 ([6d22abb](https://github.com/JQuezada0/prismock/commit/6d22abb3f53c0a655838b151f18d72c577f82794))
52
+ * **deps:** update dependency bson to v6.8.0 ([301e801](https://github.com/JQuezada0/prismock/commit/301e801f949604c8bac51f3285ef2cfa70ec86f8))
53
+ * **deps:** update dependency bson to v6.9.0 ([83c0645](https://github.com/JQuezada0/prismock/commit/83c0645079984b006df097a4af3af82af01e61b4))
54
+ * **deps:** update dependency bson to v6.9.0 ([9c63be1](https://github.com/JQuezada0/prismock/commit/9c63be1370d4abe5cadfb60daebd030000f6b82f))
55
+ * ensure the right data is stored ([9ba689f](https://github.com/JQuezada0/prismock/commit/9ba689fa7b81e2f39ef1860af5728ecdd1e2e1c9))
56
+ * **find-unique:** valid/fix all non-regression test ([b1c4a09](https://github.com/JQuezada0/prismock/commit/b1c4a09c2e9cabfdb1d214481e2d073ce0bff5ae))
57
+ * findFirst method ([ee42278](https://github.com/JQuezada0/prismock/commit/ee42278322bbcca9f5e5dd15d774e69810f624cf))
58
+ * fix issue with compound ids with default names ([ebcd75d](https://github.com/JQuezada0/prismock/commit/ebcd75df28a58b5fc805a5d473b5117753b9bc01))
59
+ * handle NOT when non-array ([1eb539f](https://github.com/JQuezada0/prismock/commit/1eb539f5f0b5d47bcca1e204e4c5d0d5175ba330))
60
+ * show right example with prismock client ([8473d1e](https://github.com/JQuezada0/prismock/commit/8473d1e37b34796bbd95841c74a04afe4f02631d))
61
+
62
+
63
+ ### Features
64
+
65
+ * :technologist: delete raises PrismaClientKnownRequestError [#1082](https://github.com/JQuezada0/prismock/issues/1082) ([e1222b2](https://github.com/JQuezada0/prismock/commit/e1222b23938a318f8ffc03b4fedb715ff867d7f5))
66
+ * :technologist: findOrThrow raises PrismaClientKnownRequestError [#1082](https://github.com/JQuezada0/prismock/issues/1082) ([e820060](https://github.com/JQuezada0/prismock/commit/e820060faa31441c2d569caad282be224d640e70))
67
+ * :technologist: update raises PrismaClientKnownRequestError [#1082](https://github.com/JQuezada0/prismock/issues/1082) ([a911b08](https://github.com/JQuezada0/prismock/commit/a911b08c148c9804976bc3d2cfe73de9c1bddcdc))
68
+ * @[@unique](https://github.com/unique) support ([9f7d5fc](https://github.com/JQuezada0/prismock/commit/9f7d5fc5ace06af2b1feaa7c6502d585dcdf0a47))
69
+ * 🎸 actually keep references ([f018279](https://github.com/JQuezada0/prismock/commit/f01827952df51d2c226efc590844dfd5588fb3dd))
70
+ * 🎸 add aggregate operation ([f63f472](https://github.com/JQuezada0/prismock/commit/f63f4726824ebeffbeeacf5f922a739ff7ffb495))
71
+ * 🎸 add orderBy ([8bb30ca](https://github.com/JQuezada0/prismock/commit/8bb30ca5a84e04661f2a7c09d2692f1b3d2374aa))
72
+ * 🎸 add reset method ([20c313e](https://github.com/JQuezada0/prismock/commit/20c313ed869f0f4772b46605baea4d66c70216f3))
73
+ * 🎸 add support for $extends ([2cffbb1](https://github.com/JQuezada0/prismock/commit/2cffbb1c80c51d5c536eb8eddfe3f0a6c270cc68))
74
+ * 🎸 add support for connect under create operation ([56389b0](https://github.com/JQuezada0/prismock/commit/56389b0b52ef6826c95201f35a8fffddb41b8d70))
75
+ * 🎸 add support for cuid ([90abb33](https://github.com/JQuezada0/prismock/commit/90abb338801e058f0fd56f0f728fdac2eb3f2fdc))
76
+ * 🎸 add support for is ([c0ddd0e](https://github.com/JQuezada0/prismock/commit/c0ddd0ef3c4c99d1c0c3f15a0299510406154093)), closes [#823](https://github.com/JQuezada0/prismock/issues/823)
77
+ * 🎸 add support for nested create & createMany ([a6b5693](https://github.com/JQuezada0/prismock/commit/a6b5693de001798038f22ed79e98902778ae90c5)), closes [#431](https://github.com/JQuezada0/prismock/issues/431)
78
+ * 🎸 add support for nested filtering ([772f25a](https://github.com/JQuezada0/prismock/commit/772f25ad093780a7ea37ff47769dacd44c5ebb47)), closes [#242](https://github.com/JQuezada0/prismock/issues/242)
79
+ * 🎸 add support for nested upsert ([a91f674](https://github.com/JQuezada0/prismock/commit/a91f674fa11ebce7c7c6393073a307c3cdbb510e))
80
+ * 🎸 add support with multiple nested create ([37a72b9](https://github.com/JQuezada0/prismock/commit/37a72b9188dfa6023a308fa949babbcde7c89518))
81
+ * 🎸 complete client method for sql dbs ([d9c6636](https://github.com/JQuezada0/prismock/commit/d9c663635cc3f29c1e36fcfc9bb400072114cf38))
82
+ * 🎸 complete groupBy ([7f47010](https://github.com/JQuezada0/prismock/commit/7f470108f46133ba7c009de9f24e3a334d085057))
83
+ * 🎸 complete scalar push implementation ([598e4ac](https://github.com/JQuezada0/prismock/commit/598e4aca1a3fdd395a4aff7b854ac474234cd8ec))
84
+ * 🎸 complete support for nested upsert ([068ede6](https://github.com/JQuezada0/prismock/commit/068ede68d73ba4659b58470a1f27881c43128c9d))
85
+ * 🎸 complete update with create many ([643c796](https://github.com/JQuezada0/prismock/commit/643c7964ec1178e54aea15780f1ea64a39ea9437))
86
+ * 🎸 implement createManyAndReturn ([132eb1b](https://github.com/JQuezada0/prismock/commit/132eb1b8417e87454cced336610ea07327647a28)), closes [#988](https://github.com/JQuezada0/prismock/issues/988)
87
+ * 🎸 Keep existing references ([9f600d2](https://github.com/JQuezada0/prismock/commit/9f600d2a2c7502b3874d1fb951a4b7b38d0a814d))
88
+ * 🎸 return structuredClone of items for findOne & Many ([9167f15](https://github.com/JQuezada0/prismock/commit/9167f1503912257b086022c4e39cbdccf33d7fb8)), closes [#736](https://github.com/JQuezada0/prismock/issues/736)
89
+ * 🎸 sync mongodb config with base ([a087dfe](https://github.com/JQuezada0/prismock/commit/a087dfea054f0d0cbc353396fea16ca714fa9826))
90
+ * 🎸 sync with @prisma/internals API & config ([998f423](https://github.com/JQuezada0/prismock/commit/998f4232a9ddb770af59912762e5881e66d4721c)), closes [#806](https://github.com/JQuezada0/prismock/issues/806) [#810](https://github.com/JQuezada0/prismock/issues/810)
91
+ * add automated release pipeline ([ce9f453](https://github.com/JQuezada0/prismock/commit/ce9f453bbf8f4eb14f96d35e06d4d00fb38c0430))
92
+ * add deployment with npm semantic ([2f506e1](https://github.com/JQuezada0/prismock/commit/2f506e15b19a1ba25408f7daf8a802611c8dfaf0))
93
+ * add disconnect ([6a28317](https://github.com/JQuezada0/prismock/commit/6a2831751d66f3c05d5116cd0f1770de6750183f))
94
+ * add examples using PrismockClient ([27bacb0](https://github.com/JQuezada0/prismock/commit/27bacb037d4ef607e5fd449b609ad23576a9745d))
95
+ * add mongodb support ([098e16a](https://github.com/JQuezada0/prismock/commit/098e16ab33a23994908d2a2c9f4bc44ef8186b57))
96
+ * add prismock client ([657f47b](https://github.com/JQuezada0/prismock/commit/657f47bd736a43681b8e2203033c8bbddacfc0dc))
97
+ * add support for connectOrCreate ([4d1d12f](https://github.com/JQuezada0/prismock/commit/4d1d12fa1bfdc4fe1ac4e66391a6dbb3d61db789))
98
+ * add uuid ([36f3942](https://github.com/JQuezada0/prismock/commit/36f394202aab54bfe8248f74283ff1e59c2d91cf))
99
+ * allow custom client ([527e21a](https://github.com/JQuezada0/prismock/commit/527e21a4ac268e3d0269b74a13b507effa8406b3))
100
+ * allow custom client on generatePrismock ([db9da12](https://github.com/JQuezada0/prismock/commit/db9da12eb2a733c972c9caf7b82402ccd98526fd))
101
+ * **client:** allow creating prismock with a custom client location ([65f8717](https://github.com/JQuezada0/prismock/commit/65f871769ea78235b9b5e7f65280e7fbbe15bd85))
102
+ * complete create delegate with nested connect ([fd57329](https://github.com/JQuezada0/prismock/commit/fd573295519f73aca17cc59a74dbb11c63340c9a))
103
+ * complete support for connectOrCreate ([9c20dd2](https://github.com/JQuezada0/prismock/commit/9c20dd2f78e66425066bd915e77cd35553a44dd8))
104
+ * **delete:** add include and select support to delete methods ([beb57ed](https://github.com/JQuezada0/prismock/commit/beb57ed3be3b18968176563dc5eecfd9092d3e07))
105
+ * **groupBy:** implement core groupBy logic ([4b0115e](https://github.com/JQuezada0/prismock/commit/4b0115ec10ca73e4b91483bab91aaa202d6b037e))
106
+ * implement push for scalar lists ([d58188e](https://github.com/JQuezada0/prismock/commit/d58188e462ee5ef80e0acc7b37364c2b27a8e488))
107
+ * initial ([4da5f8b](https://github.com/JQuezada0/prismock/commit/4da5f8b4973866ac63eb884639c27d34385c29fd))
108
+ * **match:** add mode support in filter conditions and operators ([2ba7d34](https://github.com/JQuezada0/prismock/commit/2ba7d34a9be22a3a7a3250e634a267698c25a871))
109
+ * **orderBy:** added orderBy date support ([e8d22a5](https://github.com/JQuezada0/prismock/commit/e8d22a5eef5b865a93ff59436a2d941ac93ed4cc))
110
+ * support dbgenerated id type ([99c384f](https://github.com/JQuezada0/prismock/commit/99c384fca271a833d3a851167d72e4ccab86e6d9))
111
+ * support querying with bigint ([16d3c79](https://github.com/JQuezada0/prismock/commit/16d3c798f84b94db6c5361b64fcccb804b589b2c))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pkgverse/prismock",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.5",
4
4
  "description": "A mock for PrismaClient, dedicated to unit testing.",
5
5
  "repository": {
6
6
  "url": "https://github.com/JQuezada0/prismock"
@@ -9,14 +9,14 @@
9
9
  "license": "MIT",
10
10
  "packageManager": "bun@1.2.16",
11
11
  "type": "module",
12
- "main": "dist/index.cjs",
13
- "typings": "dist/index.d.ts",
14
- "module": "dist/index.mjs",
12
+ "main": "./dist/index.cjs",
13
+ "types": "./dist/index.d.ts",
14
+ "module": "./dist/index.mjs",
15
15
  "exports": {
16
16
  "./": {
17
+ "types": "./dist/index.d.ts",
17
18
  "import": "./dist/index.mjs",
18
19
  "require": "./dist/index.cjs",
19
- "types": "./dist/index.d.ts",
20
20
  "default": "./dist/index.mjs"
21
21
  }
22
22
  },
@@ -76,6 +76,7 @@
76
76
  "lint-staged": "16.1.6",
77
77
  "prettier": "2.8.8",
78
78
  "prisma": "5.22.0",
79
+ "release-it": "19.0.6",
79
80
  "semantic-release": "24.2.7",
80
81
  "ts-jest": "29.4.1",
81
82
  "ts-node": "10.9.2",