Skip to content

Releases: Elderjs/elderjs

v1.4.2

17 May 18:38
Compare
Choose a tag to compare

v1.4.1 introduced a bug due to the hookInterface limitations. This undoes that bug.

v1.4.1

17 May 17:49
Compare
Choose a tag to compare

Fixed issue where headers would be sent twice due to not returning res.end().

1.4.0

14 May 18:14
5f5038f
Compare
Choose a tag to compare

In this release we:

  • fix #141, #168.
  • Offer /dynamic/:routing/
  • Move the dev server into the rollup config. For a faster and more predictable dev experience.

Full details: https://elderguide.com/tech/elderjs/#routes

Breaking Changes

Middleware Hook

To pull off dynamic routing we had to completely rework the routing model for Elder.js.

The only major breaking change has been to the signature of the middleware hook, all of the props are now not mutable aside from request and errors.

That said, there should be no loss of control as compared to before. Simply return mutated request object before the elderExpressLikeMiddleware hook.

As long as the request is well formed, Elder.js will take care of it.

Dev Server

Prior to this release, Elder.js recommended two terminals during development. Now we recommend your scripts section of your package.json to look something like this:

"scripts": {
    "start": "npm run dev",
    "build": "node ./src/cleanPublic.js && npm run build:rollup && npm run build:html",
    "build:rollup": "rollup -c",
    "build:html": "node ./src/build.js",
    "dev": "rollup  -c -w --no-watch.clearScreen",
    "serve": "node ./src/cleanPublic.js && npm run build:rollup && NODE_ENV=production node ./src/server.js"
}

Resulting in using `npm start` or `npm run dev` to do local development.

v1.3.4

17 Mar 16:06
Compare
Choose a tag to compare

Fix #149

v1.3.3

11 Mar 19:17
Compare
Choose a tag to compare

Fixes #144

v1.3.1

29 Jan 22:53
Compare
Choose a tag to compare

Fix CSS issues where relevant css files were not being copied over. #114 Elderjs/template#38

v1.3.0

29 Jan 22:02
Compare
Choose a tag to compare

Fix memory leak with performance observer. #127

Rework the way prefix works in the codebase. You can now specify a prefix and Elder.js will serve with that prefix in server mode and output files in your public directory with that prefix. #128

v1.2.6

25 Jan 20:48
e0e7d47
Compare
Choose a tag to compare

v1.2.5

11 Jan 15:30
Compare
Choose a tag to compare

Merge #115

v1.2.4

23 Dec 16:35
Compare
Choose a tag to compare

Fix issue with pass by reference on a route's all function. See #108