Skip to content

Releases: bholmesdev/simple-stack

simple-stack-query@0.2.0

Choose a tag to compare

@github-actions github-actions released this 28 Jul 15:00
5e8fadb

Minor Changes

  • #77 f1431d5 Thanks @bholmesdev! - Revamps APIs to fix bugs and unlock a new suite of features.

    <RootElement>
      <button data-target="btn">Click me</button>
    </RootElement>
    
    <script>
      RootElement.ready(($) => {
        $('btn').addEventListener('click', () => {
          console.log("It's like JQuery but not!");
        });
      });
    </script>
    • Support multiple instances of the same component. Before, only the first instance would become interactive.
    • Enable data passing from the server to your client script using the data property.
    • Add an effect() utility to interact with the Signal polyfill for state management.

    Visit revamped documentation page to learn how to use the new features.

    Migration for v0.1

    If you were an early adopter of v0.1, thank you! You'll a few small updates to use the new APIs:

    • Wrap any HTML you want to target with the global RootElement component.
    • Remove the $ wrapper from your data-target selector (data-target={$('btn')}->data-target="btn"). Scoping is now handled automatically.
    • Change $.ready() to RootElement.ready(), and retrieve the $ selector from the first function argument. The $ selector is no longer a global.
    + <RootElement>
    -   <button data=target={$('btn')}>
    +   <button data-target="btn">
          Click me
        </button>
    + </RootElement>
    
    <script>
    - $.ready(() => {
    + RootElement.ready(($) => {
        $('btn').addEventListener('click', () => {
          console.log("It's like JQuery but not!");
        });
      });
    </script>

    Since the syntax for data-target is now simpler, we have also removed the VS Code snippets prompt. We recommend deleting the snippets file created by v0.1: .vscode/simple-query.code-snippets.

simple-stack-query@0.1.1

Choose a tag to compare

@github-actions github-actions released this 22 Jul 12:27
002d7ae

Patch Changes

  • #75 56a4000 Thanks @bholmesdev! - fixes issue where $.ready does not fire in Safari or Firefox when using Astro view transitions with fallback="none"

simple-stack-query@0.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Jul 00:53
0b6eeb4

Minor Changes

  • #72 72e2630 Thanks @bholmesdev! - Change from a global ready() block from client scripts to a namespaced $.ready() block. Should be safer to avoid collisions with any local variables called ready.

Patch Changes

vite-plugin-simple-scope@2.0.2

Choose a tag to compare

@github-actions github-actions released this 21 Jul 22:50
83b8332

Patch Changes

simple-stack-query@0.0.3

Choose a tag to compare

@github-actions github-actions released this 21 Jul 22:50
83b8332

Patch Changes

  • Updated dependencies [7ff6c6d]:
    • vite-plugin-simple-scope@2.0.2

simple-stack-stream@0.0.3

Choose a tag to compare

@github-actions github-actions released this 02 Jan 19:14
6d8ebbf

Patch Changes

simple-stack-stream@0.0.2

Choose a tag to compare

@github-actions github-actions released this 02 Jan 00:29
be7c79a

Patch Changes

simple-stack-form@0.1.6

Choose a tag to compare

@github-actions github-actions released this 01 Jan 21:41
32d8c54

Patch Changes