@palmares/schemas 0.0.1 → 0.1.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 (175) hide show
  1. package/.turbo/turbo-build$colon$watch.log +12 -410
  2. package/.turbo/turbo-build.log +13 -4
  3. package/CHANGELOG.md +26 -0
  4. package/__tests__/.drizzle/migrations/0000_skinny_harrier.sql +22 -0
  5. package/__tests__/.drizzle/migrations/meta/0000_snapshot.json +156 -0
  6. package/__tests__/.drizzle/migrations/meta/_journal.json +13 -0
  7. package/__tests__/.drizzle/schema.ts +35 -0
  8. package/__tests__/drizzle.config.ts +11 -0
  9. package/__tests__/eslint.config.js +10 -0
  10. package/__tests__/manage.ts +5 -0
  11. package/__tests__/node_modules/.bin/drizzle-kit +17 -0
  12. package/__tests__/node_modules/.bin/esbuild +14 -0
  13. package/__tests__/node_modules/.bin/tsc +17 -0
  14. package/__tests__/node_modules/.bin/tsserver +17 -0
  15. package/__tests__/node_modules/.bin/tsx +17 -0
  16. package/__tests__/package.json +36 -0
  17. package/__tests__/sqlite.db +0 -0
  18. package/__tests__/src/core/array.test.ts +130 -0
  19. package/__tests__/src/core/boolean.test.ts +66 -0
  20. package/__tests__/src/core/datetime.test.ts +102 -0
  21. package/__tests__/src/core/index.ts +35 -0
  22. package/__tests__/src/core/model.test.ts +260 -0
  23. package/__tests__/src/core/models.ts +50 -0
  24. package/__tests__/src/core/numbers.test.ts +177 -0
  25. package/__tests__/src/core/object.test.ts +198 -0
  26. package/__tests__/src/core/string.test.ts +222 -0
  27. package/__tests__/src/core/test.test.ts +59 -0
  28. package/__tests__/src/core/types.test.ts +97 -0
  29. package/__tests__/src/core/union.test.ts +99 -0
  30. package/__tests__/src/settings.ts +71 -0
  31. package/__tests__/tsconfig.json +11 -0
  32. package/dist/cjs/src/adapter/fields/index.js +2 -2
  33. package/dist/cjs/src/adapter/fields/object.js +9 -0
  34. package/dist/cjs/src/adapter/index.js +1 -0
  35. package/dist/cjs/src/constants.js +1 -7
  36. package/dist/cjs/src/domain.js +146 -1
  37. package/dist/cjs/src/index.js +69 -74
  38. package/dist/cjs/src/model.js +206 -206
  39. package/dist/cjs/src/schema/array.js +185 -58
  40. package/dist/cjs/src/schema/boolean.js +105 -44
  41. package/dist/cjs/src/schema/datetime.js +104 -38
  42. package/dist/cjs/src/schema/number.js +134 -114
  43. package/dist/cjs/src/schema/object.js +106 -43
  44. package/dist/cjs/src/schema/schema.js +123 -75
  45. package/dist/cjs/src/schema/string.js +152 -58
  46. package/dist/cjs/src/schema/union.js +412 -290
  47. package/dist/cjs/src/utils.js +42 -15
  48. package/dist/cjs/src/validators/array.js +6 -1
  49. package/dist/cjs/src/validators/boolean.js +2 -0
  50. package/dist/cjs/src/validators/datetime.js +4 -0
  51. package/dist/cjs/src/validators/number.js +12 -40
  52. package/dist/cjs/src/validators/object.js +1 -0
  53. package/dist/cjs/src/validators/schema.js +5 -1
  54. package/dist/cjs/src/validators/string.js +30 -2
  55. package/dist/cjs/src/validators/union.js +5 -4
  56. package/dist/cjs/src/validators/utils.js +99 -27
  57. package/dist/cjs/tsconfig.types.tsbuildinfo +1 -1
  58. package/dist/cjs/types/adapter/fields/array.d.ts +2 -2
  59. package/dist/cjs/types/adapter/fields/array.d.ts.map +1 -1
  60. package/dist/cjs/types/adapter/fields/boolean.d.ts.map +1 -1
  61. package/dist/cjs/types/adapter/fields/datetime.d.ts.map +1 -1
  62. package/dist/cjs/types/adapter/fields/index.d.ts +2 -2
  63. package/dist/cjs/types/adapter/fields/index.d.ts.map +1 -1
  64. package/dist/cjs/types/adapter/fields/number.d.ts.map +1 -1
  65. package/dist/cjs/types/adapter/fields/object.d.ts +2 -1
  66. package/dist/cjs/types/adapter/fields/object.d.ts.map +1 -1
  67. package/dist/cjs/types/adapter/fields/string.d.ts.map +1 -1
  68. package/dist/cjs/types/adapter/fields/union.d.ts.map +1 -1
  69. package/dist/cjs/types/adapter/index.d.ts +1 -0
  70. package/dist/cjs/types/adapter/index.d.ts.map +1 -1
  71. package/dist/cjs/types/adapter/types.d.ts +28 -18
  72. package/dist/cjs/types/adapter/types.d.ts.map +1 -1
  73. package/dist/cjs/types/constants.d.ts +0 -1
  74. package/dist/cjs/types/constants.d.ts.map +1 -1
  75. package/dist/cjs/types/domain.d.ts +5 -4
  76. package/dist/cjs/types/domain.d.ts.map +1 -1
  77. package/dist/cjs/types/index.d.ts +78 -55
  78. package/dist/cjs/types/index.d.ts.map +1 -1
  79. package/dist/cjs/types/model.d.ts +17 -17
  80. package/dist/cjs/types/model.d.ts.map +1 -1
  81. package/dist/cjs/types/schema/array.d.ts +168 -47
  82. package/dist/cjs/types/schema/array.d.ts.map +1 -1
  83. package/dist/cjs/types/schema/boolean.d.ts +103 -44
  84. package/dist/cjs/types/schema/boolean.d.ts.map +1 -1
  85. package/dist/cjs/types/schema/datetime.d.ts +90 -30
  86. package/dist/cjs/types/schema/datetime.d.ts.map +1 -1
  87. package/dist/cjs/types/schema/number.d.ts +133 -125
  88. package/dist/cjs/types/schema/number.d.ts.map +1 -1
  89. package/dist/cjs/types/schema/object.d.ts +104 -35
  90. package/dist/cjs/types/schema/object.d.ts.map +1 -1
  91. package/dist/cjs/types/schema/schema.d.ts +62 -44
  92. package/dist/cjs/types/schema/schema.d.ts.map +1 -1
  93. package/dist/cjs/types/schema/string.d.ts +152 -65
  94. package/dist/cjs/types/schema/string.d.ts.map +1 -1
  95. package/dist/cjs/types/schema/types.d.ts +11 -2
  96. package/dist/cjs/types/schema/types.d.ts.map +1 -1
  97. package/dist/cjs/types/schema/union.d.ts +133 -40
  98. package/dist/cjs/types/schema/union.d.ts.map +1 -1
  99. package/dist/cjs/types/types.d.ts +35 -0
  100. package/dist/cjs/types/types.d.ts.map +1 -1
  101. package/dist/cjs/types/utils.d.ts +41 -27
  102. package/dist/cjs/types/utils.d.ts.map +1 -1
  103. package/dist/cjs/types/validators/array.d.ts.map +1 -1
  104. package/dist/cjs/types/validators/boolean.d.ts.map +1 -1
  105. package/dist/cjs/types/validators/datetime.d.ts.map +1 -1
  106. package/dist/cjs/types/validators/number.d.ts +5 -6
  107. package/dist/cjs/types/validators/number.d.ts.map +1 -1
  108. package/dist/cjs/types/validators/object.d.ts.map +1 -1
  109. package/dist/cjs/types/validators/schema.d.ts +2 -2
  110. package/dist/cjs/types/validators/schema.d.ts.map +1 -1
  111. package/dist/cjs/types/validators/string.d.ts +9 -9
  112. package/dist/cjs/types/validators/string.d.ts.map +1 -1
  113. package/dist/cjs/types/validators/utils.d.ts +44 -27
  114. package/dist/cjs/types/validators/utils.d.ts.map +1 -1
  115. package/dist/esm/src/adapter/fields/index.js +2 -2
  116. package/dist/esm/src/adapter/fields/object.js +6 -0
  117. package/dist/esm/src/adapter/index.js +1 -0
  118. package/dist/esm/src/constants.js +1 -2
  119. package/dist/esm/src/domain.js +11 -1
  120. package/dist/esm/src/index.js +38 -73
  121. package/dist/esm/src/model.js +83 -78
  122. package/dist/esm/src/schema/array.js +136 -54
  123. package/dist/esm/src/schema/boolean.js +98 -44
  124. package/dist/esm/src/schema/datetime.js +91 -38
  125. package/dist/esm/src/schema/number.js +127 -110
  126. package/dist/esm/src/schema/object.js +98 -43
  127. package/dist/esm/src/schema/schema.js +102 -67
  128. package/dist/esm/src/schema/string.js +147 -59
  129. package/dist/esm/src/schema/union.js +119 -40
  130. package/dist/esm/src/types.js +14 -1
  131. package/dist/esm/src/utils.js +56 -27
  132. package/dist/esm/src/validators/array.js +6 -1
  133. package/dist/esm/src/validators/boolean.js +2 -0
  134. package/dist/esm/src/validators/datetime.js +4 -0
  135. package/dist/esm/src/validators/number.js +9 -23
  136. package/dist/esm/src/validators/object.js +1 -0
  137. package/dist/esm/src/validators/schema.js +5 -1
  138. package/dist/esm/src/validators/string.js +30 -2
  139. package/dist/esm/src/validators/union.js +5 -4
  140. package/dist/esm/src/validators/utils.js +62 -36
  141. package/package.json +3 -3
  142. package/src/adapter/fields/array.ts +2 -2
  143. package/src/adapter/fields/boolean.ts +3 -8
  144. package/src/adapter/fields/datetime.ts +3 -9
  145. package/src/adapter/fields/index.ts +11 -11
  146. package/src/adapter/fields/number.ts +3 -9
  147. package/src/adapter/fields/object.ts +13 -10
  148. package/src/adapter/fields/string.ts +3 -9
  149. package/src/adapter/fields/union.ts +3 -9
  150. package/src/adapter/index.ts +1 -0
  151. package/src/adapter/types.ts +60 -45
  152. package/src/constants.ts +1 -3
  153. package/src/domain.ts +15 -1
  154. package/src/index.ts +189 -211
  155. package/src/model.ts +119 -115
  156. package/src/schema/array.ts +274 -90
  157. package/src/schema/boolean.ts +145 -60
  158. package/src/schema/datetime.ts +133 -49
  159. package/src/schema/number.ts +210 -173
  160. package/src/schema/object.ts +167 -74
  161. package/src/schema/schema.ts +205 -126
  162. package/src/schema/string.ts +221 -94
  163. package/src/schema/types.ts +44 -16
  164. package/src/schema/union.ts +193 -68
  165. package/src/types.ts +53 -0
  166. package/src/utils.ts +115 -57
  167. package/src/validators/array.ts +46 -27
  168. package/src/validators/boolean.ts +13 -7
  169. package/src/validators/datetime.ts +24 -16
  170. package/src/validators/number.ts +53 -63
  171. package/src/validators/object.ts +6 -5
  172. package/src/validators/schema.ts +33 -25
  173. package/src/validators/string.ts +122 -59
  174. package/src/validators/union.ts +8 -8
  175. package/src/validators/utils.ts +67 -42
