@cdklabs/cdk-construct-connect-datalake 0.0.12 → 0.0.14

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 (235) hide show
  1. package/.jsii +11 -11
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/README.md +1 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -1
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +1 -1
  9. package/node_modules/@aws-sdk/client-cloudformation/package.json +10 -10
  10. package/node_modules/@aws-sdk/client-connect/README.md +11 -6
  11. package/node_modules/@aws-sdk/client-connect/dist-cjs/schemas/schemas_0.js +74 -47
  12. package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +43 -16
  13. package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +12 -7
  14. package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +12 -7
  15. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateVocabularyCommand.d.ts +2 -1
  16. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetMetricDataV2Command.d.ts +2 -1
  17. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactsCommand.d.ts +17 -0
  18. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchPromptsCommand.d.ts +1 -2
  19. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchQueuesCommand.d.ts +1 -2
  20. package/node_modules/@aws-sdk/client-connect/dist-types/index.d.ts +12 -7
  21. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +40 -37
  22. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +152 -59
  23. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +69 -63
  24. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +72 -16
  25. package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +3 -0
  26. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateVocabularyCommand.d.ts +2 -4
  27. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetMetricDataV2Command.d.ts +2 -4
  28. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchPromptsCommand.d.ts +4 -2
  29. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchQueuesCommand.d.ts +1 -2
  30. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +9 -10
  31. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +9 -10
  32. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +19 -15
  33. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +17 -1
  34. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
  35. package/node_modules/@aws-sdk/client-connect/package.json +10 -10
  36. package/node_modules/@aws-sdk/client-glue/README.md +14 -0
  37. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +44 -4
  38. package/node_modules/@aws-sdk/client-glue/dist-cjs/models/errors.js +16 -1
  39. package/node_modules/@aws-sdk/client-glue/dist-cjs/schemas/schemas_0.js +133 -51
  40. package/node_modules/@aws-sdk/client-glue/dist-es/Glue.js +4 -0
  41. package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetDashboardUrlCommand.js +16 -0
  42. package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetSessionEndpointCommand.js +16 -0
  43. package/node_modules/@aws-sdk/client-glue/dist-es/commands/index.js +2 -0
  44. package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +14 -4
  45. package/node_modules/@aws-sdk/client-glue/dist-es/models/errors.js +14 -0
  46. package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +108 -26
  47. package/node_modules/@aws-sdk/client-glue/dist-types/Glue.d.ts +14 -0
  48. package/node_modules/@aws-sdk/client-glue/dist-types/GlueClient.d.ts +4 -2
  49. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateSessionCommand.d.ts +5 -0
  50. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDashboardUrlCommand.d.ts +93 -0
  51. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetMLTaskRunCommand.d.ts +1 -2
  52. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetSessionCommand.d.ts +1 -0
  53. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetSessionEndpointCommand.d.ts +101 -0
  54. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableCommand.d.ts +121 -0
  55. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableVersionCommand.d.ts +118 -0
  56. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableVersionsCommand.d.ts +118 -0
  57. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTablesCommand.d.ts +119 -1
  58. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetUnfilteredTableMetadataCommand.d.ts +118 -0
  59. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListSessionsCommand.d.ts +1 -0
  60. package/node_modules/@aws-sdk/client-glue/dist-types/commands/RunStatementCommand.d.ts +6 -0
  61. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchTablesCommand.d.ts +118 -0
  62. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateCrawlerScheduleCommand.d.ts +2 -1
  63. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateDataQualityRulesetCommand.d.ts +1 -1
  64. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateDatabaseCommand.d.ts +1 -1
  65. package/node_modules/@aws-sdk/client-glue/dist-types/commands/index.d.ts +2 -0
  66. package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +38 -12
  67. package/node_modules/@aws-sdk/client-glue/dist-types/models/errors.d.ts +17 -0
  68. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +41 -28
  69. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +156 -102
  70. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +107 -2
  71. package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +9 -0
  72. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/Glue.d.ts +34 -0
  73. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/GlueClient.d.ts +12 -0
  74. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDashboardUrlCommand.d.ts +52 -0
  75. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetMLTaskRunCommand.d.ts +1 -2
  76. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetSessionEndpointCommand.d.ts +53 -0
  77. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateCrawlerScheduleCommand.d.ts +2 -4
  78. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateDataQualityRulesetCommand.d.ts +1 -1
  79. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateDatabaseCommand.d.ts +1 -1
  80. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/index.d.ts +2 -0
  81. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +19 -6
  82. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/errors.d.ts +8 -0
  83. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +12 -7
  84. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +36 -23
  85. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +24 -1
  86. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
  87. package/node_modules/@aws-sdk/client-glue/package.json +10 -10
  88. package/node_modules/@aws-sdk/client-lakeformation/package.json +10 -10
  89. package/node_modules/@aws-sdk/client-ram/package.json +10 -10
  90. package/node_modules/@aws-sdk/client-sts/package.json +12 -12
  91. package/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -2291
  92. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -6
  93. package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
  94. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +1 -0
  95. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +11 -6
  96. package/node_modules/@aws-sdk/core/dist-types/index.d.ts +5 -5
  97. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +5 -5
  98. package/node_modules/@aws-sdk/core/package.json +12 -12
  99. package/node_modules/@aws-sdk/credential-provider-env/package.json +7 -7
  100. package/node_modules/@aws-sdk/credential-provider-http/package.json +11 -10
  101. package/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -15
  102. package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
  103. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
  104. package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
  105. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +4 -1
  106. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +4 -1
  107. package/node_modules/@aws-sdk/credential-provider-sso/package.json +12 -10
  108. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
  109. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +99 -106
  110. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +62 -120
  111. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +55 -86
  112. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +73 -104
  113. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +102 -185
  114. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +4 -5
  115. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +21 -57
  116. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +1 -2
  117. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -4
  118. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +73 -41
  119. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +4 -5
  120. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +20 -52
  121. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +1 -2
  122. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -4
  123. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +36 -59
  124. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +4 -5
  125. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +17 -45
  126. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +1 -2
  127. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -4
  128. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +32 -32
  129. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +4 -5
  130. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +17 -45
  131. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +1 -2
  132. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -4
  133. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +50 -50
  134. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +4 -5
  135. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
  136. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +34 -96
  137. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +1 -2
  138. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +3 -6
  139. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +63 -80
  140. package/node_modules/@aws-sdk/nested-clients/package.json +11 -11
  141. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +10 -9
  142. package/node_modules/@aws-sdk/token-providers/package.json +8 -8
  143. package/node_modules/@aws-sdk/types/package.json +4 -4
  144. package/node_modules/@aws-sdk/util-locate-window/package.json +3 -3
  145. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/CHANGELOG.md +8 -0
  146. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/README.md +9 -0
  147. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/package.json +4 -1
  148. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/strnum.js +9 -1
  149. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  150. package/node_modules/@nodable/entities/package.json +4 -1
  151. package/node_modules/@nodable/entities/src/EntityDecoder.js +104 -3
  152. package/node_modules/@nodable/entities/src/index.d.ts +77 -0
  153. package/node_modules/@nodable/entities/src/index.js +1 -1
  154. package/node_modules/@smithy/core/dist-cjs/index.js +13 -15
  155. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +29 -31
  156. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +2 -4
  157. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +7 -9
  158. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +3 -5
  159. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +22 -23
  160. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +10 -11
  161. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +38 -39
  162. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +10 -11
  163. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +14 -17
  164. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +20 -23
  165. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +9 -11
  166. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -13
  167. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +59 -60
  168. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +26 -27
  169. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +28 -29
  170. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -7
  171. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -6
  172. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +23 -25
  173. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -6
  174. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +2 -4
  175. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
  176. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js +1 -1
  177. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
  178. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +1 -1
  179. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +2 -2
  180. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js +1 -1
  181. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  182. package/node_modules/@smithy/core/package.json +18 -17
  183. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
  184. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +2 -2
  185. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js +2 -0
  186. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
  187. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/node-http.d.ts +2 -0
  188. package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
  189. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
  190. package/node_modules/@smithy/fetch-http-handler/package.json +10 -10
  191. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +15 -15
  192. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -6
  193. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +2 -1
  194. package/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
  195. package/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
  196. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
  197. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  198. package/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
  199. package/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
  200. package/node_modules/@smithy/node-http-handler/package.json +8 -8
  201. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
  202. package/node_modules/@smithy/signature-v4/package.json +7 -7
  203. package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
  204. package/node_modules/@smithy/types/package.json +10 -10
  205. package/node_modules/@types/aws-lambda/README.md +1 -1
  206. package/node_modules/@types/aws-lambda/package.json +3 -3
  207. package/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +2 -0
  208. package/node_modules/anynum/LICENSE +21 -0
  209. package/node_modules/anynum/README.md +142 -0
  210. package/node_modules/anynum/anynum.js +135 -0
  211. package/node_modules/anynum/digitTable.js +116 -0
  212. package/node_modules/anynum/package.json +42 -0
  213. package/node_modules/watchpack/README.md +9 -0
  214. package/node_modules/watchpack/lib/DirectoryWatcher.js +182 -25
  215. package/node_modules/watchpack/lib/index.js +55 -15
  216. package/node_modules/watchpack/lib/reducePlan.js +56 -35
  217. package/node_modules/watchpack/lib/util/globToRegExp.js +142 -0
  218. package/node_modules/watchpack/lib/watchEventSource.js +18 -10
  219. package/node_modules/watchpack/package.json +17 -23
  220. package/node_modules/watchpack/types/DirectoryWatcher.d.ts +2 -0
  221. package/node_modules/watchpack/types/index.d.ts +121 -113
  222. package/node_modules/watchpack/types/util/globToRegExp.d.ts +2 -0
  223. package/node_modules/watchpack/types/watchpack.d.ts +1 -1
  224. package/node_modules/which-typed-array/CHANGELOG.md +7 -0
  225. package/node_modules/which-typed-array/eslint.config.mjs +1 -0
  226. package/node_modules/which-typed-array/index.d.ts +22 -31
  227. package/node_modules/which-typed-array/index.js +36 -23
  228. package/node_modules/which-typed-array/package.json +4 -7
  229. package/package.json +14 -14
  230. package/node_modules/glob-to-regexp/.travis.yml +0 -4
  231. package/node_modules/glob-to-regexp/README.md +0 -75
  232. package/node_modules/glob-to-regexp/index.js +0 -130
  233. package/node_modules/glob-to-regexp/package.json +0 -23
  234. package/node_modules/glob-to-regexp/test.js +0 -235
  235. /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/LICENSE +0 -0
