@rentman/rm-core 11.0.3 → 12.0.0

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 (68) hide show
  1. package/changelog.md +21 -0
  2. package/dist/rm-core.js +1907 -1805
  3. package/dist/rm-core.min.js +1 -1
  4. package/dist/types/src/FieldLookupProxy.d.ts +4 -0
  5. package/dist/types/src/classes/ApiFormatter.d.ts +1 -4
  6. package/dist/types/src/classes/BusinessLogicManager/BusinessLogicRule.d.ts +8 -9
  7. package/dist/types/src/classes/BusinessLogicManager/Customfield/CustomFieldTypeBusinessLogicRule.d.ts +1 -2
  8. package/dist/types/src/classes/BusinessLogicManager/Documents/DocumentTemplateBusinessLogicRule.d.ts +1 -2
  9. package/dist/types/src/classes/BusinessLogicManager/Exemplaar/ExemplaarAanschafdatumBusinessLogicRule.d.ts +1 -2
  10. package/dist/types/src/classes/BusinessLogicManager/Factuur/FactuurBetalingsconditieBusinessLogicRule.d.ts +1 -2
  11. package/dist/types/src/classes/BusinessLogicManager/Factuur/FactuurDatumBusinessLogicRule.d.ts +1 -2
  12. package/dist/types/src/classes/BusinessLogicManager/Factuur/FactuurNumberseriesBusinessLogicRule.d.ts +1 -2
  13. package/dist/types/src/classes/BusinessLogicManager/Functie/FunctieNaaminternBusinessLogicRule.d.ts +1 -2
  14. package/dist/types/src/classes/BusinessLogicManager/Functie/FunctieTwowayBusinessLogicRule.d.ts +1 -2
  15. package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalTypeBusinessLogicRule.d.ts +1 -2
  16. package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalVerhuurBusinessLogicRule.d.ts +1 -2
  17. package/dist/types/src/classes/BusinessLogicManager/Materiaal/SurfaceArticleSizeBusinessLogicRule.d.ts +1 -2
  18. package/dist/types/src/classes/BusinessLogicManager/OfferteContract/OfferteContractDatumBusinessLogicRule.d.ts +1 -2
  19. package/dist/types/src/classes/BusinessLogicManager/PlanningPersoneelTransport/PlanningPersoneelTransportBusinessLogicRule.d.ts +1 -2
  20. package/dist/types/src/classes/BusinessLogicManager/Project/ProjectClientNoteBusinessLogicRule.d.ts +1 -2
  21. package/dist/types/src/classes/BusinessLogicManager/Reparatie/ReparatieExemplaarBusinessLogicRule.d.ts +1 -2
  22. package/dist/types/src/classes/BusinessLogicManager/Rol/RolDocumentAccessBusinessLogicRule.d.ts +1 -2
  23. package/dist/types/src/classes/BusinessLogicManager/Rol/RolEditOwnDataBusinessLogicRule.d.ts +1 -2
  24. package/dist/types/src/classes/BusinessLogicManager/Rol/RolFileAccessBusinessLogicRule.d.ts +1 -2
  25. package/dist/types/src/classes/BusinessLogicManager/Rol/RolPersoneelsplannerToegangBusinessLogicRule.d.ts +1 -2
  26. package/dist/types/src/classes/BusinessLogicManager/Rol/RolProjectenBewerkenBusinessLogicRule.d.ts +1 -2
  27. package/dist/types/src/classes/BusinessLogicManager/Rol/RolProjectenToegangBusinessLogicRule.d.ts +1 -2
  28. package/dist/types/src/classes/CacheSyncer.d.ts +3 -2
  29. package/dist/types/src/classes/ChangesDelta.d.ts +3 -3
  30. package/dist/types/src/classes/ChangesDeltaBase.d.ts +20 -15
  31. package/dist/types/src/classes/ColumnUtil.d.ts +14 -14
  32. package/dist/types/src/classes/InternalChangesDelta.d.ts +5 -5
  33. package/dist/types/src/classes/QueryContainsLocalIdParser.d.ts +2 -2
  34. package/dist/types/src/classes/QueryMatcher.d.ts +8 -7
  35. package/dist/types/src/classes/RequestBuffer.d.ts +2 -2
  36. package/dist/types/src/classes/RequestBufferManager.d.ts +2 -2
  37. package/dist/types/src/classes/RequestColumnExpansion.d.ts +6 -8
  38. package/dist/types/src/classes/RequestColumnsOperationsCache.d.ts +46 -0
  39. package/dist/types/src/classes/TemplateCache.d.ts +2 -2
  40. package/dist/types/src/classes/cache/AbstractCache.d.ts +2 -3
  41. package/dist/types/src/classes/cache/CachedQueryHandlerBase.d.ts +18 -17
  42. package/dist/types/src/classes/cache/ItemHandlerBase.d.ts +7 -8
  43. package/dist/types/src/classes/cache/server/ServerCache.d.ts +2 -3
  44. package/dist/types/src/classes/cache/server/ServerCachedQueryHandler.d.ts +10 -9
  45. package/dist/types/src/classes/cache/server/ServerItemHandler.d.ts +3 -7
  46. package/dist/types/src/classes/cache/transaction/TransactionCache.d.ts +3 -11
  47. package/dist/types/src/classes/cache/transaction/TransactionCachedQueryHandler.d.ts +17 -6
  48. package/dist/types/src/classes/cache/transaction/TransactionItemHandler.d.ts +5 -15
  49. package/dist/types/src/core.d.ts +2 -2
  50. package/dist/types/src/factories/CacheSyncerFactory.d.ts +5 -1
  51. package/dist/types/src/factories/QueryMatcherFactory.d.ts +4 -3
  52. package/dist/types/src/factories/RequestColumnExpansionFactory.d.ts +1 -3
  53. package/dist/types/src/factories/RequestColumnsOperationsCacheFactory.d.ts +8 -0
  54. package/dist/types/src/interfaces/AbstractCacheDependencyInterface.d.ts +3 -3
  55. package/dist/types/src/interfaces/TransactionCollectionHandlerDependencyInterface.d.ts +7 -7
  56. package/dist/types/src/interfaces/TransactionItemHandlerDependencyInterface.d.ts +3 -3
  57. package/dist/types/src/internal.d.ts +2 -2
  58. package/dist/types/src/models/CachedQueryItem.d.ts +3 -3
  59. package/dist/types/src/models/CollectionOptions.d.ts +2 -2
  60. package/dist/types/src/models/CollectionResource.d.ts +2 -2
  61. package/dist/types/src/types/ItemTypesCollection.d.ts +19 -6
  62. package/dist/types/tests/integration/helpers/helpers.d.ts +1 -0
  63. package/dist/types/tests/integration/transactions/field_lookup.test.d.ts +1 -0
  64. package/dist/types/tests/unit/query_contains_local_id_parser.test.d.ts +1 -0
  65. package/dist/types/tests/unit/query_parser_id_updater.test.d.ts +1 -0
  66. package/package.json +1 -1
  67. package/dist/types/src/classes/ColumnSubsetCache.d.ts +0 -14
  68. package/dist/types/src/factories/ColumnSubsetCacheFactory.d.ts +0 -8