@@ -1,424 +1,26 @@
1
1
 
2
- > @palmares/schemas@0.0.0 build:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
2
+ > @palmares/schemas@0.0.1 build:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
3
3
  > pnpm run build:cjs:watch & pnpm run build:module:watch & pnpm run build:types:watch
4
4
 
5
5
 
6
- > @palmares/schemas@0.0.0 build:types:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
7
- > tsc --project tsconfig.types.json --watch --preserveWatchOutput
6
+ > @palmares/schemas@0.0.1 build:module:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
7
+ > swc ./src -d ./dist/esm --config-file ../../build/.esm.swcrc --watch
8
8
 
9
9
 
10
- > @palmares/schemas@0.0.0 build:cjs:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
10
+ > @palmares/schemas@0.0.1 build:cjs:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
11
11
  > swc ./src -d ./dist/cjs --config-file ../../build/.commonjs.swcrc --watch
12
12
 
13
13
 
14
- > @palmares/schemas@0.0.0 build:module:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
15
- > swc ./src -d ./dist/esm --config-file ../../build/.esm.swcrc --watch
14
+ > @palmares/schemas@0.0.1 build:types:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
15
+ > tsc --project tsconfig.types.json --watch --preserveWatchOutput
16
16
 
17
- [12:19:27 PM] Starting compilation in watch mode...
17
+ [7:03:28 PM] Starting compilation in watch mode...
18
18
 