@@ -5,9 +5,9 @@
5
5
  "use strict";
6
6
 
7
7
  const { EventEmitter } = require("events");
8
- const globToRegExp = require("glob-to-regexp");
9
8
  const LinkResolver = require("./LinkResolver");
10
9
  const getWatcherManager = require("./getWatcherManager");
10
+ const globToRegExp = require("./util/globToRegExp");
11
11
  const watchEventSource = require("./watchEventSource");
12
12
 
13
13
  /** @typedef {import("./getWatcherManager").WatcherManager} WatcherManager */
@@ -45,8 +45,9 @@ const watchEventSource = require("./watchEventSource");
45
45
  /** @typedef {`scan (${string})` | "change" | "rename" | `watch ${string}` | `directory-removed ${string}`} EventType */
46
46
  /** @typedef {{ safeTime: number, timestamp: number, accuracy: number }} Entry */
47
47
  /** @typedef {{ safeTime: number }} OnlySafeTimeEntry */
48
+
48
49
  // eslint-disable-next-line jsdoc/ts-no-empty-object-type
49
- /** @typedef {{}} ExistenceOnlyTimeEntry */
50
+ /** @typedef {{ }} ExistenceOnlyTimeEntry */
50
51
  /** @typedef {Map<string, Entry | OnlySafeTimeEntry | ExistenceOnlyTimeEntry | null>} TimeInfoEntries */
