@aws-amplify/graphql-api-construct 1.1.0 → 1.1.2-rds-3.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 (335) hide show
  1. package/.jsii +19 -18
  2. package/CHANGELOG.md +8 -0
  3. package/lib/amplify-graphql-api.js +1 -1
  4. package/lib/amplify-graphql-definition.js +1 -1
  5. package/node_modules/@aws-amplify/graphql-auth-transformer/API.md +5 -1
  6. package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +11 -0
  7. package/node_modules/@aws-amplify/graphql-auth-transformer/LICENSE +201 -0
  8. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts +3 -1
  9. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.d.ts.map +1 -1
  10. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js +34 -44
  11. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/graphql-auth-transformer.js.map +1 -1
  12. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.d.ts.map +1 -1
  13. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/utils/schema.js.map +1 -1
  14. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts +20 -0
  15. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.d.ts.map +1 -0
  16. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js +24 -0
  17. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/ddb-vtl-generator.js.map +1 -0
  18. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/field.d.ts +1 -1
  19. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.d.ts.map +1 -0
  20. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/field.js +1 -1
  21. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/field.js.map +1 -0
  22. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/helpers.d.ts +1 -1
  23. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.d.ts.map +1 -0
  24. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/helpers.js +1 -1
  25. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/helpers.js.map +1 -0
  26. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.d.ts.map +1 -0
  27. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/index.js.map +1 -0
  28. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.create.d.ts +1 -1
  29. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.d.ts.map +1 -0
  30. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.create.js +1 -1
  31. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.create.js.map +1 -0
  32. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.delete.d.ts +1 -1
  33. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.d.ts.map +1 -0
  34. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.delete.js +1 -1
  35. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.delete.js.map +1 -0
  36. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.update.d.ts +1 -1
  37. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.d.ts.map +1 -0
  38. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/mutation.update.js +1 -1
  39. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/mutation.update.js.map +1 -0
  40. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.d.ts +6 -0
  41. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.d.ts.map +1 -0
  42. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/query.js +28 -3
  43. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/query.js.map +1 -0
  44. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/search.d.ts +1 -1
  45. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.d.ts.map +1 -0
  46. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/search.js +1 -1
  47. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/search.js.map +1 -0
  48. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/subscriptions.d.ts +1 -1
  49. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.d.ts.map +1 -0
  50. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/subscriptions.js +1 -1
  51. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/ddb/resolvers/subscriptions.js.map +1 -0
  52. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts +20 -0
  53. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.d.ts.map +1 -0
  54. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js +23 -0
  55. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/rds-vtl-generator.js.map +1 -0
  56. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts +2 -0
  57. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.d.ts.map +1 -0
  58. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js +10 -0
  59. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/common.js.map +1 -0
  60. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.d.ts +2 -0
  61. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.d.ts.map +1 -0
  62. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.js +18 -0
  63. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/rds/resolvers/index.js.map +1 -0
  64. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts +19 -0
  65. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.d.ts.map +1 -0
  66. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.js +3 -0
  67. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/vtl-generator/vtl-generator.js.map +1 -0
  68. package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +12 -11
  69. package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +10 -0
  70. package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +201 -0
  71. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.d.ts.map +1 -1
  72. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js +13 -1
  73. package/node_modules/@aws-amplify/graphql-default-value-transformer/lib/graphql-default-value-transformer.js.map +1 -1
  74. package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +9 -8
  75. package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +8 -0
  76. package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +201 -0
  77. package/node_modules/@aws-amplify/graphql-function-transformer/package.json +8 -7
  78. package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +8 -0
  79. package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +201 -0
  80. package/node_modules/@aws-amplify/graphql-http-transformer/package.json +8 -7
  81. package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +11 -0
  82. package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +201 -0
  83. package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/generators/rds-vtl-generator.d.ts.map +1 -1
  84. package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/generators/rds-vtl-generator.js +4 -1
  85. package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/generators/rds-vtl-generator.js.map +1 -1
  86. package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts +2 -1
  87. package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.d.ts.map +1 -1
  88. package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js +11 -2
  89. package/node_modules/@aws-amplify/graphql-index-transformer/lib/resolvers/resolvers.js.map +1 -1
  90. package/node_modules/@aws-amplify/graphql-index-transformer/package.json +9 -8
  91. package/node_modules/@aws-amplify/graphql-maps-to-transformer/API.md +15 -0
  92. package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +15 -0
  93. package/node_modules/@aws-amplify/graphql-maps-to-transformer/LICENSE +201 -0
  94. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
  95. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/field-mapping-resolvers.d.ts +1 -0
  96. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/field-mapping-resolvers.d.ts.map +1 -1
  97. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/field-mapping-resolvers.js +14 -1
  98. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/field-mapping-resolvers.js.map +1 -1
  99. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.d.ts +2 -1
  100. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.d.ts.map +1 -1
  101. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js +16 -33
  102. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-maps-to-transformer.js.map +1 -1
  103. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.d.ts +10 -0
  104. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.d.ts.map +1 -0
  105. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.js +102 -0
  106. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-name-mapping.js.map +1 -0
  107. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.d.ts +13 -0
  108. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.d.ts.map +1 -0
  109. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js +82 -0
  110. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/graphql-refers-to-transformer.js.map +1 -0
  111. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/index.d.ts +1 -0
  112. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/index.d.ts.map +1 -1
  113. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/index.js +3 -1
  114. package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/index.js.map +1 -1
  115. package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +15 -14
  116. package/node_modules/@aws-amplify/graphql-model-transformer/API.md +15 -15
  117. package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +19 -0
  118. package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +201 -0
  119. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.d.ts.map +1 -1
  120. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.js +9 -2
  121. package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-types/mutation.js.map +1 -1
  122. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
  123. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
  124. package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
  125. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/dynamodb-vtl-generator.d.ts +6 -5
  126. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/dynamodb-vtl-generator.d.ts.map +1 -1
  127. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/dynamodb-vtl-generator.js +5 -5
  128. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/dynamodb-vtl-generator.js.map +1 -1
  129. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/rds-vtl-generator.d.ts +6 -5
  130. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/rds-vtl-generator.d.ts.map +1 -1
  131. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/rds-vtl-generator.js +10 -10
  132. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/rds-vtl-generator.js.map +1 -1
  133. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/vtl-generator.d.ts +6 -5
  134. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/generators/vtl-generator.d.ts.map +1 -1
  135. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.d.ts +4 -3
  136. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.d.ts.map +1 -1
  137. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.js +71 -55
  138. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/mutation.js.map +1 -1
  139. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.d.ts +2 -1
  140. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.d.ts.map +1 -1
  141. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.js +6 -2
  142. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/query.js.map +1 -1
  143. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts +8 -3
  144. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.d.ts.map +1 -1
  145. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js +111 -42
  146. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resolvers/rds/resolver.js.map +1 -1
  147. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js +5 -5
  148. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/model-resource-generator.js.map +1 -1
  149. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts +1 -0
  150. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.d.ts.map +1 -1
  151. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js +24 -0
  152. package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/rds-model-resource-generator.js.map +1 -1
  153. package/node_modules/@aws-amplify/graphql-model-transformer/package.json +10 -9
  154. package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +8 -0
  155. package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +201 -0
  156. package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
  157. package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +8 -7
  158. package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +12 -0
  159. package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +201 -0
  160. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
  161. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +41 -9
  162. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
  163. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.d.ts.map +1 -1
  164. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js +35 -8
  165. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-many-transformer.js.map +1 -1
  166. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.d.ts.map +1 -1
  167. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js +30 -8
  168. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-has-one-transformer.js.map +1 -1
  169. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.d.ts.map +1 -1
  170. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js +3 -2
  171. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-many-to-many-transformer.js.map +1 -1
  172. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts +13 -0
  173. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.d.ts.map +1 -0
  174. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js +171 -0
  175. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/ddb-generator.js.map +1 -0
  176. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.d.ts +4 -0
  177. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.d.ts.map +1 -0
  178. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.js +16 -0
  179. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator-factory.js.map +1 -0
  180. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.d.ts +8 -0
  181. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.d.ts.map +1 -0
  182. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.js +7 -0
  183. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/generator.js.map +1 -0
  184. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts +14 -0
  185. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.d.ts.map +1 -0
  186. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js +113 -0
  187. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolver/rds-generator.js.map +1 -0
  188. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.d.ts +4 -4
  189. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.d.ts.map +1 -1
  190. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.js +14 -161
  191. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/resolvers.js.map +1 -1
  192. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.d.ts.map +1 -1
  193. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.js +14 -8
  194. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/schema.js.map +1 -1
  195. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts +4 -0
  196. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts.map +1 -1
  197. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +5 -0
  198. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
  199. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +85 -1
  200. package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
  201. package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +11 -10
  202. package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +10 -0
  203. package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +201 -0
  204. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.d.ts.map +1 -1
  205. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js +3 -0
  206. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/graphql-searchable-transformer.js.map +1 -1
  207. package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
  208. package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +9 -8
  209. package/node_modules/@aws-amplify/graphql-sql-transformer/API.md +26 -0
  210. package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +10 -0
  211. package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +201 -0
  212. package/node_modules/@aws-amplify/graphql-sql-transformer/README.md +13 -0
  213. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.d.ts +12 -0
  214. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.d.ts.map +1 -0
  215. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js +122 -0
  216. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/graphql-sql-transformer.js.map +1 -0
  217. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.d.ts +2 -0
  218. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.d.ts.map +1 -0
  219. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.js +6 -0
  220. package/node_modules/@aws-amplify/graphql-sql-transformer/lib/index.js.map +1 -0
  221. package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +71 -0
  222. package/node_modules/@aws-amplify/graphql-transformer/API.md +4 -3
  223. package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +16 -0
  224. package/node_modules/@aws-amplify/graphql-transformer/LICENSE +201 -0
  225. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts +4 -3
  226. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.d.ts.map +1 -1
  227. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js +5 -1
  228. package/node_modules/@aws-amplify/graphql-transformer/lib/graphql-transformer.js.map +1 -1
  229. package/node_modules/@aws-amplify/graphql-transformer/package.json +16 -14
  230. package/node_modules/@aws-amplify/graphql-transformer/src/graphql-transformer.ts +10 -4
  231. package/node_modules/@aws-amplify/graphql-transformer-core/API.md +11 -2
  232. package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +20 -0
  233. package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +201 -0
  234. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
  235. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
  236. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +4 -1
  237. package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
  238. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts +3 -4
  239. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.d.ts.map +1 -1
  240. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js +2 -3
  241. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/transform.js.map +1 -1
  242. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/types.d.ts +1 -0
  243. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformation/types.d.ts.map +1 -1
  244. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.d.ts +5 -4
  245. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.d.ts.map +1 -1
  246. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.js +2 -1
  247. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/index.js.map +1 -1
  248. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js +1 -1
  249. package/node_modules/@aws-amplify/graphql-transformer-core/lib/transformer-context/resolver.js.map +1 -1
  250. package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.d.ts +1 -0
  251. package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/import-appsync-api-types.d.ts.map +1 -1
  252. package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.d.ts +1 -1
  253. package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.d.ts.map +1 -1
  254. package/node_modules/@aws-amplify/graphql-transformer-core/lib/types/index.js.map +1 -1
  255. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts +3 -2
  256. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.d.ts.map +1 -1
  257. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js +9 -3
  258. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/index.js.map +1 -1
  259. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts +3 -0
  260. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.d.ts.map +1 -0
  261. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js +19 -0
  262. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-util.js.map +1 -0
  263. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts +7 -0
  264. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.d.ts.map +1 -0
  265. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/{rds-secret-utils.js → rds-util.js} +16 -2
  266. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-util.js.map +1 -0
  267. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.d.ts +3 -1
  268. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.d.ts.map +1 -1
  269. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.js +7 -1
  270. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/schema-utils.js.map +1 -1
  271. package/node_modules/@aws-amplify/graphql-transformer-core/lib/wrappers/object-definition-wrapper.d.ts +1 -1
  272. package/node_modules/@aws-amplify/graphql-transformer-core/lib/wrappers/object-definition-wrapper.d.ts.map +1 -1
  273. package/node_modules/@aws-amplify/graphql-transformer-core/package.json +5 -4
  274. package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +15 -1
  275. package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +7 -0
  276. package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
  277. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts +8 -0
  278. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.d.ts.map +1 -1
  279. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/graphql-api-provider.js.map +1 -1
  280. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts +1 -1
  281. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.d.ts.map +1 -1
  282. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/index.js.map +1 -1
  283. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts +3 -2
  284. package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/transformer-context/transformer-context-provider.d.ts.map +1 -1
  285. package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -2
  286. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/graphql-api-provider.ts +10 -0
  287. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/index.ts +2 -0
  288. package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/transformer-context/transformer-context-provider.ts +3 -2
  289. package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
  290. package/node_modules/graphql-mapping-template/CHANGELOG.md +4 -0
  291. package/node_modules/graphql-mapping-template/LICENSE +201 -0
  292. package/node_modules/graphql-mapping-template/package.json +3 -2
  293. package/node_modules/graphql-transformer-common/API.md +21 -0
  294. package/node_modules/graphql-transformer-common/CHANGELOG.md +11 -0
  295. package/node_modules/graphql-transformer-common/LICENSE +201 -0
  296. package/node_modules/graphql-transformer-common/lib/definition.d.ts +9 -2
  297. package/node_modules/graphql-transformer-common/lib/definition.d.ts.map +1 -1
  298. package/node_modules/graphql-transformer-common/lib/definition.js +52 -1
  299. package/node_modules/graphql-transformer-common/lib/definition.js.map +1 -1
  300. package/node_modules/graphql-transformer-common/lib/util.d.ts.map +1 -1
  301. package/node_modules/graphql-transformer-common/lib/util.js +3 -1
  302. package/node_modules/graphql-transformer-common/lib/util.js.map +1 -1
  303. package/node_modules/graphql-transformer-common/package.json +7 -6
  304. package/node_modules/zod/README.md +191 -83
  305. package/node_modules/zod/lib/helpers/parseUtil.js +2 -1
  306. package/node_modules/zod/lib/index.mjs +82 -29
  307. package/node_modules/zod/lib/index.umd.js +82 -28
  308. package/node_modules/zod/lib/types.d.ts +22 -5
  309. package/node_modules/zod/lib/types.js +65 -29
  310. package/node_modules/zod/package.json +29 -15
  311. package/package.json +19 -17
  312. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/field.d.ts.map +0 -1
  313. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/field.js.map +0 -1
  314. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/helpers.d.ts.map +0 -1
  315. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/helpers.js.map +0 -1
  316. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/index.d.ts.map +0 -1
  317. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/index.js.map +0 -1
  318. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.create.d.ts.map +0 -1
  319. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.create.js.map +0 -1
  320. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.delete.d.ts.map +0 -1
  321. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.delete.js.map +0 -1
  322. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.update.d.ts.map +0 -1
  323. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/mutation.update.js.map +0 -1
  324. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/query.d.ts +0 -6
  325. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/query.d.ts.map +0 -1
  326. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/query.js.map +0 -1
  327. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/search.d.ts.map +0 -1
  328. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/search.js.map +0 -1
  329. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/subscriptions.d.ts.map +0 -1
  330. package/node_modules/@aws-amplify/graphql-auth-transformer/lib/resolvers/subscriptions.js.map +0 -1
  331. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-secret-utils.d.ts +0 -2
  332. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-secret-utils.d.ts.map +0 -1
  333. package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/rds-secret-utils.js.map +0 -1
  334. /package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/index.d.ts +0 -0
  335. /package/node_modules/@aws-amplify/graphql-auth-transformer/lib/{resolvers → vtl-generator/ddb/resolvers}/index.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sourceRoot":"","sources":["../src/definition.ts"],"names":[],"mappings":";;;AAAA,qCAqBiB;AAKJ,QAAA,gBAAgB,GAAc;IACzC,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,EAAE,EAAE,IAAI;CACT,CAAC;AAEF,MAAM,aAAa,GAAc;IAC/B,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,OAAO;CAChB,CAAC;AAEW,QAAA,uBAAuB,GAAc;IAChD,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,QAAQ;IACrB,YAAY,EAAE,KAAK;IACnB,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,QAAQ;IAClB,YAAY,EAAE,QAAQ;CACvB,CAAC;AAEW,QAAA,eAAe,GAAc;IACxC,GAAG,wBAAgB;IACnB,GAAG,aAAa;IAChB,GAAG,+BAAuB;CAC3B,CAAC;AAEW,QAAA,eAAe,GAA6B;IACvD,MAAM,EAAE,IAAI;IACZ,GAAG,EA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,CAGpD;AAED,eAAO,MAAM,UAAU,oBAAoB,CAAC;AAC5C,eAAO,MAAM,cAAc,cAAc,CAAC"}
