@rentman/rm-core 1.4.0 → 1.5.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 (54) hide show
  1. package/changelog.md +21 -0
  2. package/dist/rm-core.js +3059 -2805
  3. package/dist/rm-core.min.js +1 -1
  4. package/dist/src/classes/ApiFormatter.d.ts +0 -1
  5. package/dist/src/classes/BatchStatus.d.ts +4 -2
  6. package/dist/src/classes/ChangesCompilation.d.ts +12 -4
  7. package/dist/src/classes/ChangesProcessor.d.ts +11 -11
  8. package/dist/src/classes/CollectionEntryService.d.ts +4 -4
  9. package/dist/src/classes/CollectionHandler.d.ts +5 -4
  10. package/dist/src/classes/CollectionMatcher.d.ts +4 -4
  11. package/dist/src/classes/CollectionResourceService.d.ts +2 -2
  12. package/dist/src/classes/ColumnCache.d.ts +3 -3
  13. package/dist/src/classes/ColumnExpansion.d.ts +3 -2
  14. package/dist/src/classes/ColumnSet.d.ts +7 -7
  15. package/dist/src/classes/ColumnSubsetCache.d.ts +9 -0
  16. package/dist/src/classes/CreateRequest.d.ts +1 -1
  17. package/dist/src/classes/ItemAdministrator.d.ts +29 -67
  18. package/dist/src/classes/ItemCache.d.ts +2 -2
  19. package/dist/src/classes/ItemEntryService.d.ts +4 -4
  20. package/dist/src/classes/ItemHandler.d.ts +29 -46
  21. package/dist/src/classes/ItemRequestService.d.ts +2 -2
  22. package/dist/src/classes/LocalCache.d.ts +13 -12
  23. package/dist/src/classes/ModuleChangesCompilation.d.ts +4 -4
  24. package/dist/src/classes/QueryMatcher.d.ts +4 -4
  25. package/dist/src/classes/QueryParser.d.ts +10 -10
  26. package/dist/src/classes/SocketMessageHandler.d.ts +22 -18
  27. package/dist/src/classes/Util.d.ts +3 -1
  28. package/dist/src/classes/index.d.ts +1 -1
  29. package/dist/src/constants.d.ts +4 -2
  30. package/dist/src/core.d.ts +3 -3
  31. package/dist/src/factories/BatchStatusFactory.d.ts +2 -2
  32. package/dist/src/factories/CollectionEntryFactory.d.ts +9 -6
  33. package/dist/src/factories/CollectionResourceFactory.d.ts +4 -5
  34. package/dist/src/factories/ColumnSubsetCacheFactory.d.ts +7 -0
  35. package/dist/src/factories/ItemResourceFactory.d.ts +5 -6
  36. package/dist/src/factories/LocalCacheFactory.d.ts +2 -3
  37. package/dist/src/factories/index.d.ts +1 -0
  38. package/dist/src/interfaces/PromiseLibraryInterface.d.ts +2 -2
  39. package/dist/src/models/CollectionEditResource.d.ts +2 -2
  40. package/dist/src/models/CollectionEntry.d.ts +13 -10
  41. package/dist/src/models/CollectionEntryOptions.d.ts +20 -0
  42. package/dist/src/models/CollectionResource.d.ts +3 -3
  43. package/dist/src/models/CollectionResourceOptions.d.ts +38 -0
  44. package/dist/src/models/CollectionViewResource.d.ts +2 -2
  45. package/dist/src/models/EditResource.d.ts +2 -2
  46. package/dist/src/models/ItemEntry.d.ts +4 -4
  47. package/dist/src/models/ItemEntryOptions.d.ts +18 -0
  48. package/dist/src/models/ItemResource.d.ts +3 -3
  49. package/dist/src/models/ItemResourceOptions.d.ts +13 -0
  50. package/dist/src/models/ViewResource.d.ts +2 -2
  51. package/dist/src/models/index.d.ts +8 -4
  52. package/dist/src/types/ItemTypesCollection.d.ts +62 -4
  53. package/package.json +35 -35
  54. package/dist/src/classes/ItemResourceService.d.ts +0 -5
package/changelog.md CHANGED
@@ -1,6 +1,27 @@
1
1
  #Changelog
2
2
  Contains new features, breaking changes and their reasoning
3
3
 
4
+ ## 1.5.1
5
+ - Properly remove item entry stub from (local) cache when request fails.
6
+ - Fix issue where item or collection options could be set to undefined.
7
+
8
+ ## 1.5.0
9
+ - Add `SocketMessage` type and add types to `SocketMessageHandler`
10
+ - Expand local items requested using `getItemById` or `getItemsById` in `ItemAdministrator`.
11
+ (`fetchItem` or `fetchItems` in `ItemHandler`.)
12
+ - Implement expanding of local collections. This no longer leads to invalid requests.
13
+ - **Breaking:** The `expand` function in `CollectionEntry` now has an `ItemCache` parameter.
14
+ - **Warning:** This version contains major changes.
15
+
16
+ ### Introduce typing of item and collection options
17
+ - **Breaking:** Removed `QueryItemType` collection entry option.
18
+ - **Breaking:** Removed `ItemResourceService`.
19
+ - Removed `processOptions` parameter from `createCollectionResource` (`ItemAdministrator`). It is now equivalent to
20
+ `addCollection`.
21
+ - When creating an item resource using `ItemResourceFactory`, a collection entry using `CollectionResourceFactory` or a
22
+ collection resource using `CollectionResourceFactory` it is no longer necessary to process options beforehand. It is
23
+ still necessary when interacting with `CollectionHandler` or `ItemHandler` directly.
24
+
4
25
  ## v1.4.0
5
26
  - Add `expandProcessLinkedItems` and `expandAddToCollections` to `ItemAdministrator`. These are analogues to
6
27
  `processLinkedItems` and `addToCollections`, but also expand the items with (derived) values and columns as necessary.