19
- Successfully compiled: 42 files with swc (786.78ms)
20
- Successfully compiled: 42 files with swc (436.11ms)
19
+ Successfully compiled: 42 files with swc (211.11ms)
20
+ Successfully compiled: 42 files with swc (214.92ms)
21
21
  Watching for file changes.
22
22
  Watching for file changes.
23
- [12:19:35 PM] Found 0 errors. Watching for file changes.
24
-
25
- [12:21:11 PM] File change detected. Starting incremental compilation...
26
-
27
- [12:21:11 PM] Found 0 errors. Watching for file changes.
28
-
29
- [12:24:53 PM] File change detected. Starting incremental compilation...
30
-
31
- [12:24:53 PM] Found 0 errors. Watching for file changes.
32
-
33
- [12:26:10 PM] File change detected. Starting incremental compilation...
34
-
35
- [12:26:10 PM] Found 0 errors. Watching for file changes.
36
-
37
- Successfully compiled src/adapter/fields/array.ts with swc (4.79ms)
38
- Successfully compiled src/adapter/fields/array.ts with swc (3.31ms)
39
- [12:29:31 PM] File change detected. Starting incremental compilation...
40
-
41
- [12:29:31 PM] Found 0 errors. Watching for file changes.
42
-
43
- [12:29:35 PM] File change detected. Starting incremental compilation...
44
-
45
- [12:29:35 PM] Found 0 errors. Watching for file changes.
46
-
47
- [12:29:43 PM] File change detected. Starting incremental compilation...
48
-
49
- [12:29:43 PM] Found 0 errors. Watching for file changes.
50
-
51
- [12:30:20 PM] File change detected. Starting incremental compilation...
52
-
53
- [12:30:23 PM] Found 0 errors. Watching for file changes.
54
-
55
- [12:32:15 PM] File change detected. Starting incremental compilation...
56
-
57
- [12:32:17 PM] Found 0 errors. Watching for file changes.
58
-
59
- [12:34:01 PM] File change detected. Starting incremental compilation...
60
-
61
- [12:34:03 PM] Found 0 errors. Watching for file changes.
62
-
63
- [12:34:40 PM] File change detected. Starting incremental compilation...
64
-
65
- [12:34:42 PM] Found 0 errors. Watching for file changes.
66
-
67
- [12:35:08 PM] File change detected. Starting incremental compilation...
68
-
69
- [12:35:10 PM] Found 0 errors. Watching for file changes.
70
-
71
- [12:41:58 PM] File change detected. Starting incremental compilation...
72
-
73
- [12:42:00 PM] Found 0 errors. Watching for file changes.
74
-
75
- [12:43:00 PM] File change detected. Starting incremental compilation...
76
-
77
- [12:43:01 PM] Found 0 errors. Watching for file changes.
78
-
79
- [12:43:07 PM] File change detected. Starting incremental compilation...
80
-
81
- [12:43:08 PM] Found 0 errors. Watching for file changes.
82
-
83
- [12:46:01 PM] File change detected. Starting incremental compilation...
84
-
85
- [12:46:02 PM] Found 0 errors. Watching for file changes.
86
-
87
- [12:46:03 PM] File change detected. Starting incremental compilation...
88
-
89
- [12:46:05 PM] Found 0 errors. Watching for file changes.
90
-
91
- [12:46:33 PM] File change detected. Starting incremental compilation...
92
-
93
- [12:46:33 PM] Found 0 errors. Watching for file changes.
94
-
95
- [12:48:19 PM] File change detected. Starting incremental compilation...
96
-
97
- [12:48:19 PM] Found 0 errors. Watching for file changes.
98
-
99
- [12:50:31 PM] File change detected. Starting incremental compilation...
100
-
101
- [12:50:32 PM] Found 0 errors. Watching for file changes.
102
-
103
- [12:50:39 PM] File change detected. Starting incremental compilation...
104
-
105
- [12:50:39 PM] Found 0 errors. Watching for file changes.
106
-
107
- [12:50:51 PM] File change detected. Starting incremental compilation...
108
-
109
- [12:50:51 PM] Found 0 errors. Watching for file changes.
110
-
111
- [12:52:33 PM] File change detected. Starting incremental compilation...
112
-
113
- [12:52:33 PM] Found 0 errors. Watching for file changes.
114
-
115
- [12:52:35 PM] File change detected. Starting incremental compilation...
116
-
117
- [12:52:35 PM] Found 0 errors. Watching for file changes.
118
-
119
- [12:54:26 PM] File change detected. Starting incremental compilation...
120
-
121
- [12:54:26 PM] Found 0 errors. Watching for file changes.
122
-
123
- [12:54:28 PM] File change detected. Starting incremental compilation...
124
-
125
- [12:54:28 PM] Found 0 errors. Watching for file changes.
126
-
127
- [12:55:05 PM] File change detected. Starting incremental compilation...
128
-
129
- [12:55:05 PM] Found 0 errors. Watching for file changes.
130
-
131
- [12:55:06 PM] File change detected. Starting incremental compilation...
132
-
133
- [12:55:07 PM] Found 0 errors. Watching for file changes.
134
-
135
- [12:57:12 PM] File change detected. Starting incremental compilation...
136
-
137
- [12:57:12 PM] Found 0 errors. Watching for file changes.
138
-
139
- [12:57:15 PM] File change detected. Starting incremental compilation...
140
-
141
- [12:57:15 PM] Found 0 errors. Watching for file changes.
142
-
143
- [12:58:24 PM] File change detected. Starting incremental compilation...
144
-
145
- [12:58:26 PM] Found 0 errors. Watching for file changes.
146
-
147
- [12:58:33 PM] File change detected. Starting incremental compilation...
148
-
149
- [12:58:33 PM] Found 0 errors. Watching for file changes.
150
-
151
- [12:58:35 PM] File change detected. Starting incremental compilation...
152
-
153
- [12:58:36 PM] Found 0 errors. Watching for file changes.
154
-
155
- [12:58:55 PM] File change detected. Starting incremental compilation...
156
-
157
- [12:58:55 PM] Found 0 errors. Watching for file changes.
158
-
159
- [12:59:04 PM] File change detected. Starting incremental compilation...
160
-
161
- [12:59:04 PM] Found 0 errors. Watching for file changes.
162
-
163
- [12:59:21 PM] File change detected. Starting incremental compilation...
164
-
165
- [12:59:23 PM] Found 0 errors. Watching for file changes.
166
-
167
- [1:03:03 PM] File change detected. Starting incremental compilation...
168
-
169
- [1:03:06 PM] Found 0 errors. Watching for file changes.
170
-
171
- [1:05:40 PM] File change detected. Starting incremental compilation...
172
-
173
- [1:05:43 PM] Found 0 errors. Watching for file changes.
174
-
175
- [1:06:01 PM] File change detected. Starting incremental compilation...
176
-
177
- [1:06:03 PM] Found 0 errors. Watching for file changes.
178
-
179
- [1:06:16 PM] File change detected. Starting incremental compilation...
180
-
181
- [1:06:18 PM] Found 0 errors. Watching for file changes.
182
-
183
- [1:06:19 PM] File change detected. Starting incremental compilation...
184
-
185
- [1:06:21 PM] Found 0 errors. Watching for file changes.
186
-
187
- [1:06:32 PM] File change detected. Starting incremental compilation...
188
-
189
- [1:06:34 PM] Found 0 errors. Watching for file changes.
190
-
191
- [1:06:53 PM] File change detected. Starting incremental compilation...
192
-
193
- [1:06:55 PM] Found 0 errors. Watching for file changes.
194
-
195
- [1:08:14 PM] File change detected. Starting incremental compilation...
196
-
197
- [1:08:17 PM] Found 0 errors. Watching for file changes.
198
-
199
- [1:08:19 PM] File change detected. Starting incremental compilation...
200
-
201
- [1:08:21 PM] Found 0 errors. Watching for file changes.
202
-
203
- [1:08:22 PM] File change detected. Starting incremental compilation...
204
-
205
- [1:08:24 PM] Found 0 errors. Watching for file changes.
206
-
207
- [1:08:25 PM] File change detected. Starting incremental compilation...
208
-
209
- [1:08:27 PM] Found 0 errors. Watching for file changes.
210
-
211
- [1:08:28 PM] File change detected. Starting incremental compilation...
212
-
213
- [1:08:30 PM] Found 0 errors. Watching for file changes.
214
-
215
- [1:08:36 PM] File change detected. Starting incremental compilation...
216
-
217
- [1:08:39 PM] Found 0 errors. Watching for file changes.
218
-
219
- [1:08:46 PM] File change detected. Starting incremental compilation...
220
-
221
- [1:08:48 PM] Found 0 errors. Watching for file changes.
222
-
223
- [1:08:55 PM] File change detected. Starting incremental compilation...
224
-
225
- [1:08:58 PM] Found 0 errors. Watching for file changes.
226
-
227
- [1:09:09 PM] File change detected. Starting incremental compilation...
228
-
229
- [1:09:11 PM] Found 0 errors. Watching for file changes.
230
-
231
- [1:09:24 PM] File change detected. Starting incremental compilation...
232
-
233
- [1:09:27 PM] Found 0 errors. Watching for file changes.
234
-
235
- [1:09:36 PM] File change detected. Starting incremental compilation...
236
-
237
- [1:09:38 PM] Found 0 errors. Watching for file changes.
238
-
239
- [1:09:54 PM] File change detected. Starting incremental compilation...
240
-
241
- [1:09:56 PM] Found 0 errors. Watching for file changes.
242
-
243
- [1:10:06 PM] File change detected. Starting incremental compilation...
244
-
245
- [1:10:08 PM] Found 0 errors. Watching for file changes.
246
-
247
- [1:10:19 PM] File change detected. Starting incremental compilation...
248
-
249
- [1:10:21 PM] Found 0 errors. Watching for file changes.
250
-
251
- [1:10:25 PM] File change detected. Starting incremental compilation...
252
-
253
- [1:10:27 PM] Found 0 errors. Watching for file changes.
254
-
255
- [1:10:30 PM] File change detected. Starting incremental compilation...
256
-
257
- [1:10:32 PM] Found 0 errors. Watching for file changes.
258
-
259
- [1:10:32 PM] File change detected. Starting incremental compilation...
260
-
261
- [1:10:34 PM] Found 0 errors. Watching for file changes.
262
-
263
- [1:10:37 PM] File change detected. Starting incremental compilation...
264
-
265
- [1:10:39 PM] Found 0 errors. Watching for file changes.
266
-
267
- [1:10:39 PM] File change detected. Starting incremental compilation...
268
-
269
- [1:10:41 PM] Found 0 errors. Watching for file changes.
270
-
271
- [1:15:15 PM] File change detected. Starting incremental compilation...
272
-
273
- [1:15:16 PM] Found 0 errors. Watching for file changes.
274
-
275
- [1:24:31 PM] File change detected. Starting incremental compilation...
276
-
277
- [1:24:32 PM] Found 0 errors. Watching for file changes.
278
-
279
- [1:24:50 PM] File change detected. Starting incremental compilation...
280
-
281
- [1:24:50 PM] Found 0 errors. Watching for file changes.
282
-
283
- [1:24:52 PM] File change detected. Starting incremental compilation...
284
-
285
- [1:24:52 PM] Found 0 errors. Watching for file changes.
286
-
287
- [1:49:54 PM] File change detected. Starting incremental compilation...
288
-
289
- [1:49:54 PM] Found 0 errors. Watching for file changes.
290
-
291
- [1:57:12 PM] File change detected. Starting incremental compilation...
292
-
293
- [1:57:13 PM] Found 0 errors. Watching for file changes.
294
-
295
- [1:57:14 PM] File change detected. Starting incremental compilation...
296
-
297
- [1:57:15 PM] Found 0 errors. Watching for file changes.
298
-
299
- [1:59:43 PM] File change detected. Starting incremental compilation...
300
-
301
- [1:59:43 PM] Found 0 errors. Watching for file changes.
302
-
303
- [2:01:20 PM] File change detected. Starting incremental compilation...
304
-
305
- [2:01:20 PM] Found 0 errors. Watching for file changes.
306
-
307
- [2:03:55 PM] File change detected. Starting incremental compilation...
308
-
309
- [2:03:55 PM] Found 0 errors. Watching for file changes.
310
-
311
- [2:04:50 PM] File change detected. Starting incremental compilation...
312
-
313
- [2:04:50 PM] Found 0 errors. Watching for file changes.
314
-
315
- [2:04:52 PM] File change detected. Starting incremental compilation...
316
-
317
- [2:04:52 PM] Found 0 errors. Watching for file changes.
318
-
319
- [2:05:15 PM] File change detected. Starting incremental compilation...
320
-
321
- [2:05:15 PM] Found 0 errors. Watching for file changes.
322
-
323
- [2:05:17 PM] File change detected. Starting incremental compilation...
324
-
325
- [2:05:17 PM] Found 0 errors. Watching for file changes.
326
-
327
- [2:05:48 PM] File change detected. Starting incremental compilation...
328
-
329
- [2:05:49 PM] Found 0 errors. Watching for file changes.
330
-
331
- [2:05:50 PM] File change detected. Starting incremental compilation...
332
-
333
- [2:05:51 PM] Found 0 errors. Watching for file changes.
334
-
335
- [2:08:35 PM] File change detected. Starting incremental compilation...
336
-
337
- [2:08:35 PM] Found 0 errors. Watching for file changes.
338
-
339
- [2:08:37 PM] File change detected. Starting incremental compilation...
340
-
341
- [2:08:37 PM] Found 0 errors. Watching for file changes.
342
-
343
- [2:10:06 PM] File change detected. Starting incremental compilation...
344
-
345
- [2:10:06 PM] Found 0 errors. Watching for file changes.
346
-
347
- [2:10:08 PM] File change detected. Starting incremental compilation...
348
-
349
- [2:10:08 PM] Found 0 errors. Watching for file changes.
350
-
351
- [2:13:12 PM] File change detected. Starting incremental compilation...
352
-
353
- [2:13:13 PM] Found 0 errors. Watching for file changes.
354
-
355
- [2:13:14 PM] File change detected. Starting incremental compilation...
356
-
357
- [2:13:15 PM] Found 0 errors. Watching for file changes.
358
-
359
- [2:13:52 PM] File change detected. Starting incremental compilation...
360
-
361
- [2:13:52 PM] Found 0 errors. Watching for file changes.
362
-
363
- [2:13:54 PM] File change detected. Starting incremental compilation...
364
-
365
- [2:13:54 PM] Found 0 errors. Watching for file changes.
366
-
367
- [2:14:57 PM] File change detected. Starting incremental compilation...
368
-
369
- [2:14:57 PM] Found 0 errors. Watching for file changes.
370
-
371
- [2:14:59 PM] File change detected. Starting incremental compilation...
372
-
373
- [2:14:59 PM] Found 0 errors. Watching for file changes.
374
-
375
- [2:16:07 PM] File change detected. Starting incremental compilation...
376
-
377
- [2:16:07 PM] Found 0 errors. Watching for file changes.
378
-
379
- [2:16:09 PM] File change detected. Starting incremental compilation...
380
-
381
- [2:16:09 PM] Found 0 errors. Watching for file changes.
382
-
383
- [2:16:33 PM] File change detected. Starting incremental compilation...
384
-
385
- [2:16:33 PM] Found 0 errors. Watching for file changes.
386
-
387
- [2:16:35 PM] File change detected. Starting incremental compilation...
388
-
389
- [2:16:35 PM] Found 0 errors. Watching for file changes.
390
-
391
- [2:17:49 PM] File change detected. Starting incremental compilation...
392
-
393
- [2:17:50 PM] Found 0 errors. Watching for file changes.
394
-
395
- [2:17:51 PM] File change detected. Starting incremental compilation...
396
-
397
- [2:17:51 PM] Found 0 errors. Watching for file changes.
398
-
399
- [2:24:03 PM] File change detected. Starting incremental compilation...
400
-
401
- [2:24:04 PM] Found 0 errors. Watching for file changes.
402
-
403
- [2:24:26 PM] File change detected. Starting incremental compilation...
404
-
405
- [2:24:28 PM] Found 0 errors. Watching for file changes.
406
-
407
- [2:24:43 PM] File change detected. Starting incremental compilation...
408
-
409
- [2:24:43 PM] Found 0 errors. Watching for file changes.
410
-
411
- [2:24:45 PM] File change detected. Starting incremental compilation...
412
-
413
- [2:24:45 PM] Found 0 errors. Watching for file changes.
414
-
415
- [2:26:25 PM] File change detected. Starting incremental compilation...
416
-
417
- Successfully compiled src/adapter/fields/array.ts with swc (84.29ms)
418
- Successfully compiled src/adapter/fields/array.ts with swc (85.68ms)
419
- [2:26:25 PM] Found 0 errors. Watching for file changes.
420
-
421
- [2:26:27 PM] File change detected. Starting incremental compilation...
422
-
423
- [2:26:29 PM] Found 0 errors. Watching for file changes.
23
+ [7:03:34 PM] Found 0 errors. Watching for file changes.
424
24
 
