@dipscope/type-manager 4.0.4 → 5.0.0-beta.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 (127) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/{LICENSE.txt → LICENSE.md} +0 -0
  3. package/README.md +143 -321
  4. package/alias.d.ts +3 -7
  5. package/custom-data.d.ts +3 -8
  6. package/default-value-resolver.d.ts +7 -0
  7. package/default-value.d.ts +4 -7
  8. package/discriminant.d.ts +5 -8
  9. package/discriminator.d.ts +3 -8
  10. package/factories/type-factory.d.ts +3 -3
  11. package/factory.d.ts +15 -8
  12. package/functions/get-own-reflect-metadata.d.ts +9 -0
  13. package/functions/get-reflect-metadata.d.ts +10 -0
  14. package/functions/get-words.d.ts +8 -0
  15. package/functions/index.d.ts +16 -0
  16. package/functions/is-arrow-function.d.ts +8 -0
  17. package/functions/is-ctor-function.d.ts +8 -0
  18. package/functions/is-data-view.d.ts +8 -0
  19. package/functions/is-float-32-array.d.ts +8 -0
  20. package/functions/is-float-64-array.d.ts +8 -0
  21. package/functions/is-int-16-array.d.ts +8 -0
  22. package/functions/is-int-32-array.d.ts +8 -0
  23. package/functions/is-int-8-array.d.ts +8 -0
  24. package/functions/is-uint-16-array.d.ts +8 -0
  25. package/functions/is-uint-32-array.d.ts +8 -0
  26. package/functions/is-uint-8-array.d.ts +8 -0
  27. package/functions/is-uint-8-clamped-array.d.ts +8 -0
  28. package/functions/name-of.d.ts +8 -0
  29. package/{core/generic-argument.d.ts → generic-argument.d.ts} +0 -0
  30. package/{core/generic-metadata.d.ts → generic-metadata.d.ts} +0 -0
  31. package/index.d.ts +39 -7
  32. package/index.js +1 -2
  33. package/{core/inject-index.d.ts → inject-index.d.ts} +0 -0
  34. package/{core/inject-metadata.d.ts → inject-metadata.d.ts} +0 -0
  35. package/{core/inject-options.d.ts → inject-options.d.ts} +0 -0
  36. package/inject.d.ts +2 -2
  37. package/injector.d.ts +13 -8
  38. package/injectors/singleton-injector.d.ts +2 -2
  39. package/{core/log-level.d.ts → log-level.d.ts} +0 -0
  40. package/{core/log.d.ts → log.d.ts} +41 -11
  41. package/{core/metadata.d.ts → metadata.d.ts} +0 -0
  42. package/naming-convention.d.ts +12 -8
  43. package/naming-conventions/camel-case-naming-convention.d.ts +1 -1
  44. package/naming-conventions/flat-case-naming-convention.d.ts +1 -1
  45. package/naming-conventions/flat-upper-case-naming-convention.d.ts +1 -1
  46. package/naming-conventions/kebab-case-naming-convention.d.ts +1 -1
  47. package/naming-conventions/kebab-upper-case-naming-convention.d.ts +1 -1
  48. package/naming-conventions/pascal-case-naming-convention.d.ts +1 -1
  49. package/naming-conventions/snake-case-naming-convention.d.ts +1 -1
  50. package/naming-conventions/snake-upper-case-naming-convention.d.ts +1 -1
  51. package/package.json +6 -3
  52. package/{core/property-metadata.d.ts → property-metadata.d.ts} +18 -12
  53. package/{core/property-name.d.ts → property-name.d.ts} +0 -0
  54. package/{core/property-options.d.ts → property-options.d.ts} +21 -4
  55. package/property.d.ts +3 -2
  56. package/{core/reference-callback.d.ts → reference-callback.d.ts} +0 -0
  57. package/reference-handler.d.ts +29 -8
  58. package/reference-handlers/direct-reference-handler.d.ts +6 -6
  59. package/reference-handlers/lead-reference-handler.d.ts +6 -6
  60. package/reference-handlers/path-reference-handler.d.ts +6 -6
  61. package/{core/reference-key.d.ts → reference-key.d.ts} +0 -0
  62. package/{core/reference-value-initializer.d.ts → reference-value-initializer.d.ts} +0 -0
  63. package/{core/reference-value-resolver.d.ts → reference-value-resolver.d.ts} +0 -0
  64. package/{core/reference-value.d.ts → reference-value.d.ts} +0 -0
  65. package/{core/serializer-context-options.d.ts → serializer-context-options.d.ts} +0 -0
  66. package/{core/serializer-context.d.ts → serializer-context.d.ts} +9 -3
  67. package/serializer.d.ts +24 -8
  68. package/serializers/array-buffer-serializer.d.ts +3 -3
  69. package/serializers/array-serializer.d.ts +3 -3
  70. package/serializers/boolean-serializer.d.ts +3 -3
  71. package/serializers/data-view-serializer.d.ts +3 -3
  72. package/serializers/date-serializer.d.ts +3 -3
  73. package/serializers/float-32-array-serializer.d.ts +3 -3
  74. package/serializers/float-64-array-serializer.d.ts +3 -3
  75. package/serializers/int-16-array-serializer.d.ts +3 -3
  76. package/serializers/int-32-array-serializer.d.ts +3 -3
  77. package/serializers/int-8-array-serializer.d.ts +3 -3
  78. package/serializers/map-serializer.d.ts +3 -3
  79. package/serializers/number-serializer.d.ts +3 -3
  80. package/serializers/set-serializer.d.ts +3 -3
  81. package/serializers/string-serializer.d.ts +3 -3
  82. package/serializers/type-serializer.d.ts +3 -3
  83. package/serializers/uint-16-array-serializer.d.ts +3 -3
  84. package/serializers/uint-32-array-serializer.d.ts +3 -3
  85. package/serializers/uint-8-array-serializer.d.ts +3 -3
  86. package/serializers/uint-8-clamped-array-serializer.d.ts +3 -3
  87. package/{core/type-abstraction.d.ts → type-abstraction.d.ts} +0 -0
  88. package/{core/type-argument.d.ts → type-argument.d.ts} +0 -0
  89. package/{core/type-context-entry.d.ts → type-context-entry.d.ts} +0 -0
  90. package/{core/type-context.d.ts → type-context.d.ts} +0 -0
  91. package/{core/type-ctor.d.ts → type-ctor.d.ts} +0 -0
  92. package/{core/type-fn.d.ts → type-fn.d.ts} +0 -0
  93. package/{core/type-like.d.ts → type-like.d.ts} +0 -0
  94. package/type-manager-options.d.ts +3 -3
  95. package/type-manager.d.ts +10 -10
  96. package/{core/type-metadata-resolver.d.ts → type-metadata-resolver.d.ts} +0 -0
  97. package/{core/type-metadata-symbol.d.ts → type-metadata-symbol.d.ts} +0 -0
  98. package/{core/type-metadata.d.ts → type-metadata.d.ts} +9 -3
  99. package/{core/type-name.d.ts → type-name.d.ts} +0 -0
  100. package/{core/type-options-base.d.ts → type-options-base.d.ts} +0 -9
  101. package/{core/type-options.d.ts → type-options.d.ts} +26 -0
  102. package/{core/type-resolver.d.ts → type-resolver.d.ts} +0 -0
  103. package/type.d.ts +1 -1
  104. package/core/alias.d.ts +0 -6
  105. package/core/custom-data.d.ts +0 -6
  106. package/core/discriminant.d.ts +0 -8
  107. package/core/discriminator.d.ts +0 -6
  108. package/core/factory.d.ts +0 -18
  109. package/core/fn.d.ts +0 -316
  110. package/core/index.d.ts +0 -42
  111. package/core/index.js +0 -2
  112. package/core/injector.d.ts +0 -16
  113. package/core/naming-convention.d.ts +0 -15
  114. package/core/reference-handler.d.ts +0 -32
  115. package/core/serializer.d.ts +0 -27
  116. package/deserializable.d.ts +0 -11
  117. package/factories/index.js +0 -2
  118. package/injectable.d.ts +0 -10
  119. package/injectors/index.js +0 -2
  120. package/naming-conventions/index.js +0 -2
  121. package/preserve-discriminator.d.ts +0 -10
  122. package/reference-handlers/index.js +0 -2
  123. package/serializable.d.ts +0 -11
  124. package/serializers/index.js +0 -2
  125. package/type-and-property.d.ts +0 -12
  126. package/use-default-value.d.ts +0 -10
  127. package/use-implicit-conversion.d.ts +0 -10
