-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG
877 lines (447 loc) · 12 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
v0.75.2
-------
Fix missing system-content -> systemContent tag rename
v0.75.1
-------
CSV export improved: add array queries
v0.75.0
-------
BREAKING: BREAKING change: tag 'system-content' renamed 'systemContent'
PATCH: Export CSV method (still a bit rough)
v0.74.4
-------
'passwordInput' tag changed
v0.74.3
-------
New pa'sswordInput' field on User documents, always erased, supersed the usage of the 'password' field with a string (the goal is to keep a clean schema, the client app doesn't have to infer things like the 'password' field, which is declared as an object, can be a string when patching)
v0.74.2
-------
Dependencies
better debugs for access rights (.getAllAccessTags())
v0.74.1
-------
Import: support for multi-links
v0.74.0
-------
BREAKING: changed whitelisted properties for the SCHEMA method
v0.73.1
-------
_frozen is now 'system-content' instead of 'content', so it is readable by the API consumers
v0.73.0
-------
BREAKING: 'canLock' -> 'lockable'
Support for immutable properties
Support for freezing/unfreezing a Document
v0.72.2
-------
Fix generateSlug()/generateHid() behavior, since it can be called from userland, it should always generate a new one (pre-existance test is now made outside of those methods)
v0.72.1
-------
New hook: 'beforeCreateAfterValidate', forcing a document validation before running the hook
v0.72.0
-------
BREAKING dependency change
counters API
v0.71.8
-------
Dependencies
v0.71.7
-------
MongoDB version
v0.71.6
-------
Add 'userLogin' to response's data of all built-in users' methods
v0.71.5
-------
.getRealBatch() doesn't force a limit in the query anymore
v0.71.4
-------
Import: new param 'embeddedDedupProperties' to dedup embedded based on a list of properties
v0.71.3
-------
New: context#get*Batch() with a methodFilter argument
v0.71.2
-------
Support for method's params in query string, using the query string property 'params', e.g.: ?params.name=Alice
v0.71.1
-------
Performer#getUser() fixed when the auth only contains grant:true
v0.71.0
-------
MAYBE BREAKING: now serializers add a _collection property on all Document instances
support for anyCollection links string syntax: ID@collection
v0.70.9
-------
Dependencies
v0.70.8
-------
Dependencies
v0.70.7
-------
MongoDB use zstd compression now
import: empty strings are no more considered as valid link ID
v0.70.6
-------
slug/HID can now have a variable length of dedup numbers
v0.70.5
-------
Import: fix splitting statistics
v0.70.4
-------
Import: splitting statistics for filtered embedded documents
v0.70.3
-------
Fix a minor slugify bug (enforce min length to 2)
v0.70.2
-------
Improved batch-oriented method API: context.getUserBatch() / context.getRealBatch()
v0.70.1
-------
New: Collection batch methods!
v0.70.0
-------
Roots-DB BREAKING change: back-links are stored as arrays and proxified as arrays even when empty
v0.69.26
--------
Roots-DB dependency (improved import)
v0.69.25
--------
RootsDB dependencies
v0.69.24
--------
Import: RootsDB now support deduplicators and better import reporting
v0.69.23
--------
Dependencies
v0.69.22
--------
New CLI command: clear-collections. It interactively clears collections.
v0.69.21
--------
Fixing new HID format feature, where the value was falsy
v0.69.20
--------
HID format
v0.69.19
--------
Doormen and RootsDB upgraded: fix major bugs with document patching (NaN bug, patch to inner embedded array, overlaping patch keys)
v0.69.18
--------
Now an index can be used as the default for collation
v0.69.17
--------
Wildcard populate (aka populate *) (need test)
v0.69.16
--------
Fix a nasty bug with config having values that are method's name of Object.prototype (fix the 'sanitize: toString' bug)
v0.69.15
--------
Import: more stats and roots-db have few minor things to be more GC friendly
v0.69.14
--------
New: import reporting, with per collection stats
v0.69.13
--------
Import improved: 'onDuplicateKey' hook fully supported, embedded links supported (using wildcard)
v0.69.12
--------
Import features supporting links and progress bar
v0.69.11
--------
Creating API keys is no restrained to system performer anymore, it just need 'apiKeyManagement' to be granted
v0.69.10
--------
New feature: import
v0.69.9
-------
New: support for fake link/multiLink generation
v0.68.0
-------
New: Human ID (HID) generation and auto-update
v0.67.2
-------
Fix GENERATE-FAKE so that slugs are correctly generated
v0.67.1
-------
New Collection method: GENERATE-FAKE, generating fake batch of documents
v0.67.0
-------
Migration from mongodb v3 to v5
v0.66.0
-------
MAYBE BREAKING: major dependencies upgrades (new Kung-Fig v0.64 does old tree-ops operators -- was using v0.54 until now)
v0.65.3
-------
New collection option: 'attachmentAppendExtension' that append extension to ID and thus to file storage
v0.65.2
-------
Fix array of AttachmentSet behavior
v0.65.1
-------
Dependencies
v0.65.0
-------
New: Scheduler is back
v0.64.0
-------
New: support for AttachmentSet
v0.63.4
-------
Attachment are now supporting 'publicUrl'
v0.63.3
-------
Roots DB dependency: now Attachment are supporting custom content metadata, fileSize. But publicUrl has some issue and Roots DB should improve that part.
v0.63.2
-------
Unit tests
v0.63.1
-------
Attachment now supports checksum/hash, HTTP module can check if the expected checksum is correct, using the standard 'Digest' HTTP header (for both the request and the response)
v0.63.0
-------
BREAKING: require Node v14.15 engine
BREAKING: attachment refacto (rootsDB), now it requires a protocol in the attachment URL (e.g.: file:// or s3://)
attachment bug fixed and full app unit test
v0.62.9
-------
Dependencies
forces >= v12
v0.62.8
-------
More sensible keywords
v0.62.7
-------
Fix two potential bug: 'pAccess' never share a Set instance with 'access' anymore
collection's own 'defaultPublicAccess' has precedence over App's one (it seems silly that it was not the case)
v0.62.6
-------
New: allow PATCH to return content
v0.62.5
-------
Fix a nasty link validation bug, when we directly pass a Document instance
v0.62.4
-------
non-blocking index building mode
v0.62.3
-------
Dependencies
v0.62.2
-------
Dependencies, better duplicate slug detection
v0.62.1
-------
Dependencies
v0.62.0
-------
BREAKING: index order has changed in the new roots DB (now they are sorted), the duplicate key for slugs with regen is incompatible with older indexes! (indexes need to be built again)
v0.61.8
-------
Fix slug regeneration algo
v0.61.7
-------
'exec' command now install exit handlers like it should
v0.61.6
-------
Dependencies
v0.61.5
-------
Dependencies
v0.61.4
-------
Dependencies upgraded (fix a potentially critical issue in roots-db/nested-proxies, anything like Array#splice() that need to construct an object from within the proxy trap would crash)
v0.61.3
-------
At last, unicode URL seems to work
v0.61.2
-------
Fix bad type-checker for slugs, now updated to support new unicode slugs
v0.61.1
-------
New object method: REGENERATE-SLUG
v0.61.0
-------
Maybe BREAKING: added support for unicode slugs
v0.60.6
-------
[roots-db] Fix a bug in anyCollection link: now Document instance are supported as link and will be sanitized correctly
v0.60.5
-------
New: --debug-grant CLI option
v0.60.4
-------
Add ctx.hook.appliedPatch in the afterModify hook context
v0.60.3
-------
New: deep-populate -- query string syntax: deepPopulate.<collection>=[<path1>,<path2>] also depth=<depthLimit> (fix previous publish merge error)
v0.60.2
-------
New: deep-populate -- query string syntax: deepPopulate.<collection>=[<path1>,<path2>] also depth=<depthLimit>
v0.60.1
-------
Prepend [hook] in the error.message when it appends in one, help debugging userland from RestQuery issues
v0.60.0
-------
Maybe breaking: using roots-db new breaking version, where collection needs to be init apart from the constructor (because init is now async)
v0.59.1
-------
ctx.objectNode.object -> ctx.document
v0.59.0
-------
Root object has a timeout now, it is reloaded from DB from time to time, so it makes RestQuery work with multiple instances again (default: every one minute, since standard usage should not modify the root)
v0.58.4
-------
All important hooks are tested now
v0.58.3
-------
More hook unit tests
Context.usr initial value can be set at request time (params.usr)
v0.58.2
-------
Fixed help for alias commands (Utterminal)
v0.58.1
-------
App context
Hook runner clean up
v0.58.0
-------
BREAKING: Hook context changed (now instance of Context) and no more 'this' binding
hooks can be array of hooks in the schema
Big refacto
v0.57.4
-------
Now on document proxy set, a doormen.isEqual() test is performed, avoiding creating unnecessary versions and DB patch
v0.57.3
-------
Versioning properties are now 'system-content' instead of 'system'
v0.57.2
-------
Fixing some default access, adding 'system-content'
v0.57.1
-------
Patch on/through link totally fixed
v0.57.0
-------
Link validation fixed (but it's flagged BREAKING because it touches very sensitive parts of the code)
v0.56.1
-------
Fix .getAllAccessTag() bug when not all accessType are defined
v0.56.0
-------
Breaking -- schema can define opaque objects: object that cannot be patched inside, new builtin tag 'system-content'
v0.55.0
-------
Breaking: default queryLimit is back to 100
HTTP module: support for strange Content-Disposition filename*=UTF-8'' syntax
support for 'exists' filters in query string
v0.54.13
--------
fix RootsDB clone behavior
v0.54.12
--------
Dependencies
v0.54.11
--------
Dependencies
v0.54.10
--------
Fix internal error when sending request to / without a JSON object
v0.54.9
-------
Fixing multipart crash
v0.54.8
-------
Global default public access
v0.54.7
-------
Collection/Object methods' tags fixed
v0.54.6
-------
Dependencies upgraded
v0.54.5
-------
Dependencies upgraded
v0.54.4
-------
Fixing critical doormen bug
v0.54.3
-------
Utterminal upgraded, white labelling
v0.54.2
-------
Fixed .slugify()'s hyphen bug at the begining or the end when an invalid char is removed
v0.54.1
-------
New access 'all-granted' fixed, more unit tests
v0.54.0
-------
New: all-granted access type
v0.53.1
-------
Important Roots-db upgrade: versioning race condition fixed
v0.53.0
-------
BREAKING: new Access/rights management mechanisms: per-collection, per-collection inheritance, object/collection method execution
v0.52.6
-------
Fixing json-kit
v0.52.5
-------
Expose the password-object creation method to userland
v0.52.4
-------
Fix minor Node#patch() bug when used directly from userland
v0.52.3
-------
Important roots-db upgrade
v0.52.2
-------
Important roots-db/doormen upgrade
v0.52.1
-------
Important roots-db upgrade
v0.52.0
-------
BREAKING: 'restQueryType' becomes 'role' in collection's config, and plural form removed for the role-name
New: versioning
v0.51.1
-------
Dependencies upgraded, user/password in connection string test
v0.51.0
-------
Kung-fig critical update, user/password in the database connection string test
v0.50.9
-------
Dependencies
v0.50.8
-------
Force parent.id index
v0.50.7
-------
Better error reporting for bad query filter
v0.50.6
-------
Doormen dependency (enabling 'nullIsValue' and 'nullIsUndefined' flags)
v0.50.5
-------
Dependencies (doormen)
v0.50.4
-------
Better error message for 'keyTooLargeToIndex' error
v0.50.3
-------
Fixing escaping for header X-Error-Message
v0.50.2
-------
Now query on _id is possible
v0.50.1
-------
HTTP Requester module updated
v0.50.0
-------
BREAKING: now it is allowed to create user without password and even without login, but it is not possible to login using token creation if a user miss any of those : it is meant to create users that can only authenticate with API keys
v0.49.5
-------
Bugfix: UserCollectionNode now calls the CollectionNode's initDocument() and initPatch() like it should
v0.49.4
-------
Auto-repairing dead-links on discoveries