25
+ Successfully compiled src/utils.ts with swc (5.43ms)
26
+ Successfully compiled src/utils.ts with swc (6.41ms)
@@ -1,13 +1,22 @@
1
1
 
2
- > @palmares/schemas@0.0.0 build /Users/nicolasmelo/workspace/palmares/packages/schemas
2
+ > @palmares/schemas@0.1.0 build /Users/nicolasmelo/workspace/palmares/packages/schemas
3
3
  > pnpm run clear && pnpm run build:cjs && pnpm run build:module && pnpm run build:types
4
4
 
5
5
 
6
- > @palmares/schemas@0.0.0 clear /Users/nicolasmelo/workspace/palmares/packages/schemas
6
+ > @palmares/schemas@0.1.0 clear /Users/nicolasmelo/workspace/palmares/packages/schemas
7
7
  > rimraf ./dist
8
8
 
9
9
 
10
- > @palmares/schemas@0.0.0 build:cjs /Users/nicolasmelo/workspace/palmares/packages/schemas
10
+ > @palmares/schemas@0.1.0 build:cjs /Users/nicolasmelo/workspace/palmares/packages/schemas
11
11
  > swc ./src -d ./dist/cjs --config-file ../../build/.commonjs.swcrc
12
12
 
13
- Successfully compiled: 42 files with swc (283.83ms)
13
+ Successfully compiled: 42 files with swc (159.43ms)
14
+
15
+ > @palmares/schemas@0.1.0 build:module /Users/nicolasmelo/workspace/palmares/packages/schemas
16
+ > swc ./src -d ./dist/esm --config-file ../../build/.esm.swcrc
17
+
18
+ Successfully compiled: 42 files with swc (108.21ms)
19
+
20
+ > @palmares/schemas@0.1.0 build:types /Users/nicolasmelo/workspace/palmares/packages/schemas
21
+ > tsc --project tsconfig.types.json
22
+
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @palmares/schemas
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Bug fixes
8
+ - Updated dependencies
9
+ - @palmares/databases@0.1.1
10
+ - @palmares/core@0.1.1
11
+
12
+ ## 0.1.0
13
+
14
+ ### Minor Changes
15
+
16
+ - - Make it stable for release by doing a bunch of changes
17
+ - Added eslint for properly formatting everything, this changed a bunch of files.
18
+ - Fixed a bug on databases search operation with tests
19
+ - Added tests and fixed issues on schemas
20
+ - Finished zod-schemas implementation, now everything is implemented as it should.
21
+ - Fixed all small issues on the schemas.
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+ - @palmares/core@0.1.0
27
+ - @palmares/databases@0.1.0
28
+
3
29
  ## 0.0.1
