Skip to content

0.8.1

Compare
Choose a tag to compare
@jorgebucaran jorgebucaran released this 15 Apr 02:32
· 1015 commits to main since this release
7284023
  • Renamed model to state for clarity (#173).
  • Replaced subscriptions and hooks with a new events system for more streamlined application interaction (#174).
    app({
      events: {
        loaded: (state, actions, emit) => {/* ... */},
        action: (state, actions, data, emit) => {/* ... */},
        update: (state, actions, data, emit) => {/* ... */},
        render: (state, actions, data, emit) => {/* ... */},
        route:  (state, actions, data, emit) => {/* ... */}
      }
    })
  • Default mount to document.body for applications without a specified root (#140).
  • Lifecycle events are no longer deferred, enabling immediate response to state changes (#171).
  • Event handlers set as properties, not attributes, for improved performance (#175).
  • Added keys in elements for better management in lists, similar to React's approach (#172, #141, #117).
  • Introduced the emit(eventName, eventData) function for creating custom events (#177, #178).

Acknowledgments

Special thanks to @zaceno for the introduction of keys. Appreciation also goes to @pedroborges, @lukejacksonn, @selfup, @ngryman, @dodekeract, and @leeoniya for their contributions to this release.