Skip to content

v0.12.0

Choose a tag to compare

@codemeasandwich codemeasandwich released this 21 Jan 11:45
· 67 commits to master since this release

Features

  • add block syntax for templates and XSS prevention
  • add minified build, ES6 badges, and dual-build testing
  • add handlebars-like conditionals and iteration to templates
  • add object ref support for custom child tags
  • add array value support in Fragment templates
  • add pass-through function support for custom elements
  • add asynchronous fragment templates
  • add template syntax support within fragments
  • allow setAttribute to rerender on same cycle
  • add dataset support
  • add run-once option for Fragments
  • add Fragment support (hyperHTML.define)
  • add support for identifying data passed to template
  • allow passing values to next from setup(onNext)
  • parse element attributes into JavaScript types
  • add partial templates support
  • add innerShadow property for string rendering
  • add ES2015 support
  • use shadow DOM with fallback to element render
  • add teardown support

Bug Fixes

  • child elements re-draw when parent passes new values
  • allow style objects to pass through to child elements
  • allow passing objects to custom elements without function attrs
  • upgrade hyperhtml from 2.27.0 to 2.34.2
  • prevent infinite loop in Fragment resolution
  • prevent templates creating new references on each render
  • fix typo
  • correct dataset key watching
  • prevent double render when setting attribute
  • improve template wire handling
  • re-render on inner content change
  • add missing hyperhtml dependency
  • add missing hyperHTML require

Refactoring

  • remove obsolete source/ directory, use only minified build
  • restructure source into modular /src/ directory with JSDoc
  • move createdCallback out of class definition
  • separate this context from element
  • rename props to attrs
  • combine watch and readStore into setup function

Documentation

  • reorganize README for improved readability
  • reorganize documentation into modular README structure
  • add TypeScript definitions and comprehensive documentation
  • add event callback example to setup documentation
  • add npm installation and usage instructions
  • add example links to README
  • add gzip size badges to README
  • describe dynamic attributes with custom-element children
  • add wire and lite documentation for Html
  • fix typos in README
  • add this.element to README
  • update CDN links in README example
  • add inline fragments example to README
  • update size in README
  • add minified CDN link to README
  • add styling example to README
  • update README
  • add table of contents to README
  • add npm and cdn badges to README
  • update project meta in README
  • fix typo in README
  • update Custom Element html example in README

Other Changes

  • build: bump esbuild from 0.24.2 to 0.25.0
  • test: achieve 100% code coverage with additional edge case tests
  • build: remove generated coverage and report files from git
  • build: exclude build/ from git, clean up after tests
  • style: apply prettier formatting across codebase
  • build: update package entry point to built file
  • build: add JSDoc and documentation validation to pre-commit hooks
  • build: add modular pre-commit hook system
  • test: add comprehensive edge case tests for code coverage
  • ci: add automated npm release workflow
  • test: add event callbacks test to verify feature works
  • build: bump decode-uri-component from 0.2.0 to 0.2.2
  • build: bump minimist and mkdirp
  • build: bump set-value and union-value
  • build: bump lodash from 4.17.11 to 4.17.21
  • Merge remote master after PR #18 (hyperhtml upgrade)
  • Merge pull request #18 from codemeasandwich/snyk-upgrade-e07cf2a57eefd92c75e33945f3052339
  • test: replace test.html with kitchensink E2E test system
  • ci: add GitHub workflow for npm publishing with provenance
  • Merge branch 'master' of git@github.com:codemeasandwich/hyper-element.git
  • Merge pull request #4 from janat08/patch-1
  • Merge branch 'master' of git@github.com:codemeasandwich/hyper-element.git
  • Merge branch 'master' of git@github.com:codemeasandwich/hyper-element.git
  • Merge branch 'master' of git@github.com:codemeasandwich/hyper-element.git
  • chore: init