4
30
 
5
31
  ### Patch Changes
@@ -0,0 +1,22 @@
1
+ CREATE TABLE `companies` (
2
+ `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
3
+ `name` text(255) NOT NULL,
4
+ `translatable` real
5
+ );
6
+ --> statement-breakpoint
7
+ CREATE TABLE `users` (
8
+ `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
9
+ `name` text(255),
10
+ `age` integer NOT NULL,
11
+ `updated_at` text NOT NULL,
12
+ `created_at` text NOT NULL,
13
+ `company_id` integer NOT NULL,
14
+ FOREIGN KEY (`company_id`) REFERENCES `companies`(`id`) ON UPDATE no action ON DELETE no action
15
+ );
16
+ --> statement-breakpoint
17
+ CREATE UNIQUE INDEX `companies_id_unique` ON `companies` (`id`);--> statement-breakpoint
18
+ CREATE UNIQUE INDEX `companies_id_idx` ON `companies` (`id`);--> statement-breakpoint
19
+ CREATE UNIQUE INDEX `users_id_unique` ON `users` (`id`);--> statement-breakpoint
20
+ CREATE UNIQUE INDEX `users_id_idx` ON `users` (`id`);--> statement-breakpoint
21
+ CREATE INDEX `users_name_idx` ON `users` (`name`);--> statement-breakpoint
22
+ CREATE INDEX `users_age_idx` ON `users` (`age`);
@@ -0,0 +1,156 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "7061f150-4aa4-492f-af8d-ddc6e13ace25",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
6
+ "tables": {
7
+ "companies": {
8
+ "name": "companies",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "integer",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": true
16
+ },
17
+ "name": {
18
+ "name": "name",
19
+ "type": "text(255)",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "translatable": {
25
+ "name": "translatable",
26
+ "type": "real",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ }
31
+ },
32
+ "indexes": {
33
+ "companies_id_unique": {
34
+ "name": "companies_id_unique",
35
+ "columns": [
36
+ "id"
37
+ ],
38
+ "isUnique": true
39
+ },
40
+ "companies_id_idx": {
41
+ "name": "companies_id_idx",
42
+ "columns": [
43
+ "id"
44
+ ],
45
+ "isUnique": true
46
+ }
47
+ },
48
+ "foreignKeys": {},
49
+ "compositePrimaryKeys": {},
50
+ "uniqueConstraints": {}
51
+ },
52
+ "users": {
53
+ "name": "users",
54
+ "columns": {
55
+ "id": {
56
+ "name": "id",
57
+ "type": "integer",
58
+ "primaryKey": true,
59
+ "notNull": true,
60
+ "autoincrement": true
61
+ },
62
+ "name": {
63
+ "name": "name",
64
+ "type": "text(255)",
65
+ "primaryKey": false,
66
+ "notNull": false,
67
+ "autoincrement": false
68
+ },
69
+ "age": {
70
+ "name": "age",
71
+ "type": "integer",
72
+ "primaryKey": false,
73
+ "notNull": true,
74
+ "autoincrement": false
75
+ },
76
+ "updated_at": {
77
+ "name": "updated_at",
78
+ "type": "text",
79
+ "primaryKey": false,
80
+ "notNull": true,
81
+ "autoincrement": false
82
+ },
83
+ "created_at": {
84
+ "name": "created_at",
85
+ "type": "text",
86
+ "primaryKey": false,
87
+ "notNull": true,
88
+ "autoincrement": false
89
+ },
90
+ "company_id": {
91
+ "name": "company_id",
92
+ "type": "integer",
93
+ "primaryKey": false,
94
+ "notNull": true,
95
+ "autoincrement": false
96
+ }
97
+ },
98
+ "indexes": {
99
+ "users_id_unique": {
100
+ "name": "users_id_unique",
101
+ "columns": [
102
+ "id"
103
+ ],
104
+ "isUnique": true
105
+ },
106
+ "users_id_idx": {
107
+ "name": "users_id_idx",
108
+ "columns": [
109
+ "id"
110
+ ],
111
+ "isUnique": true
112
+ },
113
+ "users_name_idx": {
114
+ "name": "users_name_idx",
115
+ "columns": [
116
+ "name"
117
+ ],
118
+ "isUnique": false
119
+ },
120
+ "users_age_idx": {
121
+ "name": "users_age_idx",
122
+ "columns": [
123
+ "age"
124
+ ],
125
+ "isUnique": false
126
+ }
127
+ },
128
+ "foreignKeys": {
129
+ "users_company_id_companies_id_fk": {
130
+ "name": "users_company_id_companies_id_fk",
131
+ "tableFrom": "users",
132
+ "tableTo": "companies",
133
+ "columnsFrom": [
134
+ "company_id"
135
+ ],
136
+ "columnsTo": [
137
+ "id"
138
+ ],
139
+ "onDelete": "no action",
140
+ "onUpdate": "no action"
141
+ }
142
+ },
143
+ "compositePrimaryKeys": {},
144
+ "uniqueConstraints": {}
145
+ }
146
+ },
147
+ "enums": {},
148
+ "_meta": {
149
+ "schemas": {},
150
+ "tables": {},
151
+ "columns": {}
152
+ },
153
+ "internal": {
154
+ "indexes": {}
155
+ }
156
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "6",
8
+ "when": 1723983707731,
9
+ "tag": "0000_skinny_harrier",
10
+ "breakpoints": true
11
+ }
12
+ ]
13
+ }