Skip to content

Releases: edge-js/edge

Add support for context API and async rendering

16 Feb 04:06

Choose a tag to compare

New Features

Async rendering was a long pending change and finally we have it. It will allow us to make use of await expression within the edge templates. Also, the internals of the edge will smartly adjust the code to work with async API. For example: The @each tag will use the correct loop when rendering in async mode.

await edge.renderAsync('template-path', {})

Next, we have got Context API, similar to the svelte Context API, but with its own edge specific syntax.

Breaking changes

  • Remove the yield tag. It wasn't used at all
  • Remove Edge.claimTag in favor of Edge.compiler.claimTag

Commits

  • chore: remove npm-audit in favor of synk 18a66ae
  • chore: update dependencies fa827ff
  • fix: upgrade @poppinss/utils from 2.5.9 to 2.5.10 (#86) c68c0fc
  • fix: typos c660205
  • feat: add support for the context api bf98b5d
  • refactor: restructing some parts of the code c775f0e
  • refactor: remove yield tag 89a8bbc
  • refactor: finish first phase of refactoring c3cc4a0
  • feat: add support for async rendering 5eb5a11
  • chore: update dependencies 6bde4fc
  • chore(deps): bump ini from 1.3.5 to 1.3.7 (#85) 7a41814

v3.5.1...v4.0.0

Allow recurring plugins

05 Dec 16:28

Choose a tag to compare

  • test: add regression test for #83 d7ae805
  • chore(deps): bump highlight.js from 10.3.2 to 10.4.1 (#84) 1f7879c
  • feat: add support for recurring plugins 82af5b0
  • test: add test for nested components 8c55087

v3.5.0...v3.5.1

Adding hooks for claiming and modifying tags

03 Dec 11:51

Choose a tag to compare

  • fix: typing issues 38a8f1a
  • feat: add support for claiming and modifying tags 3af75ad
  • chore: update dependencies and remove onLine preprocessor 935870d

v3.4.0...v3.5.0

Adding support for defining pre-processor to be executed on every line

15 Nov 18:32

Choose a tag to compare

Add @share tag and improvements to `$props` and `$slots` api

15 Nov 15:09

Choose a tag to compare

  • refactor: remove unused imports bb7d1cd
  • refactor: remove raise method from caller and add to globals b24b699
  • feat: add @share tag to share values from component to caller 63ca0ba
  • feat: add dedicated classes for Props & Slots for easier interaction 16fd508
  • feat: expose api to register plugins e228e0f
  • chore: update dependencies d7de3d8

v3.2.1...v3.3.0

Updating lexer and parser as they contain bug fixes

30 Oct 09:05

Choose a tag to compare

Add supporting for defining template pre-processors

05 Oct 12:34

Choose a tag to compare

  • test: normnalize new lines 931938c
  • feat: add support for defining processor functions to modify the template output 00dac4c
  • chore: update dependencies f476ae9
  • feat: allow access to property inside template 44c0445
  • chore: update dependencies 83b89df

v3.1.2...v3.2.0

Update underlying dependencies

21 Sep 14:16

Choose a tag to compare

  • docs(README): add banner 0a15d08
  • chore(package): update dependencies b744e71

v3.1.1...v3.1.2

Update dependencies

02 Sep 11:27

Choose a tag to compare

  • chore(package): update dependencies 29b5e92

v3.1.0...v3.1.1

Improving the way new lines are handled

01 Sep 17:28

Choose a tag to compare

This release contains changes to the way new lines are handled and enhances the tags syntax to allow striping new line after the openining block of a tag.

Since Edge is extensively used for generating HTML, we do not expect any breaking changes after this change, since HTML is no meaning for new lines \n.

However, if you face any issues in your existing apps, then feel free to get in touch with me

Commits

  • chore(package): update dependencies fca5506
  • chore: format source files using prettier 5ddca73
  • improvement: simplify newlines between tags 170d022

v3.0.5...v3.1.0