51
52
  /** @typedef {Set<string>} Changes */
52
53
  /** @typedef {Set<string>} Removals */
@@ -60,10 +61,8 @@ const watchEventSource = require("./watchEventSource");
60
61
  */
61
62
  function addWatchersToSet(watchers, set) {
62
63
  for (const ww of watchers) {
63
- const w = ww.watcher;
64
- if (!set.has(w.directoryWatcher)) {
65
- set.add(w.directoryWatcher);
66
- }
64
+ // Set.add is already idempotent, so skip the redundant has() probe.
65
+ set.add(ww.watcher.directoryWatcher);
67
66
  }
68
67
  }
69
68
 
@@ -75,31 +74,47 @@ const stringToRegexp = (ignored) => {
75
74
  if (ignored.length === 0) {
76
75
  return;
77
76
  }
78
- const { source } = globToRegExp(ignored, { globstar: true, extended: true });
79
- return `${source.slice(0, -1)}(?:$|\\/)`;
77
+ return `^${globToRegExp(ignored)}(?:$|\\/)`;
80
78
  };
81
79
 
80
+ /**
81
+ * Normalizes path separators for regex testing. `String.prototype.replace`
82
+ * always allocates a new string, even when the pattern finds nothing; for
83
+ * POSIX paths (the common case) that allocation is pure overhead. Check for
84
+ * a backslash with `indexOf` first so we skip the copy on paths that are
85
+ * already normalized.
86
+ * @param {string} item item
87
+ * @returns {string} item with backslashes normalized to forward slashes
88
+ */
89
+ const normalizeSeparators = (item) =>
90
+ item.includes("\\") ? item.replace(/\\/g, "/") : item;
91
+
82
92
  /**
83
93
  * @param {Ignored=} ignored ignored
84
94
  * @returns {(item: string) => boolean} ignored to function
85
95
  */
