@pyreon/compiler 0.18.0 → 0.20.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 (41) hide show
  1. package/lib/analysis/index.js.html +1 -1
  2. package/lib/index.js +2081 -1262
  3. package/lib/types/index.d.ts +310 -125
  4. package/package.json +14 -12
  5. package/src/defer-inline.ts +397 -157
  6. package/src/index.ts +14 -2
  7. package/src/jsx.ts +784 -19
  8. package/src/load-native.ts +1 -0
  9. package/src/manifest.ts +280 -0
  10. package/src/pyreon-intercept.ts +164 -0
  11. package/src/react-intercept.ts +59 -0
  12. package/src/reactivity-lens.ts +190 -0
  13. package/src/tests/backend-parity-r7-r9.test.ts +91 -0
  14. package/src/tests/backend-prop-derived-callback-divergence.test.ts +74 -0
  15. package/src/tests/collapse-bail-census.test.ts +245 -0
  16. package/src/tests/collapse-key-source-hygiene.test.ts +88 -0
  17. package/src/tests/defer-inline.test.ts +209 -21
  18. package/src/tests/detector-tag-consistency.test.ts +2 -0
  19. package/src/tests/element-valued-const-child.test.ts +61 -0
  20. package/src/tests/falsy-child-characterization.test.ts +48 -0
  21. package/src/tests/malformed-input-resilience.test.ts +50 -0
  22. package/src/tests/manifest-snapshot.test.ts +55 -0
  23. package/src/tests/native-equivalence.test.ts +104 -3
  24. package/src/tests/partial-collapse-detector.test.ts +121 -0
  25. package/src/tests/partial-collapse-emit.test.ts +104 -0
  26. package/src/tests/partial-collapse-robustness.test.ts +53 -0
  27. package/src/tests/prop-derived-shadow.test.ts +96 -0
  28. package/src/tests/pure-call-reactive-args.test.ts +50 -0
  29. package/src/tests/pyreon-intercept.test.ts +189 -0
  30. package/src/tests/r13-callback-stmt-equivalence.test.ts +58 -0
  31. package/src/tests/r14-ssr-mode-parity.test.ts +51 -0
  32. package/src/tests/r15-elemconst-propderived.test.ts +47 -0
  33. package/src/tests/r19-defer-inline-robust.test.ts +54 -0
  34. package/src/tests/r20-backend-equivalence-sweep.test.ts +50 -0
  35. package/src/tests/react-intercept.test.ts +50 -2
  36. package/src/tests/reactivity-lens.test.ts +170 -0
  37. package/src/tests/rocketstyle-collapse.test.ts +208 -0
  38. package/src/tests/signal-autocall-shadow.test.ts +86 -0
  39. package/src/tests/sourcemap-fidelity.test.ts +77 -0
  40. package/src/tests/static-text-baking.test.ts +64 -0
  41. package/src/tests/transform-state-isolation.test.ts +49 -0