@@ -51,7 +51,9 @@ function toLower(word) {
51
51
  }
52
52
  exports.toLower = toLower;
53
53
  function toCamelCase(words) {
54
- const formatted = words.map((w, i) => (i === 0 ? w.charAt(0).toLowerCase() + w.slice(1) : w.charAt(0).toUpperCase() + w.slice(1)));
54
+ const formatted = words
55
+ .filter((w) => (w === null || w === void 0 ? void 0 : w.length) > 0)
56
+ .map((w, i) => (i === 0 ? w.charAt(0).toLowerCase() + w.slice(1) : w.charAt(0).toUpperCase() + w.slice(1)));
55
57
  return formatted.join('');
56
58
  }
57
59
  exports.toCamelCase = toCamelCase;
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,0DAAkC;AAElC,SAAgB,SAAS,CAAC,GAAW,EAAE,oBAA6B;IAClE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE;QACf,OAAO,EAAE,CAAC;KACX;IAED,IAAI,oBAAoB,EAAE;QACxB,OAAO,IAAA,mBAAS,EAAC,GAAG,CAAC,CAAC;KACvB;IAED,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC;AAVD,8BAUC;AAED,SAAgB,WAAW,CAAC,GAAW;IACrC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE;QACf,OAAO,EAAE,CAAC;KACX;IACD,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC;IAC/D,OAAO,OAAO,CAAC;AACjB,CAAC;AAND,kCAMC;AAED,SAAgB,YAAY,CAAC,GAAW;IACtC,MAAM,iBAAiB,GAAW,eAAe,CAAC;IAClD,IAAI,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QAK/B,OAAO,GAAG,GAAG,CAAC,OA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W,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9G,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5B,CAAC;AALD,kCAKC;AAED,SAAgB,YAAY,CAAC,KAAe;IAC1C,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5B,CAAC;AAHD,oCAGC;AAEY,QAAA,UAAU,GAAG,iBAAiB,CAAC;AAC/B,QAAA,cAAc,GAAG,CAAC,UAAU,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-transformer-common",
3
- "version": "4.25.1",
3
+ "version": "4.26.0-rds-3.0",
4
4
  "description": "Common code and constants for AppSync Transformers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "graphql": "^15.5.0",
