Skip to content

Releases: modiimedia/contentful-hugo

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

v2.1.4

08 Apr 05:01
Compare
Choose a tag to compare

Full Changelog: v2.1.3...v2.1.4

Update Dependencies

  • update @contentful/rich-text-html-renderer to v15.12.0
  • update @contentful/rich-text-plain-text-renderer to v15.12.0
  • update @contentful/rich-text-types to v15.12.0
  • update chokidar to v3.5.3
  • update contentful to v9.1.19
  • update express to v4.17.3
  • update fs-extra to v10.0.1
  • update yargs to v17.4.0

Update Dev Dependencies

  • update @modii/tscpaths to v0.2.2
  • update @types/jest to v27.4.1
  • update @types/js-yaml to v4.0.5
  • update @typescript-eslint/eslint-plugin to v5.18.0
  • update @typescript-eslint/parser to v5.18.0
  • update eslint to v8.12.0
  • update eslint-config-prettier to v8.5.0
  • update eslint-plugin-import to v2.26.0
  • update jest to v27.5.1
  • update prettier to v2.6.2
  • update ts-jest to v27.1.4
  • update typescript to v4.6.3