86
96
  const ignoredToFunction = (ignored) => {
87
97
  if (Array.isArray(ignored)) {
88
- const stringRegexps = ignored.map((i) => stringToRegexp(i)).filter(Boolean);
98
+ const stringRegexps =
99
+ /** @type {string[]} */
100
+ (ignored.map((i) => stringToRegexp(i)).filter(Boolean));
89
101
  if (stringRegexps.length === 0) {
90
102
  return () => false;
91
103
  }
92
- const regexp = new RegExp(stringRegexps.join("|"));
93
- return (item) => regexp.test(item.replace(/\\/g, "/"));
104
+ const regexp =
105
+ stringRegexps.length === 1
106
+ ? new RegExp(stringRegexps[0])
107
+ : new RegExp(stringRegexps.join("|"));
108
+ return (item) => regexp.test(normalizeSeparators(item));
94
109
  } else if (typeof ignored === "string") {
95
110
  const stringRegexp = stringToRegexp(ignored);
96
111
  if (!stringRegexp) {
97
112
  return () => false;
98
113
  }
99
114
  const regexp = new RegExp(stringRegexp);
100
- return (item) => regexp.test(item.replace(/\\/g, "/"));
115
+ return (item) => regexp.test(normalizeSeparators(item));
101
116
  } else if (ignored instanceof RegExp) {
102
- return (item) => ignored.test(item.replace(/\\/g, "/"));
117
+ return (item) => ignored.test(normalizeSeparators(item));
103
118
  } else if (typeof ignored === "function") {
104
119
  return ignored;
105
120
  } else if (ignored) {
@@ -463,8 +478,10 @@ class Watchpack extends EventEmitter {
463
478
  /** @type {Record<string, number>} */
464
479
  const obj = Object.create(null);
465
480
  for (const w of directoryWatchers) {
481
+ // getTimes() returns a prototype-less object, so for...in is safe
482
+ // and avoids the throwaway array that Object.keys would allocate.
466
483
  const times = w.getTimes();
467
- for (const file of Object.keys(times)) obj[file] = times[file];
484
+ for (const file in times) obj[file] = times[file];
468
485
  }
469
486
  return obj;
470
487
  }
@@ -551,4 +568,27 @@ class Watchpack extends EventEmitter {
551
568
  }
552
569
  }
553
570
 
554
- module.exports = Watchpack;
571
+ /**
572
+ * @template A
573
+ * @template B
574
+ * @param {A} obj input a
575
+ * @param {B} exports input b
576
+ * @returns {A & B} merged
577
+ */
578
+ const mergeExports = (obj, exports) => {
579
+ const descriptors = Object.getOwnPropertyDescriptors(exports);
580
+ Object.defineProperties(obj, descriptors);
581
+ return /** @type {A & B} */ (Object.freeze(obj));
582
+ };
583
+
584
+ /** @typedef {typeof Watchpack & { util: { readonly globToRegExp: typeof globToRegExp } }} WatchpackExports */
585
+
586
+ module.exports = /** @type {WatchpackExports} */ (
587
+ mergeExports(Watchpack, {
588
+ util: {
589
+ get globToRegExp() {
590
+ return globToRegExp;
591
+ },
592
+ },
593
+ })
594
+ );
@@ -67,45 +67,66 @@ module.exports = (plan, limit) => {
67
67
  }
68
68
  }
