v4.0.0
New Features
Support for typescript config files
You can now specify a Contentful Hugo config like like this:
// contentful-hugo.config.ts
import { defineConfig } from 'contentful-hugo';
export default defineConfig({
// stuff goes here
});
contenful-hugo.config.ts
has been added to list of default config file names. The list of default config locations now looks like the following in order of priority:
contentful-hugo.config.ts
contentful-hugo.config.js
contentful-hugo.config.yaml
contentful-hugo.yaml
contentful-settings.yaml
Breaking Changes
- Drop support for Node v16
- Migrate to ESM. (using
require()
via CommonJS should still work, but testing will primarily be done against ESM)
Other Changes
- Refactor dev tooling to make us of
unbuild
from the unjs ecosystem to simplify outputting files for ESM and CommonJS - Migrate from yargs to citty for CLI commands
- Make use of
jiti
to run generic ts scripts
Full Changelog: v3.1.0...v4.0.0