Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@rindo/core

rindojs536MIT4.22.3TypeScript support: included

A Compiler for Web Components and Progressive Web Apps

web components, components, rindo, familyjs, webapp, custom elements, pwa, progressive web app

readme

changelog

🌙 4.22.3 (2025-01-31)

Bug Fixes

  • mock-doc: return empty string if anchor has no href attribute (5f7cc15)
  • runtime: correctly call proxied formAssociated callbacks (a2bdc35)
  • runtime: ensure event listener are not registered twice (942586d)
  • runtime: scope id fix for component children for typescript issue (0e4e81c)

🐝 4.22.2 (2025-01-31)

Bug Fixes

  • docs: escape backticks in type or default value columns (a9e4460)
  • types: add controlslist to html declarations (84fb487)

Features

  • runtime: make shadow root adopt scoped component styles (e788d7c)

🎳 4.22.1 (2025-01-31)

Bug Fixes

  • mock-doc: add missing ShadowRoot window primitive (fe7f263)
  • mock-doc: get native primitive from globalThis (cab07aa)
  • runtime: create unique host ids (a6d40cf)
  • runtime: merge styles within ShadowRoot into a single node (f319c9b)

☀️ 4.22.0 (2025-01-30)

Bug Fixes

  • compiler: add reserved keyword (cd2db23)
  • compiler: handle file rename in watch mode (bcecaee)
  • compiler: no generate custom output (f2ad2da)
  • declarations: add missing event handler types (38f00ec)
  • hydrate: Add missing alias to hydrate build to fix app globals (7550957)
  • hydrate: support style modes in hydrate modules (9930603)
  • mock-doc: avoid double hydration of components (e9106f3)
  • mock-doc: provide mock for resize observer (6d827ae)
  • runtime: ensure referenceNode is child node of styleContainerNode (dbddccf)
  • runtime: scoped slot append/prepend correct order after interaction (f7a49d8)
  • scripts: fix Esbuild scripts to allow to run on Windows (12b399b)

Features

  • compiler: customize readme mermaid diagram colors (37a1114)
  • typescript: Update to 5.5.4 (fa06086)

⛵️ 4.21.0 (2025-01-28)

Bug Fixes

  • compiler: default asyncLoading build conditional to true (242a39d)
  • compiler: prefer localName over originalName by running an empty check on originalName (7bacaa8)
  • compiler: verify parent node when validating component members (7634560)
  • runtime: have fallback for style setting (2ed1704)
  • runtime: only use setter if existing (fd72882)
  • runtime: place scoped component styles after preconnect links but before custom styles (d435bd2)
  • runtime: provide second arg to insertBefore (71a3e59)
  • runtime: render component styles at the end of the head tag (bbf2c58)
  • runtime: update call to prepend to remove null node (000dd4c)
  • typescript: fix documentation on serializeShadowRoot flag (3dfa8cf)

Features

  • compiler: allow ignore pattern for copy task (2fa3a32)

🚢 4.20.0 (2025-01-26)

Bug Fixes

  • add @rindo/core/testing/jest-preset to export map (2918f2c)
  • ci: revert usage of pull_request_target trigger (c5c11c7)
  • compiler: don't allow shadowRoot getter to avoid hydration issues (396e80b)
  • compiler: no need for commenting selectors anymore (c906725)
  • compiler: respect project tsconfig watch options (8a76d30)
  • compiler: run copy task after other output targets (843f8db)
  • core: add missing screenshot export (bfd338b)
  • hydrate: ensure beforeHydrateFn and afterHydrateFn always return a function (afe0507)
  • hydrate: partially revert (a48d984)
  • hydrate: support server side rendering of components with listener (80e6897)
  • runtime: hydrate shadow dom first (70111dd)
  • runtime: make isSameVnode return false on initial render in a hydration case (a05673c)
  • testing: add testing sub module to export map (e2ddb42)
  • testing: update Jest types (4509626)
  • update TypeScript to v5.5 (420b2ce)

Note

As we’ve made further enhancements to support declarative Shadow DOM, the Rindo team has determined that it’s not feasible to allow users to render a shadow component as a scoped component after compilation, such as by calling renderToString with serializeShadowRoot: false. This is because Rindo compiles styles for either shadow or scoped mode during the compilation process, embedding these styles into the hydrate module. Once this compilation is complete, the styles cannot be transformed to support the other mode. Recognizing that this change would impact the current functionality, the Rindo team has decided to proceed with this update. Moving forward, we recommend serializing all components marked with shadow: true as declarative Shadow DOM.

