Skip to content

v4.1.1

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 07 Jan 02:12
· 40 commits to main since this release

Patch Changes

  • 335f21e: Select type updates (shouldn't affect compilation, however should improve DX)

    Changes are:

    • split types into separate files
    • namespace ventojs type imports
    • make PluginOptions optional by default
    • make Eleventy types more readable
    • declare a special (EleventyVentoEnvironment) for this plugin to replace Vento's own Environment
  • 070109a: Refactored files and functions internally that shouldn't have any impact on usage or performance:

    • Split debug functions into separate exports, renamed runCompatiblityCheck -> compatibilityCheck (dd4c379)
    • Utilities are now split into separate files (e06a83a)
    • Main file renamed from index.ts to plugin.ts (1b122d2)
  • c382be0: Wrap all filters as regular synchronous functions to avoid ambiguity with sync and async handling. (fixes #96)

    This change enforces explicit use of the await keyword to unwrap returned values from filters before chaining more or printing the result.

    <!-- Single filters -->
    - {{ "Hello, async!" |> someAsyncFilter }}
    + {{ "Hello, async!" |> await someAsyncFilter }}
    
    <!-- Filter chains -->
    - {{ "Hello, async!" |> someAsyncFilter |> someSyncFilter }}
    + {{ "Hello, async!" |> await someAsyncFilter |> someSyncFilter }}

    See the Vento docs on async chains for more information.

  • 9eaa059: Update debug to v4.4.0

  • 0b0f96a: Update ventojs to v1.12.14