component-elements

Create a custom element from any component with these tiny functions (2KB GZipped, ~1KB Brotli). Preact and React currently supported

MIT License

Downloads
7.3K
Stars
89
Committers
2

Bot releases are visible (Hide)

component-elements - [email protected] Latest Release

Published by jahilldev about 1 year ago

component-elements - [email protected], [email protected]

Published by jahilldev over 1 year ago

  • Updated all dependencies to fix security vulnerabilities
  • Fixed type issues introduced by latest [email protected]
  • Updated use of globals in tests (globalThis)
  • Update supported Node version to 16 LTS in ci.yml
  • Fixed webpack config for externals, preventing incorrect bundling of Preact
component-elements - [email protected], [email protected]

Published by jahilldev over 2 years ago

  • Fixed issue where children props were lost if custom element was moved in the DOM
  • Fixed SSR error due to custom element being setup too early
component-elements - [email protected], [email protected]

Published by jahilldev over 2 years ago

  • Normalise string values provided to slot attributes, and convert to camelCase
  • Updated README with explicit info to avoid confusion
component-elements - [email protected]

Published by jahilldev over 2 years ago

  • Added v1 of reactement package
  • Added model of self closing tags to satisfy React's createElement function during HTML parse
component-elements - [email protected]

Published by jahilldev over 2 years ago

  • Converted project structure into monorepo
  • Migrated common parse, element and model code to shared package
  • Output ES6 by default, with sub folder ES5 for legacy, e.g preactement/es5
  • Dropped default file size by 24% 👍
component-elements - 1.6.7

Published by jahilldev over 2 years ago

  • General maintenance
component-elements - 1.6.5

Published by jahilldev almost 3 years ago

  • Fixed HTML parse errors when custom element has self closing HTML elements, e.g <br>.
  • Updated README with an important caveat to this parsing strategy
component-elements - 1.6.4

Published by jahilldev almost 3 years ago

  • Clarified README intro paragraphs
  • Removed redundant early __mounted flag from onConnected
component-elements - 1.6.3

Published by jahilldev almost 3 years ago

  • Fixed issue with the parse HTML functions removing hyphens from valid attributes, e.g data-title.
component-elements - 1.6.2

Published by jahilldev almost 3 years ago

  • Disabled ES6 output temporarily
  • Cleared ./dist folder of legacy files
component-elements - 1.6.1

Published by jahilldev almost 3 years ago

  • Refactored use of async/await to Promise chaining. This removes the need for the regenerator runtime, significantly reducing file size.
  • Small update to README
component-elements - 1.6.0

Published by jahilldev almost 3 years ago

  • Added support for <* slot="{propKey}" /> nested elements
  • Updated README to outline how slots work
component-elements - 1.5.0

Published by jahilldev almost 3 years ago

  • Added native HTML to VDom conversion
  • Removed preact-markup, reducing overall package weight
component-elements - 1.4.7

Published by jahilldev over 3 years ago

  • Updated package.json
  • Removed redundant variable in index.ts
component-elements - 1.4.6

Published by jahilldev over 3 years ago

  • Updated keywords in package.json
  • Removed un-used variable in attribute method
component-elements - 1.4.5

Published by jahilldev over 3 years ago

  • Fixed tests failing by incorrectly evaluating with ES5
  • Improved test coverage for props update
component-elements - 1.4.4

Published by jahilldev over 3 years ago

  • Defined output.globalThis property in webpack config for cross env support (node / browser)
component-elements - 1.4.3

Published by jahilldev over 3 years ago

  • Added tslib dependency to fix ES5 output
component-elements - 1.4.2

Published by jahilldev over 3 years ago

  • Set target to ES5 for better support (temporarily, split targets coming soon)
  • Fixed typo in README