🤓 4.19.2 (2025-01-24)

Bug Fixes

  • hydrate: partially revert (a48d984)
  • hydrate: support server side rendering of components with listener (80e6897)
  • testing: add testing sub module to export map (e2ddb42)

🔔 4.19.1 (2024-12-23)

Bug Fixes

  • compiler: account for package imports in aliasing (8ec2a30)
  • compiler: try to create web worker with the workerPath before falling back to blob (5d488e8)
  • hydrate: change type resolve order (96af66b)
  • internal: add cli sub package to export map (9052658)

🐧 4.19.0 (2024-12-19)

Bug Fixes

  • compiler: support rollup's external input option (b155c66)
  • declarations: fix weekly build (b04fc01)
  • emit: don't emit test files (1f5676b)
  • hydrate: support vdom annotation in nested dsd structures (aa99726)
  • label attribute not toggling input (1217ea5)
  • mock-doc: expose ShadowRoot and DocumentFragment globals (642de46)
  • runtime: allow watchers to fire w/ no Rindo members (9d3a9bb)
  • runtime: catch errors in async lifecycle methods (297a163)
  • runtime: don't register listener before connected to DOM (95866c3)
  • runtime: properly assign style declarations (cd3b874)
  • testing: allow to re-use pages across it blocks (ca7046f)
  • typescript: remove unsupported label property (b9d1cb1)

Features

  • cli: support generation of sass and less files (7e0b8a7)
  • compiler: generate export maps on build (626f291)
  • complier: support type import aliasing (964229b)
  • runtime: support declarative shadow DOM (bee6483)
  • testing: add toHaveLastReceivedEventDetail event spy matcher (00192ca)
  • testing: allow to disable network error logging via logFailingNetworkRequests option (7a1f83d)
  • testing: expose captureBeyondViewport in pageCompareScreenshot (ff832ca)

🚣 4.18.3 (2024-12-12)

Bug Fixes

  • esbuild: remove all node: imports from glob script to keep support for Jest v26 (bfb4f7e)
  • mock-doc: support toDataURL method in canvas (1d998a2)
  • runtime: add missing intermediate parents scope ids to the elements (9e9e335)

Features

  • ci: remove need to compile scripts (aa065ce)

🌶 4.18.2 (2024-12-01)

Bug Fixes

  • e2e: allow to fetch CSS variables assigned to host elements (a632372)
  • hydrate: respect HydratedFlag configuration in hydrate script (fff9935)
  • runtime: always throw if component can not be loaded (f941626)
  • runtime: support watch for components with custom tag names (0c71425)
  • runtime: throw proper error if component is loaded with invalid runtime (ff1a988)
  • types: move autofocus attr/prop definition to HTMLAttributes (e992c61)

🐣 4.18.1 (2024-12-01)

Bug Fixes

  • build: do not copy polyfills to the OT unless building es5 (4a72bfb)
  • compiler: Allow OutputTargetCustom to be called on devMode (d0d1960)
  • compiler: deprecate scriptDataOpts [ci skip] (0ffd197)
  • declarations: Attribute ping is missing on AnchorHTMLAttributes (89e1467)
  • runtime: add root scope id to the user provided nested children as classname (61e13a3)

🚘 4.18.0 (2024-08-29)

Bug Fixes

  • hydrate: output track elements as void elms (6c81280)
  • runtime: add root scope id to the nested child as classname (f4b62c0)
  • testing: support functional components in unit tests (5d4bd25)

Features

  • docs: add style mode to docs-json output (23b8230)

🚙 4.17.2 (2024-05-15)

Bug Fixes

  • build: bundle size issue (8a5da32)
  • compiler: recognize loud comments when generating style docs (9d6060e)

🌵 4.17.1 (2024-05-15)

Bug Fixes

  • cli: prevent generate task from crashing (02c1a31)

🐉 4.17.0 (2024-05-15)

Bug Fixes

  • docs: merge together style docs from multiple CSS files (f301220)
  • docs: respect custom README content when writing to a custom path (fb2cec8)
  • slot-fallback: fix hiding fallback slot content issue when the slotted element is a text node (34220e3)
  • testing: perform string -> boolean type casting for Jest config (d050a65)

