Skip to content

Releases: edge-js/edge

Adding a few global helpers and update dependencies

15 May 10:29
Compare
Choose a tag to compare
  • style: format source files f8f00a8
  • feat: add stringify global helper fd0cd1a
  • feat: add nl2br helper 42ba955
  • feat: add .all() and .get() methods 53f2432
  • chore: update dependencies 14d858f
  • chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#93) e151db9

v5.1.1...v5.2.0

Fix doc blocks for view rendering

05 May 18:42
Compare
Choose a tag to compare
  • chore: update dependencies 39e3cbf
  • fix: comments at Contract for (a)sync rendering / addendum to e4dcb63 (#92) b79aaf0

v5.1.0...v5.1.1

Add newError tag

04 May 19:15
Compare
Choose a tag to compare
  • fix: remove unused imports 2a3c506
  • feat: add newError tag ca2c126
  • chore: add stale issue template 4e54764
  • docs(README): add usage docs eb76f40
  • chore: update dependencies d583eab

v5.0.0...v5.1.0

Make edge.render async and add edge.renderSync for old synchronous API

23 Apr 06:38
Compare
Choose a tag to compare
  • refactor: make edge.render async and add edge.renderSync method e4dcb63
  • refactor: rename share to inject aa480e5
  • refactor: rename tag.run to tag.boot 1f088e8
  • chore: update dependencies a2bbc87

v4.0.4...v5.0.0

Allow set tag to mutate existing values

24 Mar 05:04
Compare
Choose a tag to compare

You can now use set tag to mutate existing objects.

@set(user, 'profile.twitterHandle', '@AmanVirk1')

Commits

  • feat: allow set tag to mutate existing collections b8e4331

v4.0.3...v4.0.4

Publish under latest tag

24 Mar 04:11
Compare
Choose a tag to compare
  • chore: update publish tag to latest 8873159
  • feat: add string helpers to the template 674839a
  • chore: update dependencies d5f6201
  • fix: upgrade @poppinss/utils from 3.0.3 to 3.0.4 (#88) 3c860a6

v4.0.2...v4.0.3

Add support for rendering raw string directly

21 Feb 17:53
Compare
Choose a tag to compare

The new API allows rendering raw strings

edge.renderRaw('Hello {{ username }}', { username: 'virk' })

edge.renderRawAsync('Hello {{ await getUserName() }}', { getUserName: async () => 'virk' })
  • chore: update dependencies 98e6d95
  • feat: add support for rendering raw string 2ed8d98
  • feat: add support for removing inline registered templates 148d7c9
  • chore: update dependencies fd891f0

v4.0.1...v4.0.2

Drop support for Node 12

16 Feb 05:03
Compare
Choose a tag to compare
  • style: do not format fixtures using prettier 9ac57e6
  • style: reformat source files 10831d5

v4.0.0...v4.0.1

Add support for context API and async rendering

16 Feb 04:06
Compare
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
Compare
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