Skip to content

Releases: Elderjs/elderjs

v1.2.3

11 Dec 19:40
Compare
Choose a tag to compare

v1.2.2

26 Nov 20:26
Compare
Choose a tag to compare

Windows path fix: #102 Thanks @kfrederix for the fix on #103

v1.2.1

25 Nov 23:25
Compare
Choose a tag to compare

Peg svelte at a version that doesn't conflict with preprocessors.

sveltejs/svelte#5722

v1.2.0

25 Nov 22:46
Compare
Choose a tag to compare

closes: #86 #46

Testing

The testing suite is now windows compatible. This was a major major undertaking but having rewritten almost 200 tests to accommodate it, we're glad it is available.

CSS: Inline or External File

There are now 4 css modes.

  1. file: (default) All of the CSS from Svelte components and imported into Svelte components is written to a file and included in the head.
  2. lazy: All of the CSS from Svelte components and imported into Svelte components is written to a file and included in the head but is lazily loaded. This is perfect to use with the Elder.js critical path plugin.
  3. inline One where all CSS a component depends on will be added to the head. This is how Elder.js started so this is the default. This is a great option for serverless rendering.
  4. none no css handling.

The inline option seems easy but is far from trivial. By default Svelte's compiler only gives you the "truthy" styles unless they are wrapped in :global(.foo). To do this Elder.js runs a special rollup plugin to all of the dependencies of a file, gather the css from those files, merge the source maps, and add it as a separate export to the CJS file that is generated.

Features:

  • can now write css to an external file. Simply add css: "file" to your elder.config.js
  • Allows for importing of css in svelte files.
  • consolidates all elderjs output into /public/_elderjs
  • Now properly gathers all dependent css for a component.

Fixes:

  • file naming issues
  • css not getting updated in dev mode
  • css order is preserved.
  • CSS not catching all dependencies.

Breaking:

  • Split components during rollup needed to go. the complexity was too much.
  • consolidates all elderjs output into /public/_elderjs
  • CSS used to be written to the head by default. The default going forward is file.

v1.1.10

18 Nov 17:24
Compare
Choose a tag to compare
  • Add helpers to permalink: #95

v1.1.9

13 Nov 22:10
Compare
Choose a tag to compare

fix: 🐛 Readonly proxy for settings in the permalink function

v.1.1.8

03 Nov 19:38
Compare
Choose a tag to compare
  • Import CSS from components imported via named exports. Fixes #86

v1.1.7

01 Nov 16:40
Compare
Choose a tag to compare
  • Make paths in the css rollup plugin cross platform.

v1.1.6

31 Oct 00:16
Compare
Choose a tag to compare
  • Change when shortcodes are processed so they can be used in Layouts #75

This causes a breaking change that will likely impact essentially 0 users:

  • templateHtml on the shortcode hook was changed to layoutHtml

v1.1.5

30 Oct 23:09
Compare
Choose a tag to compare
  • Minor release to get rid of console spam.