🎰 4.16.0 (2024-04-23)

Bug Fixes

  • cli: fix a bug in CLI argument parsing (8f1b907)
  • testing: prevent find from throwing error when query has no match (dba99f1)

Features

  • dev-server: dark mode support (b8c62c8)

🍔 4.15.0 (2024-04-23)

Features

  • compiler: perform automatic key insertion in more situations (bdf5a45)

🍾 4.14.1 (2024-04-23)

Bug Fixes

  • compiler: don't mistake aliased paths for collections imports (38ddc3e)
  • runtime: nested multiple default slot relocation (3c6b2aa)
  • runtime: prevent ref callbacks from being called too early (55dd1c1)

🌞 4.14.0 (2024-04-23)

Bug Fixes

  • mock-doc: provide a local name (c31246f)
  • mock-doc: resolve type issue for localName (4576d66)

Features

  • testing: allow to set screenshot timeout option in Jest v28+ (6d89542)
  • testing: support deep piercing with Puppeteer (c6eef59)

🎤 4.13.0 (2024-04-22)

Bug Fixes

  • compiler: allow to set custom root directory (a37ade0)
  • compiler: don't validate references for @prop, @method and @event decorator (74f171b)
  • renderer: fix conditional rendering issue (4954bc7)
  • renderer: fix missing slot ref callback handling (fcea686)
  • runtime: remove forceUpdate in appendChild patch (9ecd395)
  • sys: fix expected types for createNodeLogger and createNodeSys (aa4e2cb)
  • testing: use viewport for Puppeteer screenshot clip dimensions (1418704)

Features

  • dev-server: add ping route (faae714)
  • typescript: Update dependency typescript to ~5.4.0 (0079ad0)

🚡 4.12.6 (2024-04-22)

Bug Fixes

  • cli: move version logging earlier in CLI to allow -v, --version (201e996)
  • compiler: fix generated import statement (b4eba42)
  • test: ensure screenshot dir is cleaned up (ab87dcf)

Features

  • compiler: update glob and minimatch dependencies (beb02b1)

⛳️ 4.12.5 (2024-04-22)

Bug Fixes

  • custom-elements: hydrate on client side (73d6b84)

👒 4.12.4 (2024-04-22)

Bug Fixes

  • build: address issue with dynamic import, wite, and lahm (bc2f41a)

🚃 4.12.3 (2024-04-22)

Bug Fixes

  • compiler: point crypto import at crypto instead of node:crypt (cd8a85a)
  • runtime: replace innerHTML with textContent for CSS injection (b45211e)

🌏 4.12.2 (2024-04-22)

Bug Fixes

  • compiler: support async globalScripts functions (84a875e)
  • mock-doc: overwrite parentElement in MockHTMLElement to return null (bee97ef)

📻 4.12.1 (2024-04-22)

Bug Fixes

  • mock-doc: improve error message when :scope selector is used (764574b)
  • runtime: dynamic slot name change (c436b40)
  • runtime: only generate lazy build CSS when there are component tags (8018841)

🐗 4.12.0 (2024-04-22)

Bug Fixes

  • compiler: restrict config extras slot fix flags (1503866)

💯 4.2.1 (2024-04-21)

Bug Fixes

  • compiler: add heritage clauses earlier in native transform (6ed0665)

🏕 4.2.0 (2024-02-18)

Bug Fixes

  • compiler: resolve implicit enum types (f22fae7)
  • runtime: patch methods for scoped slot append, prepend, and insertAdjacent (c14a31e)

Features

  • typescript: upgrade to TypeScript 5.1 (4582471)

🐕 4.2.0-0 (2024-02-18)

Bug Fixes

  • compiler: resolve implicit enum types (f22fae7)
  • runtime: patch methods for scoped slot append, prepend, and insertAdjacent (c14a31e)

Features

  • typescript: upgrade to TypeScript 5.1 (4582471)

🦀 4.1.0 (2023-12-05)

Bug Fixes

  • runtime: adds a testing check to the forceUpdate method (6c40192)
  • typings: add crossorigin html attr to img (6a62cd8)

Features

  • compiler: include getAssetPath in generated export statement (6751fd9)
  • config: add experimentalSlotFixes config value (3f3f876)

