Hydrogenjs Hydrogen Versions Save

🎈 Hydrogen. Voted (by me) the world's lightest static-site generator built with TypeScript ❤ It uses 🔥 lit-html inspired templating for super duper performant template generation.

v1.0.0

4 years ago

Finally, Hydrogen is at version 1.0.0 with a some cool new features

Features

v0.9.0

4 years ago

Features

  • Added the CACHE_VERSION constant to the generated Service Worker file, this makes it possible to do cache versioning. Check out docs

v0.8.0

4 years ago

#50

Feature

  • dist folder will automatically be deleted before each build by default, you change the behaviour in the Hydrogen Config file

v0.7.2

4 years ago

New features

  • Routes API - Dynamically generate routes using a Page Template

Checkout the overview article on DEV.to: Dynamically generate routes with HydrogenJS - v0.7.2

v0.6.4

4 years ago

Fixed an issue where the templateGenerator for the generate command was destructing the data props instead of passing the data as a prop to the page template.

Before

const page = ({ name }) => `
  ${name}
`;

module.exports = {
  page,
  data: () => { name: 'John' },
}

Now

const page = ({ data }) => `
  ${data.name}
`;

module.exports = {
  page,
  data: () => { name: 'John' },
}

v0.6.3

4 years ago

Template API: You no longer have to specify the default layout in your Page Template, the default layout is automatically used if one is not

v0.6.2

4 years ago

Updates

  • Service Worker API: Added a global const DEV that gets injected into your custom Service Worker, determines whether you are in dev or prod mode.

v0.6.1

4 years ago

Updates

module.exports = {
  head: () => [
    ['script', { async: true, defer: true, src: 'https://script.js' }, true],
  ],
}

Before: 0.6.1

<script async="true" defer="true" src="https://script.js"></script>

Now

<script async defer src="https://script.js"></script>

v0.6.0

4 years ago

Wow! A ton of new features are available 🔥

Updates

  • The codebase has been rewritten to accommodate for more modular architecture. Everything has been abstracted into a "service"

Features

  • Config API: You can now specify extra static files that you want to copy to the dist folder using the extraStaticFiles property.
  • Service Worker API
    • Add a custom Service Worker via the Config API
    • Your custom Service Worker now has access to a global const routes array with all the page routes information

v0.5.9

4 years ago

Updated generate command:

Templates now have access to Head API and Config API when compiling with the generate command