69
69
  }
70
- // Reduce until limit reached
71
- while (currentCount > limit) {
72
- // Select node that helps reaching the limit most effectively without overmerging
73
- const overLimit = currentCount - limit;
74
- let bestNode;
75
- let bestCost = Infinity;
70
+ // Reduce until limit reached. When no reduction is needed at all, skip
71
+ // building the candidate set entirely to avoid paying for the setup on the
72
+ // common fast path.
73
+ if (currentCount > limit) {
74
+ // Pre-filter candidate nodes so the inner selection loop skips structural
75
+ // non-candidates entirely. `children` length and parent presence are
76
+ // fixed after tree construction; only `entries` can change (it can only
77
+ // decrease), so a node that fails the `entries` check in a later round
78
+ // is simply skipped via `continue`. When we merge a subtree we drop the
79
+ // descendants from the candidate set to keep it shrinking over
80
+ // iterations.
81
+ /** @type {Set<TreeNode<T>>} */
82
+ const candidates = new Set();
76
83
  for (const node of treeMap.values()) {
77
- if (node.entries <= 1 || !node.children || !node.parent) continue;
84
+ if (!node.parent || !node.children) continue;
78
85
  if (node.children.length === 0) continue;
79
86
  if (node.children.length === 1 && !node.value) continue;
80
- // Try to select the node with has just a bit more entries than we need to reduce
81
- // When just a bit more is over 30% over the limit,
82
- // also consider just a bit less entries then we need to reduce
83
- const cost =
84
- node.entries - 1 >= overLimit
85
- ? node.entries - 1 - overLimit
86
- : overLimit - node.entries + 1 + limit * 0.3;
87
- if (cost < bestCost) {
88
- bestNode = node;
89
- bestCost = cost;
90
- }
91
- }
92
- if (!bestNode) break;
93
- // Merge all children
94
- const reduction = bestNode.entries - 1;
95
- bestNode.active = true;
96
- bestNode.entries = 1;
97
- currentCount -= reduction;
98
- let { parent } = bestNode;
99
- while (parent) {
100
- parent.entries -= reduction;
101
- parent = parent.parent;
87
+ candidates.add(node);
102
88
  }
103
- const queue = new Set(bestNode.children);
104
- for (const node of queue) {
105
- node.active = false;
106
- node.entries = 0;
107
- if (node.children) {
108
- for (const child of node.children) queue.add(child);
89
+ const costBias = limit * 0.3;
90
+ while (currentCount > limit) {
91
+ // Select node that helps reaching the limit most effectively without overmerging
92
+ const overLimit = currentCount - limit;
93
+ let bestNode;
94
+ let bestCost = Infinity;
95
+ for (const node of candidates) {
96
+ if (node.entries <= 1) continue;
97
+ // Try to select the node with has just a bit more entries than we need to reduce
98
+ // When just a bit more is over 30% over the limit,
99
+ // also consider just a bit less entries then we need to reduce
100
+ const diff = node.entries - 1 - overLimit;
101
+ const cost = diff >= 0 ? diff : -diff + costBias;
102
+ if (cost < bestCost) {
103
+ bestNode = node;
104
+ bestCost = cost;
105
+ // A cost of 0 means the merge reduces exactly to the limit;
106
+ // no further candidate can improve on that, so stop scanning.
107
+ if (cost === 0) break;
108
+ }
109
+ }
110
+ if (!bestNode) break;
111
+ // Merge all children
112
+ const reduction = bestNode.entries - 1;
113
+ bestNode.active = true;
114
+ bestNode.entries = 1;
115
+ candidates.delete(bestNode);
116
+ currentCount -= reduction;
117
+ let { parent } = bestNode;
118
+ while (parent) {
119
+ parent.entries -= reduction;
120
+ parent = parent.parent;
121
+ }
122
+ const queue = new Set(bestNode.children);
123
+ for (const node of queue) {
124
+ node.active = false;
125
+ node.entries = 0;
126
+ candidates.delete(node);
127
+ if (node.children) {
128
+ for (const child of node.children) queue.add(child);
129
+ }
109
130
  }
110
131
  }
111
132
  }
@@ -0,0 +1,142 @@
1
+ /*
2
+ MIT License http://www.opensource.org/licenses/mit-license.php
3
+ Author Haijie Xie @hai-x
4
+ */
5
+
6
+ "use strict";
7
+
8
+ // Based on https://github.com/fitzgen/glob-to-regexp (MIT)
9
+ // Specialized for watchpack: `extended` and `globstar` always enabled.
10
+ // Returns the regexp source without `^`/`$` anchors.
11
+
12
+ const CC_EXCLAMATION = 33; // "!"
13
+ const CC_DOLLAR = 36; // "$"
14
+ const CC_LEFT_PARENTHESIS = 40; // "("
15
+ const CC_RIGHT_PARENTHESIS = 41; // ")"
16
+ const CC_ASTERISK = 42; // "*"
17
+ const CC_PLUS = 43; // "+"
18
+ const CC_COMMA = 44; // ","
19
+ const CC_DOT = 46; // "."
20
+ const CC_SLASH = 47; // "/"
21
+ const CC_EQUAL = 61; // "="
22
+ const CC_QUESTION_MARK = 63; // "?"
23
+ const CC_LEFT_BRACKET = 91; // "["
24
+ const CC_RIGHT_BRACKET = 93; // "]"
25
+ const CC_CARET = 94; // "^"
26
+ const CC_LEFT_BRACE = 123; // "{"
27
+ const CC_PIPE = 124; // "|"
28
+ const CC_RIGHT_BRACE = 125; // "}"
29
+
30
+ /**
31
+ * @param {string} glob glob pattern
32
+ * @returns {string} regexp source without anchors
33
+ */
34
+ module.exports = (glob) => {
35
+ if (typeof glob !== "string") {
36
+ throw new TypeError("Expected a string");
37
+ }
38
+
39
+ const len = glob.length;
40
+ let reStr = "";
41
+ let inGroup = false;
42
+ // Start of the current run of literal characters, copied with one slice
43
+ let literalStart = 0;
44
+
45
+ for (let i = 0; i < len; i++) {
46
+ const cc = glob.charCodeAt(i);
47
+ const tokenStart = i;
48
+ let mapped;
49
+
50
+ switch (cc) {
51
+ case CC_SLASH:
52
+ mapped = "\\/";
53
+ break;
54
+ case CC_DOLLAR:
55
+ mapped = "\\$";
56
+ break;
57
+ case CC_CARET:
58
+ mapped = "\\^";
59
+ break;
60
+ case CC_PLUS:
61
+ mapped = "\\+";
62
+ break;
63
+ case CC_DOT:
64
+ mapped = "\\.";
65
+ break;
66
+ case CC_LEFT_PARENTHESIS:
67
+ mapped = "\\(";
68
+ break;
69
+ case CC_RIGHT_PARENTHESIS:
70
+ mapped = "\\)";
71
+ break;
72
+ case CC_EQUAL:
73
+ mapped = "\\=";
74
+ break;
75
+ case CC_EXCLAMATION:
76
+ mapped = "\\!";
77
+ break;
78
+ case CC_PIPE:
79
+ mapped = "\\|";
80
+ break;
81
+ case CC_QUESTION_MARK:
82
+ mapped = ".";
83
+ break;
84
+ case CC_LEFT_BRACKET:
85
+ mapped = "[";
86
+ break;
87
+ case CC_RIGHT_BRACKET:
88
+ mapped = "]";
89
+ break;
90
+ case CC_LEFT_BRACE:
91
+ inGroup = true;
92
+ mapped = "(";
93
+ break;
94
+ case CC_RIGHT_BRACE:
95
+ inGroup = false;
96
+ mapped = ")";
97
+ break;
98
+ case CC_COMMA:
99
+ mapped = inGroup ? "|" : "\\,";
100
+ break;
101
+ case CC_ASTERISK: {
102
+ const atStart = i === 0;
103
+ const afterSlash = !atStart && glob.charCodeAt(i - 1) === CC_SLASH;
104
+ let starCount = 1;
105
+ while (i + 1 < len && glob.charCodeAt(i + 1) === CC_ASTERISK) {
106
+ starCount++;
107
+ i++;
108
+ }
109
+ const atEnd = i + 1 === len;
110
+ const beforeSlash = !atEnd && glob.charCodeAt(i + 1) === CC_SLASH;
111
+ if (
112
+ starCount > 1 &&
113
+ (atStart || afterSlash) &&
114
+ (atEnd || beforeSlash)
115
+ ) {
116
+ // Globstar segment, matches zero or more path segments
117
+ mapped = "((?:[^/]*(?:\\/|$))*)";
118
+ i++; // Move over the "/"
119
+ } else {
120
+ // Not a globstar, matches one path segment
121
+ mapped = "([^/]*)";
122
+ }
123
+ break;
124
+ }
125
+ default:
126
+ // Literal character, extend the current run
127
+ continue;
128
+ }
129
+
130
+ if (literalStart < tokenStart) {
131
+ reStr += glob.slice(literalStart, tokenStart);
132
+ }
133
+ reStr += mapped;
134
+ literalStart = i + 1;
135
+ }
136
+
137
+ if (literalStart < len) {
138
+ reStr += literalStart === 0 ? glob : glob.slice(literalStart);
139
+ }
140
+
141
+ return reStr;
142
+ };
@@ -61,6 +61,9 @@ function createEPERMError(filePath) {
61
61
  * @returns {(type: "rename" | "change", filename: string) => void} handler of change event
62
62
  */
63
63
  function createHandleChangeEvent(watcher, filePath, handleChangeEvent) {
64
+ // path.basename(filePath) is invariant for the lifetime of the watcher,
65
+ // so compute it once rather than on every dispatched event.
66
+ const ownBasename = path.basename(filePath);
64
67
  return (type, filename) => {
65
68
  // TODO: After Node.js v22, fs.watch(dir) and deleting a dir will trigger the rename change event.
66
69
  // Here we just ignore it and keep the same behavior as before v22
@@ -68,7 +71,7 @@ function createHandleChangeEvent(watcher, filePath, handleChangeEvent) {
68
71
  if (
69
72
  type === "rename" &&
70
73
  path.isAbsolute(filename) &&
71
- path.basename(filename) === path.basename(filePath)
74
+ path.basename(filename) === ownBasename
72
75
  ) {
73
76
  if (!IS_OSX) {
74
77
  // Before v22, windows will throw EPERM error
@@ -429,16 +432,21 @@ module.exports.watch = (filePath) => {
429
432
  directWatcher.add(watcher);
430
433
  return watcher;
431
434
  }
432
- let current = filePath;
433
- for (;;) {
434
- const recursiveWatcher = recursiveWatchers.get(current);
435
- if (recursiveWatcher !== undefined) {
436
- recursiveWatcher.add(filePath, watcher);
437
- return watcher;
435
+ // Only platforms with recursive fs.watch ever populate recursiveWatchers,
436
+ // so skip the entire parent walk when the map is empty (always the case
437
+ // on Linux and the common case before the watcher limit is reached).
438
+ if (recursiveWatchers.size !== 0) {
439
+ let current = filePath;
440
+ for (;;) {
441
+ const recursiveWatcher = recursiveWatchers.get(current);
442
+ if (recursiveWatcher !== undefined) {
443
+ recursiveWatcher.add(filePath, watcher);
444
+ return watcher;
445
+ }
446
+ const parent = path.dirname(current);
447
+ if (parent === current) break;
448
+ current = parent;
438
449
  }
439
- const parent = path.dirname(current);
440
- if (parent === current) break;
441
- current = parent;
442
450
  }
443
451
  // Queue up watcher for creation
444
452
  pendingWatchers.set(watcher, filePath);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "watchpack",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/webpack/watchpack",
6
6
  "bugs": {
@@ -24,12 +24,12 @@
24
24
  "scripts": {
25
25
  "lint": "npm run lint:code && npm run lint:types && npm run lint:types-test && npm run lint:declarations && npm run fmt:check",
26
26
  "lint:code": "eslint --cache .",
27
- "lint:types": "tsc",
28
- "lint:types-test": "tsc -p tsconfig.types.test.json",
27
+ "lint:types": "tsc --noEmit",
28
+ "lint:types-test": "tsc -p tsconfig.types.test.json --noEmit",
29
29
  "lint:declarations": "npm run fix:declarations && git diff --exit-code ./types",
30
30
  "fix": "npm run fix:code && npm run fix:declarations",
31
31
  "fix:code": "npm run lint:code -- --fix",
32
- "fix:declarations": "tsc --noEmit false --declaration --emitDeclarationOnly --outDir types && npm run fmt -- ./types",
32
+ "fix:declarations": "tsc && npm run fmt -- ./types",
33
33
  "fmt": "npm run fmt:base -- --log-level warn --write",
34
34
  "fmt:check": "npm run fmt:base -- --check",
35
35
  "fmt:base": "prettier --cache --ignore-unknown .",
@@ -38,35 +38,29 @@
38
38
  "test:base": "jest --runInBand",
39
39
  "test:only": "npm run test:base",
40
40
  "test:watch": "npm run test:base -- --watch",
41
- "test:coverage": "npm run test:base -- --collectCoverageFrom=\"lib/**/*.js\" --coverage"
41
+ "test:coverage": "npm run test:base -- --collectCoverageFrom=\"lib/**/*.js\" --coverage",
42
+ "benchmark": "node --max-old-space-size=4096 --hash-seed=1 --random-seed=1 --no-opt --predictable --predictable-gc-schedule --interpreted-frames-native-stack --allow-natives-syntax --expose-gc --no-concurrent-sweeping ./benchmark/run.mjs",
43
+ "version": "changeset version",
44
+ "release": "changeset publish"
42
45
  },
43
46
  "dependencies": {
44
- "glob-to-regexp": "^0.4.1",
45
47
  "graceful-fs": "^4.1.2"
46
48
  },
47
49
  "devDependencies": {
48
- "@eslint/js": "^9.28.0",
49
- "@eslint/markdown": "^7.5.1",
50
- "@stylistic/eslint-plugin": "^5.6.1",
50
+ "@changesets/cli": "^2.30.0",
51
+ "@changesets/get-github-info": "^0.8.0",
52
+ "@codspeed/core": "^5.2.0",
51
53
  "@types/glob-to-regexp": "^0.4.4",
52
54
  "@types/graceful-fs": "^4.1.9",
53
- "@types/jest": "^27.5.1",
55
+ "@types/jest": "^30.0.0",
54
56
  "@types/node": "^24.10.4",
55
57
  "eslint": "^9.39.2",
56
- "eslint-config-prettier": "^10.1.8",
57
- "eslint-config-webpack": "^4.7.3",
58
- "eslint-plugin-import": "^2.32.0",
59
- "eslint-plugin-jest": "^29.5.0",
60
- "eslint-plugin-jsdoc": "^61.5.0",
61
- "eslint-plugin-n": "^17.23.1",
62
- "eslint-plugin-prettier": "^5.5.4",
63
- "eslint-plugin-unicorn": "^62.0.0",
64
- "globals": "^16.5.0",
65
- "jest": "^27.5.1",
58
+ "eslint-config-webpack": "^4.9.3",
59
+ "jest": "^30.3.0",
66
60
  "prettier": "^3.7.4",
67
- "rimraf": "^2.6.2",
68
- "typescript": "^5.9.3",
69
- "write-file-atomic": "^3.0.1"
61
+ "tinybench": "^6.0.0",
62
+ "typescript": "^6.0.2",
63
+ "write-file-atomic": "^8.0.0"
70
64
  },
71
65
  "engines": {
72
66
  "node": ">=10.13.0"
@@ -48,6 +48,8 @@ declare class DirectoryWatcher extends EventEmitter<{
48
48
  filesWithoutCase: Map<string, number>;
49
49
  /** @type {Map<string, Watcher<DirectoryWatcherEvents> | boolean>} */
50
50
  directories: Map<string, Watcher<DirectoryWatcherEvents> | boolean>;
51
+ /** @type {Map<string, Watcher<FileWatcherEvents>>} */
52
+ _symlinkTargetWatchers: Map<string, Watcher<FileWatcherEvents>>;
51
53
  lastWatchEvent: number;
52
54
  initialScan: boolean;
53
55
  ignored: import("./index").IgnoredFunction;