sveld 0.35.1 → 0.35.2

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 (51) hide show
  1. package/README.md +0 -4
  2. package/cli.js +1 -1
  3. package/lib/ComponentParser.d.ts +139 -401
  4. package/lib/ast-guards.d.ts +0 -2
  5. package/lib/browser.js +203 -225
  6. package/lib/bundle.d.ts +1 -3
  7. package/lib/chunk-1p4ka68s.js +2 -0
  8. package/lib/chunk-72hx9e9w.js +20 -0
  9. package/lib/chunk-7qz0hzgw.js +217 -0
  10. package/lib/chunk-8xw75w8t.js +10 -0
  11. package/lib/chunk-cxrw7gzr.js +2 -0
  12. package/lib/chunk-jdnsv86e.js +1 -0
  13. package/lib/chunk-pmj8c3yv.js +6 -0
  14. package/lib/chunk-s9mzxa4y.js +1 -0
  15. package/lib/chunk-v4q9vw0y.js +62 -0
  16. package/lib/chunk-xkrgedm4.js +4 -0
  17. package/lib/chunk-zva3xjwa.js +13 -0
  18. package/lib/cli-entry.d.ts +12 -0
  19. package/lib/cli-entry.js +1 -0
  20. package/lib/get-svelte-entry.d.ts +0 -1
  21. package/lib/index.js +1 -343
  22. package/lib/parse-cache.d.ts +1 -1
  23. package/lib/parse-entry-exports.d.ts +2 -2
  24. package/lib/parsed-component-metadata.d.ts +13 -0
  25. package/lib/parser/bindings.d.ts +0 -2
  26. package/lib/parser/context.d.ts +7 -49
  27. package/lib/parser/events.d.ts +0 -2
  28. package/lib/parser/jsdoc.d.ts +0 -4
  29. package/lib/parser/prop-shared.d.ts +84 -0
  30. package/lib/parser/props.d.ts +0 -2
  31. package/lib/parser/rest-props.d.ts +0 -2
  32. package/lib/parser/runes-detection.d.ts +1 -4
  33. package/lib/parser/scopes.d.ts +0 -2
  34. package/lib/parser/slots.d.ts +0 -5
  35. package/lib/parser/source-position.d.ts +0 -4
  36. package/lib/parser/type-resolution.d.ts +0 -15
  37. package/lib/parser/typescript-casts.d.ts +0 -1
  38. package/lib/parser/utils.d.ts +1 -0
  39. package/lib/parser/variable-jsdoc.d.ts +12 -0
  40. package/lib/parser-stack.d.ts +20 -0
  41. package/lib/path.d.ts +0 -1
  42. package/lib/svelte-parse.d.ts +4 -0
  43. package/lib/svelte-version.d.ts +1 -0
  44. package/lib/writer/Writer.d.ts +7 -29
  45. package/lib/writer/WriterMarkdown.d.ts +0 -2
  46. package/lib/writer/markdown-format-utils.d.ts +0 -84
  47. package/lib/writer/writer-json.d.ts +2 -12
  48. package/lib/writer/writer-markdown.d.ts +0 -2
  49. package/lib/writer/writer-ts-definitions-core.d.ts +1 -9
  50. package/lib/writer/writer-ts-definitions.d.ts +1 -28
  51. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Dedicated build entrypoint for `cli.js`, kept separate from `./index`.
3
+ *
4
+ * `./index` is the public "sveld" package API and eagerly re-exports the
5
+ * `ComponentParser` class (a real value export, not just a type), which
6
+ * pulls in the whole parser stack. Bundling the CLI against `./index`
7
+ * would force that eager import into the same chunk as `cli()`, defeating
8
+ * the parser stack's lazy loading (see `./parser-stack`) for every CLI
9
+ * invocation. This entrypoint only reaches `cli()`, so a fully cached run
10
+ * never statically needs the parser.
11
+ */
12
+ export { cli } from "./cli";
@@ -0,0 +1 @@
1
+ import{r as e}from"./chunk-7qz0hzgw.js";import"./chunk-xkrgedm4.js";import"./chunk-8xw75w8t.js";import"./chunk-cxrw7gzr.js";import"./chunk-1p4ka68s.js";export{e as cli};
@@ -1,4 +1,3 @@
1
1
  import { type SvelteEntryPoint } from "./brands";
2
2
  export type { SvelteEntryPoint };
3
- /** Resolve the Svelte entry from `entryPoint` or `package.json#svelte`. */
4
3
  export declare function getSvelteEntry(entryPoint?: string): SvelteEntryPoint | null;