package/changelog.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  Contains new features, breaking changes and their reasoning
4
4
 
5
+ ## 12.0.0
6
+
7
+ - Replace `ColumnSubSetCache` with `RequestColumnsOperationCache`, implement `RequestColumnsOperationCache` to reduce
8
+ calls to `mergeRequestColumns`.
9
+
10
+ > This should improve performance when batch requesting collections.
11
+
12
+ - **Breaking:** Make request columns read only by default. Introduce `ApiRequestColumnsArray` (which is read-only) and
13
+ `MutableApiRequestColumnsArray` (which is not) convenience types to facilitate this.
14
+ - When handling responses of query and update requests, only match the items of the request item type. This prevents
15
+ items being used for derived values (with incomplete column sets) being matched.
16
+
17
+ - Completely rewrite how item changes are stored on transactions so that it now only tracks the actual changes this
18
+ should reduce memory footprint and increase performance
19
+
20
+ ## 11.0.4
21
+
22
+ - Fixed a bug where the QueryContainsLocalIdParser could break queries with an `IN` query with a mix of local and
23
+ non-local IDs.
24
+ - Fixed a bug in QueryContainsLocalIdParser that would not correctly find local IDs in subqueries of a linkedTo query.
25
+
5
26
  ## 11.0.3
6
27
 
7
28
  - Fixed a bug where the QueryParserIdUpdater could break queries with an `IN` with a single ID in it causing everything