package/CHANGELOG.md CHANGED
@@ -5,6 +5,44 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [5.0.0] - 2022-**-**
9
+
10
+ ### Added
11
+
12
+ - Performance improvements.
13
+
14
+ ### Changed
15
+
16
+ - Separate modules are now merged into one to reduce final application bundle size and simplify usage.
17
+
18
+ ### Removed
19
+
20
+ - Helper decorators as they silently increase final application bundle size and reduce performance on startup for the end user.
21
+
22
+ ### Migrating from previous version
23
+
24
+ - Replace all separate module imports to `@dipscope/type-manager`.
25
+ - Remove all helper decorators and use configure options with the same names from the main `Type`, `Property` and `Inject` decorators.
26
+
27
+ ## [4.1.1] - 2022-05-30
28
+
29
+ ### Changed
30
+
31
+ - Moved source maps into separate file and reduced production bundle size.
32
+
33
+ ## [4.1.0] - 2022-05-18
34
+
35
+ ### Added
36
+
37
+ - Getters for serialized and deserialized default value in metadata.
38
+ - Decorators and options to define serialized and deserialized default value explicitly.
39
+
40
+ ## [4.0.4] - 2022-05-15
41
+
42
+ ### Changed
43
+
44
+ - Set webpack global output object to `this`.
45
+
8
46
  ## [4.0.3] - 2022-05-07
9
47
 
10
48
  ### Added
File without changes