28
- "graphql-mapping-template": "4.20.12",
28
+ "graphql-mapping-template": "4.20.13-rds-3.0",
29
29
  "md5": "^2.2.1",
30
30
  "pluralize": "8.0.0"
31
31
  },
@@ -36,9 +36,9 @@
36
36
  "collectCoverage": true,
37
37
  "coverageThreshold": {
38
38
  "global": {
39
- "branches": 80,
40
- "functions": 80,
41
- "lines": 80
39
+ "branches": 17,
40
+ "functions": 17,
41
+ "lines": 34
42
42
  }
43
43
  },
44
44
  "transform": {
@@ -54,5 +54,6 @@
54
54
  "json",
55
55
  "node"
56
56
  ]
57
- }
57
+ },
58
+ "gitHead": "c1efd4e687969d2cb64361ee656b7ce99a5eebb8"
58
59
  }
@@ -45,20 +45,32 @@
45
45
 
46
46
  #### Go to [zod.js.org](https://zod.js.org) >> -->
47
47
 
48
+ - [Table of contents](#table-of-contents)
48
49
  - [Introduction](#introduction)
49
50
  - [Sponsors](#sponsors)
51
+ - [Gold](#gold)
52
+ - [Silver](#silver)
53
+ - [Bronze](#bronze)
50
54
  - [Ecosystem](#ecosystem)
55
+ - [Resources](#resources)
56
+ - [API libraries](#api-libraries)
57
+ - [Form integrations](#form-integrations)
58
+ - [Zod to X](#zod-to-x)
59
+ - [X to Zod](#x-to-zod)
60
+ - [Mocking](#mocking)
61
+ - [Powered by Zod](#powered-by-zod)
62
+ - [Utilities for Zod](#utilities-for-zod)
51
63
  - [Installation](#installation)
52
64
  - [Requirements](#requirements)
53
- - [Node/npm](#from-npm-nodebun)
54
- - [Deno](#from-denolandx-deno)
65
+ - [From `npm` (Node/Bun)](#from-npm-nodebun)
66
+ - [From `deno.land/x` (Deno)](#from-denolandx-deno)
55
67
  - [Basic usage](#basic-usage)
56
68
  - [Primitives](#primitives)
57
69
  - [Coercion for primitives](#coercion-for-primitives)
58
70
  - [Literals](#literals)
59
71
  - [Strings](#strings)
60
- - [Datetime](#datetime-validation)
61
- - [IP](#ip-address-validation)
72
+ - [ISO datetimes](#iso-datetimes)
73
+ - [IP addresses](#ip-addresses)
62
74
  - [Numbers](#numbers)
63
75
  - [BigInts](#bigints)
64
76
  - [NaNs](#nans)
@@ -69,59 +81,75 @@
69
81
  - [Optionals](#optionals)
70
82
  - [Nullables](#nullables)
71
83
  - [Objects](#objects)
72
- - [.shape](#shape)
73
- - [.keyof](#keyof)
74
- - [.extend](#extend)
75
- - [.merge](#merge)
76
- - [.pick/.omit](#pickomit)
77
- - [.partial](#partial)
78
- - [.deepPartial](#deepPartial)
79
- - [.passthrough](#passthrough)
80
- - [.strict](#strict)
81
- - [.strip](#strip)
82
- - [.catchall](#catchall)
84
+ - [`.shape`](#shape)
85
+ - [`.keyof`](#keyof)
86
+ - [`.extend`](#extend)
87
+ - [`.merge`](#merge)
88
+ - [`.pick/.omit`](#pickomit)
89
+ - [`.partial`](#partial)
90
+ - [`.deepPartial`](#deeppartial)
91
+ - [`.required`](#required)
92
+ - [`.passthrough`](#passthrough)
93
+ - [`.strict`](#strict)
94
+ - [`.strip`](#strip)
95
+ - [`.catchall`](#catchall)
83
96
  - [Arrays](#arrays)
84
- - [.element](#element)
85
- - [.nonempty](#nonempty)
86
- - [.min/.max/.length](#minmaxlength)
97
+ - [`.element`](#element)
98
+ - [`.nonempty`](#nonempty)
99
+ - [`.min/.max/.length`](#minmaxlength)
87
100
  - [Tuples](#tuples)
88
101
  - [Unions](#unions)
89
- - [Discriminated Unions](#discriminated-unions)
102
+ - [Discriminated unions](#discriminated-unions)
90
103
  - [Records](#records)
104
+ - [Record key type](#record-key-type)
91
105
  - [Maps](#maps)
92
106
  - [Sets](#sets)
93
107
  - [Intersections](#intersections)
94
108
  - [Recursive types](#recursive-types)
109
+ - [ZodType with ZodEffects](#zodtype-with-zodeffects)
95
110
  - [JSON type](#json-type)
96
- - [Cyclical data](#cyclical-objects)
111
+ - [Cyclical objects](#cyclical-objects)
97
112
  - [Promises](#promises)
98
113
  - [Instanceof](#instanceof)
99
114
  - [Functions](#functions)
100
115
  - [Preprocess](#preprocess)
101
- - [Custom](#custom-schemas)
116
+ - [Custom schemas](#custom-schemas)
102
117
  - [Schema methods](#schema-methods)
103
- - [.parse](#parse)
104
- - [.parseAsync](#parseasync)
105
- - [.safeParse](#safeparse)
106
- - [.safeParseAsync](#safeparseasync)
107
- - [.refine](#refine)
108
- - [.superRefine](#superRefine)
109
- - [.transform](#transform)
110
- - [.default](#default)
111
- - [.describe](#describe)
112
- - [.catch](#catch)
113
- - [.optional](#optional)
114
- - [.nullable](#nullable)
115
- - [.nullish](#nullish)
116
- - [.array](#array)
117
- - [.promise](#promise)
118
- - [.or](#or)
119
- - [.and](#and)
120
- - [.brand](#brand)
121
- - [.pipe](#pipe)
118
+ - [`.parse`](#parse)
119
+ - [`.parseAsync`](#parseasync)
120
+ - [`.safeParse`](#safeparse)
121
+ - [`.safeParseAsync`](#safeparseasync)
122
+ - [`.refine`](#refine)
123
+ - [Arguments](#arguments)
124
+ - [Customize error path](#customize-error-path)
125
+ - [Asynchronous refinements](#asynchronous-refinements)
126
+ - [Relationship to transforms](#relationship-to-transforms)
127
+ - [`.superRefine`](#superrefine)
128
+ - [Abort early](#abort-early)
129
+ - [Type refinements](#type-refinements)
130
+ - [`.transform`](#transform)
131
+ - [Chaining order](#chaining-order)
132
+ - [Validating during transform](#validating-during-transform)
133
+ - [Relationship to refinements](#relationship-to-refinements)
134
+ - [Async transforms](#async-transforms)
135
+ - [`.default`](#default)
136
+ - [`.describe`](#describe)
137
+ - [`.catch`](#catch)
138
+ - [`.optional`](#optional)
139
+ - [`.nullable`](#nullable)
140
+ - [`.nullish`](#nullish)
141
+ - [`.array`](#array)
142
+ - [`.promise`](#promise)
143
+ - [`.or`](#or)
144
+ - [`.and`](#and)
145
+ - [`.brand`](#brand)
146
+ - [`.readonly`](#readonly)
147
+ - [`.pipe`](#pipe)
148
+ - [You can use `.pipe()` to fix common issues with `z.coerce`.](#you-can-use-pipe-to-fix-common-issues-with-zcoerce)
122
149
  - [Guides and concepts](#guides-and-concepts)
123
150
  - [Type inference](#type-inference)
124
151
  - [Writing generic functions](#writing-generic-functions)
152
+ - [Constraining allowable inputs](#constraining-allowable-inputs)
125
153
  - [Error handling](#error-handling)
126
154
  - [Error formatting](#error-formatting)
127
155
  - [Comparison](#comparison)
@@ -129,10 +157,9 @@
129
157
  - [Yup](#yup)
130
158
  - [io-ts](#io-ts)
131
159
  - [Runtypes](#runtypes)
160
+ - [Ow](#ow)
132
161
  - [Changelog](#changelog)
133
162
 
134
- <!-- **Zod 2 is coming! Follow [@colinhacks](https://twitter.com/colinhacks) to stay updated and discuss the future of Zod.** -->
135
-
136
163
  ## Introduction
137
164
 
138
165
  Zod is a TypeScript-first schema declaration and validation library. I'm using the term "schema" to broadly refer to any data type, from a simple `string` to a complex nested object.
@@ -206,7 +233,7 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
206
233
  <a href="https://proxy.com">proxy.com</a>
207
234
  </td>
208
235
  </tr>
209
- <tr>
236
+ <tr>
210
237
  <td align="center">
211
238
  <a href="https://trigger.dev/">
212
239
  <img src="https://avatars.githubusercontent.com/u/95297378?s=200&v=4" width="200px;" alt="Trigger.dev logo" />
@@ -215,16 +242,33 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
215
242
  <b>Trigger.dev</b>
216
243
  <br />
217
244
  <a href="https://trigger.dev">trigger.dev</a>
245
+ <br/>
246
+ <p>Effortless automation for developers.</p>
218
247
  </td>
219
- <!-- <td align="center">
220
- <a href="https://proxy.com/">
221
- <img src="https://avatars.githubusercontent.com/u/14321439?s=200&v=4" width="200px;" alt="Proxy logo" />
248
+ <td align="center">
249
+ <a href="https://transloadit.com/">
250
+ <img src="https://avatars.githubusercontent.com/u/125754?s=200&v=4" width="200px;" alt="Transloadit logo" />
222
251
  </a>
223
252
  <br />
224
- <b>Proxy</b>
253
+ <b>Transloadit</b>
225
254
  <br />
226
- <a href="https://proxy.com">proxy.com</a>
227
- </td> -->
255
+ <a href="https://transloadit.com">transloadit.com</a>
256
+ <br/>
257
+ <p>Simple file processing for developers.</p>
258
+ </td>
259
+ </tr>
260
+ <tr>
261
+ <td align="center">
262
+ <a href="https://infisical.com">
263
+ <img src="https://avatars.githubusercontent.com/u/107880645?s=200&v=4" width="200px;" alt="Infisical logo" />
264
+ </a>
265
+ <br />
266
+ <b>Infisical</b>
267
+ <br />
268
+ <a href="https://infisical.com">infisical.com</a>
269
+ <br/>
270
+ <p>Open-source platform for secret<br/>management: sync secrets across your<br/>team/infrastructure and prevent secret leaks.</p>
271
+ </td>
228
272
  </tr>
229
273
  </table>
230
274
 
@@ -362,7 +406,7 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
362
406
  </td>
363
407
  </tr>
364
408
  <tr>
365
- <td align="center">
409
+ <td align="center">
366
410
  <a href="https://learnwithjason.dev">
367
411
  <img src="https://avatars.githubusercontent.com/u/66575486?s=200&v=4" width="100px;" alt="Learn with Jason logo"/>
368
412
  </a>
@@ -382,17 +426,16 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
382
426
  <a href="https://ill.inc/">ill.inc</a>
383
427
  <br />
384
428
  </td>
385
- <!-- <td align="center">
386
- <a href="https://www.avanawallet.com/">
387
- <img src="https://avatars.githubusercontent.com/u/105452197?s=200&v=4" width="100px;" alt="Avana Wallet logo"/>
429
+ <td align="center">
430
+ <a href="https://www.masterborn.com/career?utm_source=github&utm_medium=referral&utm_campaign=zodsponsoring">
431
+ <img src="https://avatars.githubusercontent.com/u/48984031?s=200&v=4" width="100px;" alt="MasterBorn logo"/>
388
432
  </a>
389
433
  <br />
390
- <b>Avana Wallet</b>
434
+ <b>MasterBorn</b>
391
435
  <br/>
392
- <a href="https://www.avanawallet.com/">avanawallet.com</a><br/>
393
- <span>Solana non-custodial wallet</span>
436
+ <a href="https://www.masterborn.com/career?utm_source=github&utm_medium=referral&utm_campaign=zodsponsoring">masterborn.com</a>
394
437
  <br />
395
- </td> -->
438
+ </td>
396
439
  </tr>
397
440
  </table>
398
441
 
@@ -413,9 +456,12 @@ There are a growing number of tools that are built atop or support Zod natively!
413
456
  - [`domain-functions`](https://github.com/SeasonedSoftware/domain-functions/): Decouple your business logic from your framework using composable functions. With first-class type inference from end to end powered by Zod schemas.
414
457
  - [`@zodios/core`](https://github.com/ecyrbe/zodios): A typescript API client with runtime and compile time validation backed by axios and zod.
415
458
  - [`express-zod-api`](https://github.com/RobinTail/express-zod-api): Build Express-based APIs with I/O schema validation and custom middlewares.
459
+ - [`tapiduck`](https://github.com/sumukhbarve/monoduck/blob/main/src/tapiduck/README.md): End-to-end typesafe JSON APIs with Zod and Express; a bit like tRPC, but simpler.
460
+ - [`koa-zod-router`](https://github.com/JakeFenley/koa-zod-router): Create typesafe routes in Koa with I/O validation using Zod.
416
461
 
417
462
  #### Form integrations
418
463
 
464
+ - [`conform`](https://conform.guide/api/zod): A progressive enhancement first form validation library for Remix and React Router
419
465
  - [`react-hook-form`](https://github.com/react-hook-form/resolvers#zod): A first-party Zod resolver for React Hook Form.
420
466
  - [`zod-validation-error`](https://github.com/causaly/zod-validation-error): Generate user-friendly error messages from `ZodError`s.
421
467
  - [`zod-formik-adapter`](https://github.com/robertLichtnow/zod-formik-adapter): A community-maintained Formik adapter for Zod.
@@ -426,6 +472,9 @@ There are a growing number of tools that are built atop or support Zod natively!
426
472
  - [`zod-i18n-map`](https://github.com/aiji42/zod-i18n): Useful for translating Zod error messages.
427
473
  - [`@modular-forms/solid`](https://github.com/fabian-hiller/modular-forms): Modular form library for SolidJS that supports Zod for validation.
428
474
  - [`houseform`](https://github.com/crutchcorn/houseform/): A React form library that uses Zod for validation.
475
+ - [`sveltekit-superforms`](https://github.com/ciscoheat/sveltekit-superforms): Supercharged form library for SvelteKit with Zod validation.
476
+ - [`mobx-zod-form`](https://github.com/MonoidDev/mobx-zod-form): Data-first form builder based on MobX & Zod.
477
+ - [`@vee-validate/zod`](https://github.com/logaretm/vee-validate/tree/main/packages/zod): Form library for Vue.js with Zod schema validation.
429
478
 
430
479
  #### Zod to X
431
480
 
@@ -437,6 +486,9 @@ There are a growing number of tools that are built atop or support Zod natively!
437
486
  - [`fastify-type-provider-zod`](https://github.com/turkerdev/fastify-type-provider-zod): Create Fastify type providers from Zod schemas.
438
487
  - [`zod-to-openapi`](https://github.com/asteasolutions/zod-to-openapi): Generate full OpenAPI (Swagger) docs from Zod, including schemas, endpoints & parameters.
439
488
  - [`nestjs-graphql-zod`](https://github.com/incetarik/nestjs-graphql-zod): Generates NestJS GraphQL model classes from Zod schemas. Provides GraphQL method decorators working with Zod schemas.
489
+ - [`zod-openapi`](https://github.com/samchungy/zod-openapi): Create full OpenAPI v3.x documentation from Zod schemas.
490
+ - [`fastify-zod-openapi`](https://github.com/samchungy/fastify-zod-openapi): Fastify type provider, validation, serialization and @fastify/swagger support for Zod schemas.
491
+ - [`typeschema`](https://typeschema.com/): Universal adapter for schema validation.
440
492
 
441
493
  #### X to Zod
442
494
 
@@ -450,14 +502,19 @@ There are a growing number of tools that are built atop or support Zod natively!
450
502
  - [`prisma-zod-generator`](https://github.com/omar-dulaimi/prisma-zod-generator): Emit Zod schemas from your Prisma schema.
451
503
  - [`prisma-trpc-generator`](https://github.com/omar-dulaimi/prisma-trpc-generator): Emit fully implemented tRPC routers and their validation schemas using Zod.
452
504
  - [`zod-prisma-types`](https://github.com/chrishoermann/zod-prisma-types) Create Zod types from your Prisma models.
505
+ - [`quicktype`](https://app.quicktype.io/): Convert JSON objects and JSON schemas into Zod schemas.
453
506
 
454
507
  #### Mocking
455
508
 
456
509
  - [`@anatine/zod-mock`](https://github.com/anatine/zod-plugins/tree/main/packages/zod-mock): Generate mock data from a Zod schema. Powered by [faker.js](https://github.com/faker-js/faker).
457
510
  - [`zod-mocking`](https://github.com/dipasqualew/zod-mocking): Generate mock data from your Zod schemas.
511
+ - [`zod-fixture`](https://github.com/timdeschryver/zod-fixture): Use your zod schemas to automate the generation of non-relevant test fixtures in a deterministic way.
512
+ - [`zocker`](https://zocker.sigrist.dev): Generate plausible mock-data from your schemas.
513
+ - [`zodock`](https://github.com/ItMaga/zodock) Generate mock data based on Zod schemas.
458
514
 
459
515
  #### Powered by Zod
460
516
 
517
+ - [`freerstore`](https://github.com/JacobWeisenburger/freerstore): Firestore cost optimizer.
461
518
  - [`slonik`](https://github.com/gajus/slonik/tree/gajus/add-zod-validation-backwards-compatible#runtime-validation-and-static-type-inference): Node.js Postgres client with strong Zod integration.
462
519
  - [`soly`](https://github.com/mdbetancourt/soly): Create CLI applications with zod.
463
520
  - [`zod-xlsx`](https://github.com/sidwebworks/zod-xlsx): A xlsx based resource validator using Zod schemas.
@@ -494,6 +551,15 @@ bun add zod # bun
494
551
  pnpm add zod # pnpm
495
552
  ```
496
553
 
554
+ Zod also publishes a canary version on every commit. To install the canary:
555
+
556
+ ```sh
557
+ npm install zod@canary # npm
558
+ yarn add zod@canary # yarn
559
+ bun add zod@canary # bun
560
+ pnpm add zod@canary # pnpm
561
+ ```
562
+
497
563
  ### From `deno.land/x` (Deno)
498
564
 
499
565
  Unlike Node, Deno relies on direct URL imports instead of a package manager like NPM. Zod is available on [deno.land/x](https://deno.land/x). The latest version can be imported like so:
@@ -618,7 +684,7 @@ z.coerce.boolean().parse(null); // => false
618
684
 
619
685
  ## Literals
620
686
 
621
- Literal schemas represent a [literal type](https://www.typescriptlang.org/docs/handbook/literal-types.html), like `"hello world"` or `5`.
687
+ Literal schemas represent a [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types), like `"hello world"` or `5`.
622
688
 
623
689
  ```ts
624
690
  const tuna = z.literal("tuna");
@@ -966,7 +1032,7 @@ FruitEnum.parse("Cantaloupe"); // fails
966
1032
 
967
1033
  **Const enums**
968
1034
 
969
- The `.nativeEnum()` function works for `as const` objects as well. ⚠️ `as const` required TypeScript 3.4+!
1035
+ The `.nativeEnum()` function works for `as const` objects as well. ⚠️ `as const` requires TypeScript 3.4+!
970
1036
 
971
1037
  ```ts
972
1038
  const Fruits = {
@@ -1137,13 +1203,13 @@ type NoIDRecipe = z.infer<typeof NoIDRecipe>;
1137
1203
 
1138
1204
  ### `.partial`
1139
1205
 
1140
- Inspired by the built-in TypeScript utility type [Partial](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialt), the `.partial` method makes all properties optional.
1206
+ Inspired by the built-in TypeScript utility type [Partial](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype), the `.partial` method makes all properties optional.
1141
1207
 
1142
1208
  Starting from this object:
1143
1209
 
1144
1210
  ```ts
1145
1211
  const user = z.object({
1146
- email: z.string()
1212
+ email: z.string(),
1147
1213
  username: z.string(),
1148
1214
  });
1149
1215
  // { email: string; username: string }
@@ -1207,10 +1273,12 @@ Contrary to the `.partial` method, the `.required` method makes all properties r
1207
1273
  Starting from this object:
1208
1274
 
1209
1275
  ```ts
1210
- const user = z.object({
1211
- email: z.string()
1212
- username: z.string(),
1213
- }).partial();
1276
+ const user = z
1277
+ .object({
1278
+ email: z.string(),
1279
+ username: z.string(),
1280
+ })
1281
+ .partial();
1214
1282
  // { email?: string | undefined; username?: string | undefined }
1215
1283
  ```
1216
1284
 
@@ -1464,6 +1532,12 @@ type NumberCache = z.infer<typeof NumberCache>;
1464
1532
  This is particularly useful for storing or caching items by ID.
1465
1533
 
1466
1534
  ```ts
1535
+ const userSchema = z.object({ name: z.string() });
1536
+ const userStoreSchema = z.record(userSchema);
1537
+
1538
+ type UserStore = z.infer<typeof userStoreSchema>;
1539
+ // => type UserStore = { [ x: string ]: { name: string } }
1540
+
1467
1541
  const userStore: UserStore = {};
1468
1542
 
1469
1543
  userStore["77d2586b-9e8e-4ecf-8b21-ea7e0530eadd"] = {
@@ -2292,7 +2366,7 @@ A convenience method that returns a "nullish" version of a schema. Nullish schem
2292
2366
  const nullishString = z.string().nullish(); // string | null | undefined
2293
2367
 
2294
2368
  // equivalent to
2295
- z.string().optional().nullable();
2369
+ z.string().nullable().optional();
2296
2370
  ```
2297
2371
 
2298
2372
  ### `.array`
@@ -2382,7 +2456,38 @@ type Cat = z.infer<typeof Cat>;
2382
2456
 
2383
2457
  Note that branded types do not affect the runtime result of `.parse`. It is a static-only construct.
2384
2458
 
2385
- ### `.pipe()`
2459
+ ### `.readonly`
2460
+
2461
+ `.readonly() => ZodReadonly<this>`
2462
+
2463
+ This method returns a `ZodReadonly` schema instance that parses the input using the base schema, then calls `Object.freeze()` on the result. The inferred type is also marked as `readonly`.
2464
+
2465
+ ```ts
2466
+ const schema = z.object({ name: string }).readonly();
2467
+ type schema = z.infer<typeof schema>;
2468
+ // Readonly<{name: string}>
2469
+
2470
+ const result = schema.parse({ name: "fido" });
2471
+ result.name = "simba"; // error
2472
+ ```
2473
+
2474
+ The inferred type uses TypeScript's built-in readonly types when relevant.
2475
+
2476
+ ```ts
2477
+ z.array(z.string()).readonly();
2478
+ // readonly string[]
2479
+
2480
+ z.tuple([z.string(), z.number()]).readonly();
2481
+ // readonly [string, number]
2482
+
2483
+ z.map(z.string(), z.date()).readonly();
2484
+ // ReadonlyMap<string, Date>
2485
+
2486
+ z.set(z.string()).readonly();
2487
+ // ReadonlySet<Promise<string>>
2488
+ ```
2489
+
2490
+ ### `.pipe`
2386
2491
 
2387
2492
  Schemas can be chained into validation "pipelines". It's useful for easily validating the result after a `.transform()`:
2388
2493
 
@@ -2399,51 +2504,55 @@ The `.pipe()` method returns a `ZodPipeline` instance.
2399
2504
  You can constrain the input to types that work well with your chosen coercion. Then use `.pipe()` to apply the coercion.
2400
2505
 
2401
2506
  without constrained input:
2507
+
2402
2508
  ```ts
2403
- const toDate = z.coerce.date()
2509
+ const toDate = z.coerce.date();
2404
2510
 
2405
2511
  // works intuitively
2406
- console.log(toDate.safeParse('2023-01-01').success) // true
2512
+ console.log(toDate.safeParse("2023-01-01").success); // true
2407
2513
 
2408
2514
  // might not be what you want
2409
- console.log(toDate.safeParse(null).success) // true
2515
+ console.log(toDate.safeParse(null).success); // true
2410
2516
  ```
2411
2517
 
2412
2518
  with constrained input:
2519
+
2413
2520
  ```ts
2414
- const datelike = z.union([z.number(), z.string(), z.date()])
2415
- const datelikeToDate = datelike.pipe(z.coerce.date())
2521
+ const datelike = z.union([z.number(), z.string(), z.date()]);
2522
+ const datelikeToDate = datelike.pipe(z.coerce.date());
2416
2523
 
2417
2524
  // still works intuitively
2418
- console.log(datelikeToDate.safeParse('2023-01-01').success) // true
2525
+ console.log(datelikeToDate.safeParse("2023-01-01").success); // true
2419
2526
 
2420
2527
  // more likely what you want
2421
- console.log(datelikeToDate.safeParse(null).success) // false
2528
+ console.log(datelikeToDate.safeParse(null).success); // false
2422
2529
  ```
2423
2530
 
2424
2531
  You can also use this technique to avoid coercions that throw uncaught errors.
2425
2532
 
2426
2533
  without constrained input:
2534
+
2427
2535
  ```ts
2428
- const toBigInt = z.coerce.bigint()
2536
+ const toBigInt = z.coerce.bigint();
2429
2537
 
2430
2538
  // works intuitively
2431
- console.log( toBigInt.safeParse( '42' ) ) // true
2539
+ console.log(toBigInt.safeParse("42")); // true
2432
2540
 
2433
2541
  // probably not what you want
2434
- console.log( toBigInt.safeParse( null ) ) // throws uncaught error
2542
+ console.log(toBigInt.safeParse(null)); // throws uncaught error
2435
2543
  ```
2436
2544
 
2437
2545
  with constrained input:
2546
+
2438
2547
  ```ts
2439
- const toNumber = z.number().or( z.string() ).pipe( z.coerce.number() )
2440
- const toBigInt = z.bigint().or( toNumber ).pipe( z.coerce.bigint() )
2548
+ const toNumber = z.number().or(z.string()).pipe(z.coerce.number());
2549
+ const toBigInt = z.bigint().or(toNumber).pipe(z.coerce.bigint());
2441
2550
 
2442
2551
  // still works intuitively
2443
- console.log( toBigInt.safeParse( '42' ).success ) // true
2552
+ console.log(toBigInt.safeParse("42").success); // true
2444
2553
 
2445
2554
  // error handled by zod, more likely what you want
2446
- console.log( toBigInt.safeParse( null ).success ) // false
2555
+ console.log(toBigInt.safeParse(null).success); // false
2447
2556
  ```
2448
2557
 
2449
2558
  ## Guides and concepts
@@ -2654,7 +2763,6 @@ Yup is a full-featured library that was implemented first in vanilla JS, and lat
2654
2763
 
2655
2764
  - Supports casting and transforms
2656
2765
  - All object fields are optional by default
2657
- - Missing object methods: (partial, deepPartial)
2658
2766
  <!-- - Missing nonempty arrays with proper typing (`[T, ...T[]]`) -->
2659
2767
  - Missing promise schemas
2660
2768
  - Missing function schemas
@@ -2717,7 +2825,7 @@ This more declarative API makes schema definitions vastly more concise.
2717
2825
 
2718
2826
  [https://github.com/pelotom/runtypes](https://github.com/pelotom/runtypes)
2719
2827
 
2720
- Good type inference support, but limited options for object type masking (no `.pick` , `.omit` , `.extend` , etc.). No support for `Record` s (their `Record` is equivalent to Zod's `object` ). They DO support readonly types, which Zod does not.
2828
+ Good type inference support. They DO support readonly types, which Zod does not.
2721
2829
 
2722
2830
  - Supports "pattern matching": computed properties that distribute over unions
2723
2831
  - Supports readonly types
@@ -89,7 +89,8 @@ class ParseStatus {
89
89
  status.dirty();
90
90
  if (value.status === "dirty")
91
91
  status.dirty();
92
- if (typeof value.value !== "undefined" || pair.alwaysSet) {
92
+ if (key.value !== "__proto__" &&
93
+ (typeof value.value !== "undefined" || pair.alwaysSet)) {
93
94
  finalObject[key.value] = value.value;
94
95
  }
95
96
  }