@@ -5386,7 +5386,7 @@ var drawChart = (function (exports) {
5386
5386
  </script>
5387
5387
  <script>
5388
5388
  /*<!--*/
5389
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"2a48c34b-1","name":"defer-inline.ts"},{"uid":"2a48c34b-3","name":"event-names.ts"},{"uid":"2a48c34b-5","name":"load-native.ts"},{"uid":"2a48c34b-7","name":"jsx.ts"},{"uid":"2a48c34b-9","name":"project-scanner.ts"},{"uid":"2a48c34b-11","name":"react-intercept.ts"},{"uid":"2a48c34b-13","name":"pyreon-intercept.ts"},{"uid":"2a48c34b-15","name":"test-audit.ts"},{"uid":"2a48c34b-17","name":"island-audit.ts"},{"uid":"2a48c34b-19","name":"ssg-audit.ts"},{"uid":"2a48c34b-21","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"2a48c34b-1":{"renderedLength":10244,"gzipLength":3722,"brotliLength":0,"metaUid":"2a48c34b-0"},"2a48c34b-3":{"renderedLength":2941,"gzipLength":1335,"brotliLength":0,"metaUid":"2a48c34b-2"},"2a48c34b-5":{"renderedLength":3959,"gzipLength":1744,"brotliLength":0,"metaUid":"2a48c34b-4"},"2a48c34b-7":{"renderedLength":45561,"gzipLength":11025,"brotliLength":0,"metaUid":"2a48c34b-6"},"2a48c34b-9":{"renderedLength":4762,"gzipLength":1730,"brotliLength":0,"metaUid":"2a48c34b-8"},"2a48c34b-11":{"renderedLength":27698,"gzipLength":6923,"brotliLength":0,"metaUid":"2a48c34b-10"},"2a48c34b-13":{"renderedLength":24221,"gzipLength":7766,"brotliLength":0,"metaUid":"2a48c34b-12"},"2a48c34b-15":{"renderedLength":13167,"gzipLength":5060,"brotliLength":0,"metaUid":"2a48c34b-14"},"2a48c34b-17":{"renderedLength":18208,"gzipLength":6051,"brotliLength":0,"metaUid":"2a48c34b-16"},"2a48c34b-19":{"renderedLength":12753,"gzipLength":4173,"brotliLength":0,"metaUid":"2a48c34b-18"},"2a48c34b-21":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"2a48c34b-20"}},"nodeMetas":{"2a48c34b-0":{"id":"/src/defer-inline.ts","moduleParts":{"index.js":"2a48c34b-1"},"imported":[{"uid":"2a48c34b-22"}],"importedBy":[{"uid":"2a48c34b-20"}]},"2a48c34b-2":{"id":"/src/event-names.ts","moduleParts":{"index.js":"2a48c34b-3"},"imported":[],"importedBy":[{"uid":"2a48c34b-6"}]},"2a48c34b-4":{"id":"/src/load-native.ts","moduleParts":{"index.js":"2a48c34b-5"},"imported":[{"uid":"2a48c34b-26"},{"uid":"2a48c34b-27"},{"uid":"2a48c34b-24"}],"importedBy":[{"uid":"2a48c34b-6"}]},"2a48c34b-6":{"id":"/src/jsx.ts","moduleParts":{"index.js":"2a48c34b-7"},"imported":[{"uid":"2a48c34b-22"},{"uid":"2a48c34b-2"},{"uid":"2a48c34b-4"}],"importedBy":[{"uid":"2a48c34b-20"}]},"2a48c34b-8":{"id":"/src/project-scanner.ts","moduleParts":{"index.js":"2a48c34b-9"},"imported":[{"uid":"2a48c34b-23"},{"uid":"2a48c34b-24"}],"importedBy":[{"uid":"2a48c34b-20"}]},"2a48c34b-10":{"id":"/src/react-intercept.ts","moduleParts":{"index.js":"2a48c34b-11"},"imported":[{"uid":"2a48c34b-25"}],"importedBy":[{"uid":"2a48c34b-20"}]},"2a48c34b-12":{"id":"/src/pyreon-intercept.ts","moduleParts":{"index.js":"2a48c34b-13"},"imported":[{"uid":"2a48c34b-25"}],"importedBy":[{"uid":"2a48c34b-20"}]},"2a48c34b-14":{"id":"/src/test-audit.ts","moduleParts":{"index.js":"2a48c34b-15"},"imported":[{"uid":"2a48c34b-23"},{"uid":"2a48c34b-24"}],"importedBy":[{"uid":"2a48c34b-20"}]},"2a48c34b-16":{"id":"/src/island-audit.ts","moduleParts":{"index.js":"2a48c34b-17"},"imported":[{"uid":"2a48c34b-23"},{"uid":"2a48c34b-24"},{"uid":"2a48c34b-25"}],"importedBy":[{"uid":"2a48c34b-20"}]},"2a48c34b-18":{"id":"/src/ssg-audit.ts","moduleParts":{"index.js":"2a48c34b-19"},"imported":[{"uid":"2a48c34b-23"},{"uid":"2a48c34b-24"},{"uid":"2a48c34b-25"}],"importedBy":[{"uid":"2a48c34b-20"}]},"2a48c34b-20":{"id":"/src/index.ts","moduleParts":{"index.js":"2a48c34b-21"},"imported":[{"uid":"2a48c34b-0"},{"uid":"2a48c34b-6"},{"uid":"2a48c34b-8"},{"uid":"2a48c34b-10"},{"uid":"2a48c34b-12"},{"uid":"2a48c34b-14"},{"uid":"2a48c34b-16"},{"uid":"2a48c34b-18"}],"importedBy":[],"isEntry":true},"2a48c34b-22":{"id":"oxc-parser","moduleParts":{},"imported":[],"importedBy":[{"uid":"2a48c34b-0"},{"uid":"2a48c34b-6"}]},"2a48c34b-23":{"id":"node:fs","moduleParts":{},"imported":[],"importedBy":[{"uid":"2a48c34b-8"},{"uid":"2a48c34b-14"},{"uid":"2a48c34b-16"},{"uid":"2a48c34b-18"}]},"2a48c34b-24":{"id":"node:path","moduleParts":{},"imported":[],"importedBy":[{"uid":"2a48c34b-8"},{"uid":"2a48c34b-14"},{"uid":"2a48c34b-16"},{"uid":"2a48c34b-18"},{"uid":"2a48c34b-4"}]},"2a48c34b-25":{"id":"typescript","moduleParts":{},"imported":[],"importedBy":[{"uid":"2a48c34b-10"},{"uid":"2a48c34b-12"},{"uid":"2a48c34b-16"},{"uid":"2a48c34b-18"}]},"2a48c34b-26":{"id":"node:module","moduleParts":{},"imported":[],"importedBy":[{"uid":"2a48c34b-4"}]},"2a48c34b-27":{"id":"node:url","moduleParts":{},"imported":[],"importedBy":[{"uid":"2a48c34b-4"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
5389
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"5a08f146-1","name":"defer-inline.ts"},{"uid":"5a08f146-3","name":"event-names.ts"},{"uid":"5a08f146-5","name":"load-native.ts"},{"uid":"5a08f146-7","name":"jsx.ts"},{"uid":"5a08f146-9","name":"pyreon-intercept.ts"},{"uid":"5a08f146-11","name":"reactivity-lens.ts"},{"uid":"5a08f146-13","name":"project-scanner.ts"},{"uid":"5a08f146-15","name":"react-intercept.ts"},{"uid":"5a08f146-17","name":"test-audit.ts"},{"uid":"5a08f146-19","name":"island-audit.ts"},{"uid":"5a08f146-21","name":"ssg-audit.ts"},{"uid":"5a08f146-23","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"5a08f146-1":{"renderedLength":15789,"gzipLength":5000,"brotliLength":0,"metaUid":"5a08f146-0"},"5a08f146-3":{"renderedLength":2941,"gzipLength":1335,"brotliLength":0,"metaUid":"5a08f146-2"},"5a08f146-5":{"renderedLength":3959,"gzipLength":1744,"brotliLength":0,"metaUid":"5a08f146-4"},"5a08f146-7":{"renderedLength":63671,"gzipLength":15676,"brotliLength":0,"metaUid":"5a08f146-6"},"5a08f146-9":{"renderedLength":29316,"gzipLength":9273,"brotliLength":0,"metaUid":"5a08f146-8"},"5a08f146-11":{"renderedLength":4373,"gzipLength":2130,"brotliLength":0,"metaUid":"5a08f146-10"},"5a08f146-13":{"renderedLength":4762,"gzipLength":1730,"brotliLength":0,"metaUid":"5a08f146-12"},"5a08f146-15":{"renderedLength":28896,"gzipLength":7322,"brotliLength":0,"metaUid":"5a08f146-14"},"5a08f146-17":{"renderedLength":13167,"gzipLength":5060,"brotliLength":0,"metaUid":"5a08f146-16"},"5a08f146-19":{"renderedLength":18208,"gzipLength":6051,"brotliLength":0,"metaUid":"5a08f146-18"},"5a08f146-21":{"renderedLength":12753,"gzipLength":4173,"brotliLength":0,"metaUid":"5a08f146-20"},"5a08f146-23":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"5a08f146-22"}},"nodeMetas":{"5a08f146-0":{"id":"/src/defer-inline.ts","moduleParts":{"index.js":"5a08f146-1"},"imported":[{"uid":"5a08f146-24"}],"importedBy":[{"uid":"5a08f146-22"}]},"5a08f146-2":{"id":"/src/event-names.ts","moduleParts":{"index.js":"5a08f146-3"},"imported":[],"importedBy":[{"uid":"5a08f146-6"}]},"5a08f146-4":{"id":"/src/load-native.ts","moduleParts":{"index.js":"5a08f146-5"},"imported":[{"uid":"5a08f146-29"},{"uid":"5a08f146-30"},{"uid":"5a08f146-27"}],"importedBy":[{"uid":"5a08f146-6"}]},"5a08f146-6":{"id":"/src/jsx.ts","moduleParts":{"index.js":"5a08f146-7"},"imported":[{"uid":"5a08f146-25"},{"uid":"5a08f146-24"},{"uid":"5a08f146-2"},{"uid":"5a08f146-4"}],"importedBy":[{"uid":"5a08f146-22"},{"uid":"5a08f146-10"}]},"5a08f146-8":{"id":"/src/pyreon-intercept.ts","moduleParts":{"index.js":"5a08f146-9"},"imported":[{"uid":"5a08f146-28"}],"importedBy":[{"uid":"5a08f146-22"},{"uid":"5a08f146-10"}]},"5a08f146-10":{"id":"/src/reactivity-lens.ts","moduleParts":{"index.js":"5a08f146-11"},"imported":[{"uid":"5a08f146-6"},{"uid":"5a08f146-8"}],"importedBy":[{"uid":"5a08f146-22"}]},"5a08f146-12":{"id":"/src/project-scanner.ts","moduleParts":{"index.js":"5a08f146-13"},"imported":[{"uid":"5a08f146-26"},{"uid":"5a08f146-27"}],"importedBy":[{"uid":"5a08f146-22"}]},"5a08f146-14":{"id":"/src/react-intercept.ts","moduleParts":{"index.js":"5a08f146-15"},"imported":[{"uid":"5a08f146-28"}],"importedBy":[{"uid":"5a08f146-22"}]},"5a08f146-16":{"id":"/src/test-audit.ts","moduleParts":{"index.js":"5a08f146-17"},"imported":[{"uid":"5a08f146-26"},{"uid":"5a08f146-27"}],"importedBy":[{"uid":"5a08f146-22"}]},"5a08f146-18":{"id":"/src/island-audit.ts","moduleParts":{"index.js":"5a08f146-19"},"imported":[{"uid":"5a08f146-26"},{"uid":"5a08f146-27"},{"uid":"5a08f146-28"}],"importedBy":[{"uid":"5a08f146-22"}]},"5a08f146-20":{"id":"/src/ssg-audit.ts","moduleParts":{"index.js":"5a08f146-21"},"imported":[{"uid":"5a08f146-26"},{"uid":"5a08f146-27"},{"uid":"5a08f146-28"}],"importedBy":[{"uid":"5a08f146-22"}]},"5a08f146-22":{"id":"/src/index.ts","moduleParts":{"index.js":"5a08f146-23"},"imported":[{"uid":"5a08f146-0"},{"uid":"5a08f146-6"},{"uid":"5a08f146-10"},{"uid":"5a08f146-12"},{"uid":"5a08f146-14"},{"uid":"5a08f146-8"},{"uid":"5a08f146-16"},{"uid":"5a08f146-18"},{"uid":"5a08f146-20"}],"importedBy":[],"isEntry":true},"5a08f146-24":{"id":"oxc-parser","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a08f146-0"},{"uid":"5a08f146-6"}]},"5a08f146-25":{"id":"magic-string","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a08f146-6"}]},"5a08f146-26":{"id":"node:fs","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a08f146-12"},{"uid":"5a08f146-16"},{"uid":"5a08f146-18"},{"uid":"5a08f146-20"}]},"5a08f146-27":{"id":"node:path","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a08f146-12"},{"uid":"5a08f146-16"},{"uid":"5a08f146-18"},{"uid":"5a08f146-20"},{"uid":"5a08f146-4"}]},"5a08f146-28":{"id":"typescript","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a08f146-14"},{"uid":"5a08f146-8"},{"uid":"5a08f146-18"},{"uid":"5a08f146-20"}]},"5a08f146-29":{"id":"node:module","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a08f146-4"}]},"5a08f146-30":{"id":"node:url","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a08f146-4"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
5390
5390
 
5391
5391
  const run = () => {
5392
5392
  const width = window.innerWidth;