😋 4.0.5 (2023-12-05)

Bug Fixes

  • compiler: match tsconfig include paths properly (b51cec4)

Reverts

  • chore(deps): update dependency puppeteer to v21 (8587f7a)

🛥 4.0.4 (2023-12-05)

Bug Fixes

  • runtime: forceUpdate calls only execute when in a browser env (e1005b4)
  • typings: add additional transition events to DOMAttributes (8c21dd4)

🐖 4.0.3 (2023-12-04)

Bug Fixes

  • compiler: custom elements relative typedef import paths (055678b)
  • docs-json: use dts-bundle-generator to bundle types for docs-json (9404cb6)
  • runtime: add onSelect to textarea and input (e35899f)
  • runtime: handle lazy-instance promises for connected & disconnected callbacks (f9cf35f)
  • runtime: override attrs set on Host with values from host element (ec95b4f)
  • testing: remove use of emulate field in E2EPage() (8c10e8b)

🍪 4.0.2 (2023-12-03)

Bug Fixes

  • compiler: ensures transformed paths are relative paths for dist-collection (ef14ded)
  • compiler: handle [@supports](https://github.com/supports) blocks when scoping css (092d870)
  • compiler: only create one class member when transforming @Element() decorators (c70c5a1)
  • compiler: sourcemap errors for dist-custom-elements + dist-hydrate-script (d0db3a7)
  • compiler: sourcemap generation without ext runtime (8a506bc)
  • lazy: adjust the type of defineCustomElements (3e2e12a)
  • mock-doc: adjust matchMedia mock return (9059bc0)
  • output-targets: fix path normalization logic (ff46ece)
  • rollup-config: deprecate BundlingConfig#namedExports (60c1bbf)
  • runtime: properly type color-interpolation-filter (e4ff49d)

🏑 4.0.1 (2023-07-17)

Bug Fixes

  • compiler: address when a home module cannot be found (60c7d34)
  • compiler: normalize recommended path for validation (2be9dce)

🐹 4.0.0 (2023-07-17)

🍬 4.0.0-rc.0 (2023-07-16)

🐅 4.0.0-beta.2 (2023-07-16)

👑 4.0.0-beta.1 (2023-07-13)

🐇 4.0.0-beta.0 (2023-06-02)

Bug Fixes

  • e2e: honor devtools and browserDevtools settings (4597d1f)

🎇 3.4.1 (2023-07-16)

Bug Fixes

  • compiler: fix issue with aliased paths getting cut off (e171f1f)
  • compiler: reorder tsconfig#path transforms (b4ac60d)

📺 3.4.0 (2023-07-16)

Bug Fixes

  • compiler: handle static members with rindo decorators (eda78b3)
  • runtime: add autocomplete to textarea (b258daf)
  • runtime: issue with update-component and patched Promise (09357db)

Features

  • compiler: primary package output target validation (45e5c6d)

🍈 3.3.1 (2023-07-16)

Bug Fixes

  • compiler: handle ts 5.0 static members (56e34a7)
  • e2e: honor devtools and browserDevtools settings (4597d1f)

🍝 3.3.0 (2023-06-01)

Bug Fixes

  • compiler: components typedef path aliases (fc90275)

Features

  • testing: support puppeteer's 'headless': 'new' (1fade6d)
  • typescript: upgrade to TypeScript 5 (0edd70c)

Reverts

  • Revert "refactor(compiler): add a Result union type for polymorphic returns" (1d45905)

🎭 3.2.4 (2023-06-01)

Bug Fixes

  • declarations: add onCancel to dialog attributes (49c2d46)
  • runtime: initialize custom elements even when there is no styles (2a19735)
  • testing: jest component disconnected callback (3cfec43)

🐰 3.2.3 (2023-04-30)

🏒 3.2.2 (2023-04-23)

🎉 3.2.1 (2023-04-21)

Bug Fixes

  • compiler: sourcemap for dist-custom-elements generation (7c04a83)
  • compiler: write exports for defineCustomElement typedefs (776bf96)
  • mock-doc: add missing properties of object returned by matchMedia (5a6d060)
  • test: fix infinite loops w/ react (19da147)

Reverts

  • lint: turn on the 'import/no-duplicates' rule (036d65a)

🏙 3.2.0 (2023-04-07)

Bug Fixes

  • cli: support Jest-specific CLI flag aliases (79eb652)
  • compiler: use file system polling events in watch mode (e724316)
  • test: support importing from ES modules in spec tests (e965ff3)
  • typo: fix info task output (eab32c5)

Features

  • config: add enableImportInjection flag (9619b0f)

💥 3.1.0 (2023-04-07)

Bug Fixes

  • browser: polyfill assert, process (e484c23)
  • runtime: prevent null data-opts access (3cb5697)

Features

  • compiler: transform module aliases in emitted js, typedefs (e36e5f7)
  • testing: add support for transforming path aliases in spec tests (a98e891)

🐸 3.0.1 (2023-04-06)

Bug Fixes

  • compiler: ensure rollup outputs a single file for hydrateFactory (28f8c60)

📣 3.0.0 (2023-04-05)

🐏 3.0.0-rc.1 (2023-04-05)

🦄 3.0.0-rc.0 (2023-04-05)

🐺 3.0.0-beta.0 (2023-04-05)

Features

  • compiler: remove inlineDynamicImports from custom elements targets (b0f1f3a)

🐬 3.0.0-alpha.2 (2023-04-05)

🏖 3.0.0-alpha.1 (2023-04-05)

Features

  • e2e: add support for puppteer v19 (cba47f5)

🍌 3.0.0-alpha.0 (2023-04-05)

Bug Fixes

  • compiler: destroy callback naming (283bde7)
  • declarations: correct event handler names for composition events (42a8e7e)
  • runtime: autocapitalize property is a string (e921bf8)
  • runtime: onInput event type (110faf1)

Features

  • cli: update flag defaults for V3 (40c09c2)
  • compiler: add CustomElementExportBehavior to custom elements … (b59761d)
  • compiler: add defineCustomElements method & signature typedef (3f7b9bc)
  • compiler: export custom types in compiled output (42d5fa2)
  • compiler: moves autoDefineCustomElements to an export behavior (1ea058b)
  • node: drop node 12 support (ba96132)
  • output_targets: remove legacy angular target (bc35358)

🍿 2.22.2 (2023-04-05)

Bug Fixes

  • cli: typo in telemetry command (ef8af77)

☕️ 2.18.0 (2023-01-11)

Bug Fixes

  • collection: properly transform imports (0cbb529)

Features

  • loader: add private field to loader's package.json (1756b2c)
  • typescript: add support for typescript v4.7 (40be168)

🏵 2.17.4 (2023-01-11)

Bug Fixes

  • compiler: don't break HMR by mangling CSS (aa5c1a6)
  • task: consider config sys in task runner (15143f0)

🌱 2.17.3 (2023-01-11)

Bug Fixes

  • validation: update module location suggestion (30fb63d)

⚽️ 2.17.2 (2023-01-11)

Bug Fixes

  • cli: fix bug with parsing --fooBar=baz type CLI flags (93b2284)
  • cli: remove usage of deprecated npm env var from arg parser (8be00ec)
  • compiler: update package.json validation for the 'module' field (075d98a)
  • mock-doc: add missing methods to the element mock (d5dafba)

Features

  • ci: fail the browserstack tests if any files were changed or added (bfd39e2)

📬 2.17.2-0 (2023-01-11)

Bug Fixes

  • compiler: fix typedef file generated for dist-custom-elements (4a5ad6e)

Features

  • mock-doc: dispatch blur and focus events (8f9d5c8)

🍏 2.17.1 (2023-01-11)

Bug Fixes

  • cli: add explicit support for Jest CLI arguments (0e7f285)
  • compiler: handle null window.location.origin (9f1fc34)
  • github: don't run prettier check (2235217)
  • styles: ensure styles are applied before paint (502c120)

🏉 2.17.0 (2022-08-12)

Features

  • compiler: export all built components from index.js w/ dist-custom-elements (1e2d4cc)
  • compiler: update generation of type declaration file w/ dist-custom-elements (5774071)
  • mock-doc: add matrix and tspan props for svgelement (ec8dc82)
  • telemetry: add rindo config to telemetry object (46e3b61)

🚐 2.16.1 (2022-08-12)

Bug Fixes

  • config: fix faulty build output w/ --esm flag (33cac11)

🛠 2.16.1-0 (2022-08-12)

Bug Fixes

  • config: fix faulty build output w/ --esm flag (33cac11)