@stencil/core 4.38.3-dev.1762795767.192e568 → 4.38.3-dev.1762923738.d86b77c

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 (83) hide show
  1. package/cli/index.cjs +1 -1
  2. package/cli/index.js +1 -1
  3. package/cli/package.json +1 -1
  4. package/compiler/lib.decorators.d.ts +13 -15
  5. package/compiler/lib.dom.asynciterable.d.ts +14 -6
  6. package/compiler/lib.dom.d.ts +1647 -633
  7. package/compiler/lib.dom.iterable.d.ts +104 -86
  8. package/compiler/lib.es2015.core.d.ts +9 -9
  9. package/compiler/lib.es2015.generator.d.ts +2 -2
  10. package/compiler/lib.es2015.iterable.d.ts +214 -104
  11. package/compiler/lib.es2015.symbol.wellknown.d.ts +10 -10
  12. package/compiler/lib.es2016.array.include.d.ts +9 -9
  13. package/compiler/lib.es2016.intl.d.ts +1 -1
  14. package/compiler/lib.es2017.arraybuffer.d.ts +21 -0
  15. package/compiler/lib.es2017.d.ts +3 -2
  16. package/compiler/lib.es2017.object.d.ts +4 -4
  17. package/compiler/lib.es2017.sharedmemory.d.ts +14 -14
  18. package/compiler/lib.es2017.typedarrays.d.ts +9 -9
  19. package/compiler/lib.es2018.asyncgenerator.d.ts +2 -2
  20. package/compiler/lib.es2018.asynciterable.d.ts +16 -6
  21. package/compiler/lib.es2020.bigint.d.ts +100 -62
  22. package/compiler/lib.es2020.intl.d.ts +36 -36
  23. package/compiler/lib.es2020.sharedmemory.d.ts +13 -11
  24. package/compiler/lib.es2020.string.d.ts +3 -1
  25. package/compiler/lib.es2020.symbol.wellknown.d.ts +5 -1
  26. package/compiler/lib.es2021.intl.d.ts +17 -17
  27. package/compiler/lib.es2021.weakref.d.ts +2 -0
  28. package/compiler/lib.es2022.array.d.ts +11 -11
  29. package/compiler/lib.es2022.d.ts +1 -2
  30. package/compiler/lib.es2022.error.d.ts +2 -0
  31. package/compiler/lib.es2022.intl.d.ts +14 -10
  32. package/compiler/lib.es2023.array.d.ts +79 -79
  33. package/compiler/lib.es2024.arraybuffer.d.ts +65 -0
  34. package/compiler/lib.es2024.collection.d.ts +29 -0
  35. package/compiler/lib.es2024.d.ts +26 -0
  36. package/compiler/lib.es2024.full.d.ts +24 -0
  37. package/compiler/lib.es2024.promise.d.ts +35 -0
  38. package/compiler/{lib.es2022.sharedmemory.d.ts → lib.es2024.sharedmemory.d.ts} +29 -0
  39. package/compiler/lib.es5.d.ts +312 -303
  40. package/compiler/lib.esnext.array.d.ts +1 -1
  41. package/compiler/lib.esnext.collection.d.ts +1 -11
  42. package/compiler/lib.esnext.d.ts +4 -5
  43. package/compiler/lib.esnext.disposable.d.ts +8 -0
  44. package/compiler/lib.esnext.float16.d.ts +443 -0
  45. package/compiler/lib.esnext.iterator.d.ts +148 -0
  46. package/compiler/lib.esnext.promise.d.ts +11 -12
  47. package/compiler/lib.webworker.asynciterable.d.ts +14 -6
  48. package/compiler/lib.webworker.d.ts +609 -146
  49. package/compiler/lib.webworker.iterable.d.ts +53 -42
  50. package/compiler/package.json +1 -1
  51. package/compiler/stencil.js +12519 -8269
  52. package/dev-server/client/index.js +1 -1
  53. package/dev-server/client/package.json +1 -1
  54. package/dev-server/connector.html +2 -2
  55. package/dev-server/index.js +1 -1
  56. package/dev-server/package.json +1 -1
  57. package/dev-server/server-process.js +2 -2
  58. package/internal/app-data/package.json +1 -1
  59. package/internal/app-globals/package.json +1 -1
  60. package/internal/client/index.js +1 -1
  61. package/internal/client/package.json +1 -1
  62. package/internal/client/patch-browser.js +1 -1
  63. package/internal/hydrate/index.js +1 -1
  64. package/internal/hydrate/package.json +1 -1
  65. package/internal/hydrate/runner.js +1 -1
  66. package/internal/package.json +1 -1
  67. package/internal/testing/package.json +1 -1
  68. package/mock-doc/index.cjs +1 -1
  69. package/mock-doc/index.js +1 -1
  70. package/mock-doc/package.json +1 -1
  71. package/package.json +2 -2
  72. package/screenshot/index.js +1 -1
  73. package/screenshot/package.json +1 -1
  74. package/screenshot/pixel-match.js +1 -1
  75. package/screenshot/screenshot-fs.d.ts +1 -1
  76. package/sys/node/index.js +1 -1
  77. package/sys/node/package.json +1 -1
  78. package/sys/node/worker.js +1 -1
  79. package/testing/index.js +1 -1
  80. package/testing/package.json +1 -1
  81. /package/compiler/{lib.esnext.object.d.ts → lib.es2024.object.d.ts} +0 -0
  82. /package/compiler/{lib.esnext.regexp.d.ts → lib.es2024.regexp.d.ts} +0 -0
  83. /package/compiler/{lib.esnext.string.d.ts → lib.es2024.string.d.ts} +0 -0
