Skip to content

Releases: modiimedia/contentful-hugo

v4.1.0

11 Dec 16:21
Compare
Choose a tag to compare

Update dependencies

  • update contentful to v11.3.1
  • update @contentful/rich-text-html-renderer to v17.0.0
  • update @contentful/rich-text-plain-text-renderer to v17.0.0
  • update @contentful/rich-text-types to v17.0.0
  • update fastify to v5.1.0
  • update c12 to v2.0.1
  • update dotenv to v16.4.7
  • update dev dependencies

Full Changelog: v4.0.2...v4.1.0

v4.0.2

08 Jun 05:14
Compare
Choose a tag to compare

What's Changed

  • update chokidar to v3.6.0
  • update contentful to v10.11.8
  • update dev dependencies

Full Changelog: v4.0.1...v4.0.2

v4.0.1

31 May 20:14
Compare
Choose a tag to compare

Bug Fixes and Improvements

  • contentful-hugo --init now creates a .ts config file instead of a .js config file
  • fix bug where config priority order was not being respected

Development Changes

  • Migrate to eslint flat file config
  • Remove deprecated eslint configs and plugins (replace with new rules)

v4.0.0

24 Apr 00:56
Compare
Choose a tag to compare

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

v3.1.0

06 Feb 03:25
Compare
Choose a tag to compare

Update all dependencies to latest

Full Changelog: v3.0.0...v3.1.0

v3.0.0

08 Jul 15:59
Compare
Choose a tag to compare

Breaking Changes

  • upgrade to contentful ^10
  • upgrade to fs-extra ^11
  • minimum support Node version is now 14.14

Full Changelog: v2.2.2...v3.0.0

v2.2.2

03 Oct 16:50
Compare
Choose a tag to compare

Update dependencies

Full Changelog: v2.2.0...v2.2.2

v2.2.0

16 Sep 04:19
Compare
Choose a tag to compare

Add a function called defineConfig that provides a type safe way of writing configuration files. This is a precursor to adding typescript config support #62

With this new function you can do the following to get intellisense depending on your code editor. When typescript config support comes intellisense will perform better all around.

const { defineConfig } = require('contentful-hugo')

module.exports = defineConfig({
  // config goes here 
})

Full Changelog: v2.1.9...v2.2.0

v2.1.9

02 Aug 14:28
Compare
Choose a tag to compare

Full Changelog: v2.1.7...v2.1.9

Update dependencies

v2.1.7

22 Jun 14:47
Compare
Choose a tag to compare

Full Changelog: v2.1.4...v2.1.7

Update Dependences:

  • contentful updated to latest
  • yargs updated to latest