From 5c813dfe1f47d8e228038590d555a48fe247df82 Mon Sep 17 00:00:00 2001 From: Martin Levett Date: Wed, 10 Nov 2021 13:47:27 +1100 Subject: [PATCH] Version bump --- CHANGELOG.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 55 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a87870..ae28cc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,56 @@ +## 9.0.0 (2021-11-10) + +- Update to NestJS 8 +- Update to io-ts 2 +- Update other non-breaking dependencies +- Update to TypeScript 4.4 (some dependencies required this to build) + +### BREAKING CHANGES + +#### NestJS 8: +This may not require any changes but please read official migration guide: +[https://docs.nestjs.com/migration-guide](https://docs.nestjs.com/migration-guide) + +In general: + +- Update all nest dependencies to latest +- Update rxjs to v7 + +#### IOTS 2: +A few changes likely required for this: + +- Add `fp-ts` dependency +- Change any code using isLeft as example below + +OLD: + ```typescript + import { reporter } from 'io-ts-reporters'; + import { ThrowReporter } from 'io-ts/lib/ThrowReporter'; + ... + + const validationResult = schema.decode(inputValue); + + if (validationResult.isLeft()) { + throw ThrowReporter.report(validationResult); + } + + return validationResult.value; + ``` +NEW: + ```typescript + import iotsReporter from 'io-ts-reporters'; + import { isLeft } from 'fp-ts/lib/Either'; + ... + + const validationResult = schema.decode(inputValue); + + if (isLeft(validationResult)) { + throw new Error(iotsReporter.report(validationResult).join(', ')); + } + + return validationResult.right; + ``` + ## 8.2.1 (2021-11-08) - Add SearchableRespository reindex method to batch requests to cater for 200 max allowed for by GAE search service. diff --git a/package-lock.json b/package-lock.json index dc16b74..adbeec7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@mondomob/gae-node-nestjs", - "version": "8.2.1", + "version": "9.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index efc7f28..1434dcc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mondomob/gae-node-nestjs", - "version": "8.2.1", + "version": "9.0.0", "description": "Google App Engine datastore repositories and graphql setup with nestjs", "main": "dist/index.js", "typings": "dist/index.d.ts",