@@ -16,20 +16,19 @@ and limitations under the License.
16
16
 
17
17
  /// <reference no-default-lib="true"/>
18
18
 
19
- interface PromiseWithResolvers<T> {
20
- promise: Promise<T>;
21
- resolve: (value: T | PromiseLike<T>) => void;
22
- reject: (reason?: any) => void;
23
- }
24
-
25
19
  interface PromiseConstructor {
26
20
  /**
27
- * Creates a new Promise and returns it in an object, along with its resolve and reject functions.
28
- * @returns An object with the properties `promise`, `resolve`, and `reject`.
21
+ * Takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result
22
+ * in a Promise.
23
+ *
24
+ * @param callbackFn A function that is called synchronously. It can do anything: either return
25
+ * a value, throw an error, or return a promise.
26
+ * @param args Additional arguments, that will be passed to the callback.
29
27
  *
30
- * ```ts
31
- * const { promise, resolve, reject } = Promise.withResolvers<T>();
32
- * ```
28
+ * @returns A Promise that is:
29
+ * - Already fulfilled, if the callback synchronously returns a value.
30
+ * - Already rejected, if the callback synchronously throws an error.
31
+ * - Asynchronously fulfilled or rejected, if the callback returns a promise.
33
32
  */
34
- withResolvers<T>(): PromiseWithResolvers<T>;
33
+ try<T, U extends unknown[]>(callbackFn: (...args: U) => T | PromiseLike<T>, ...args: U): Promise<Awaited<T>>;
35
34
  }
@@ -20,14 +20,22 @@ and limitations under the License.
20
20
  /// Worker Async Iterable APIs
21
21
  /////////////////////////////
22
22
 
23
+ interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
24
+ [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
25
+ }
26
+
23
27
  interface FileSystemDirectoryHandle {
24
- [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;
25
- entries(): AsyncIterableIterator<[string, FileSystemHandle]>;
26
- keys(): AsyncIterableIterator<string>;
27
- values(): AsyncIterableIterator<FileSystemHandle>;
28
+ [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
29
+ entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
30
+ keys(): FileSystemDirectoryHandleAsyncIterator<string>;
31
+ values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
32
+ }
33
+
34
+ interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
35
+ [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
28
36
  }
29
37
 
30
38
  interface ReadableStream<R = any> {
31
- [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
32
- values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
39
+ [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
40
+ values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
33
41
  }