From 96ecfed00043a192256b2aff123db1dd577d12ef Mon Sep 17 00:00:00 2001 From: Nate Baer Date: Tue, 16 Jan 2024 10:26:43 -0800 Subject: [PATCH 1/4] Create 0.31.0 release. Signed-off-by: Nate Baer --- CHANGELOG.md | 4 ++++ lib/blueprinter/version.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14ff8a5e..f26ed3b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.31.0 - 2024/01/16 +* 🚀 [BREAKING] Allow transformers to be included across views. See [this](https://github.com/procore-oss/blueprinter#transform-across-views) section of the README for details, also PR [#372](https://github.com/procore-oss/blueprinter/pull/372) and issue [#225](https://github.com/procore-oss/blueprinter/issues/225). Note this changes the behavior of transformers which were previously only applied to the view they were defined on. Thanks to [@njbbaer](https://github.com/njbbaer) and [@bhooshiek-narendiran](https://github.com/bhooshiek-narendiran). +* 💅 [ENHANCEMENT] Add reflection on views, fields, and associations. See PR [#357](https://github.com/procore-oss/blueprinter/pull/357) and issue [#341](https://github.com/procore-oss/blueprinter/issues/341). Thanks to [@jhollinger](https://github.com/jhollinger). + ## 0.30.0 - 2023/09/16 * 🚀 [FEATURE] Allow configuring custom array-like classes to be treated as collections when serializing. More details can be found [here](https://github.com/procore-oss/blueprinter/pull/327). Thanks to [@toddnestor](https://github.com/toddnestor). * 💅 [ENHANCEMENT] Reduce object allocations in fields calculations to save some memory. More details can be found [here](https://github.com/procore-oss/blueprinter/pull/327). Thanks to [@nametoolong](https://github.com/nametoolong). diff --git a/lib/blueprinter/version.rb b/lib/blueprinter/version.rb index 2e640cbc..7c38152c 100644 --- a/lib/blueprinter/version.rb +++ b/lib/blueprinter/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Blueprinter - VERSION = '0.30.0' + VERSION = '0.31.0' end From 3e93bb23e3cbd8c014c0917c4b8a79a59405b435 Mon Sep 17 00:00:00 2001 From: Nate Baer Date: Tue, 16 Jan 2024 10:32:50 -0800 Subject: [PATCH 2/4] Fixes mistake in transform classes documentation. Resolves [#282](https://github.com/procore-oss/blueprinter/issues/282). Signed-off-by: Nate Baer --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dde177aa..e752a6b3 100644 --- a/README.md +++ b/README.md @@ -765,7 +765,7 @@ processing and transforming of resulting view field hashes prior to serializatio Use `transform` to specify one transformer to be included for serialization. A transformer is a class, extending `Blueprinter::Transformer` and implementing the `transform` method. -Whatever is returned from this `transform` method will end up being the resulting hash passed to serialization. +The modified `hash` object will be the resulting hash passed to serialization. #### Example From 0aa0b4c94a43ae28a38ff2a11f5208cd71cf6aff Mon Sep 17 00:00:00 2001 From: Nate Baer Date: Wed, 17 Jan 2024 13:57:19 -0800 Subject: [PATCH 3/4] Switch to version 1.0.0 Signed-off-by: Nate Baer --- CHANGELOG.md | 4 ++-- lib/blueprinter/version.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f26ed3b2..00fc2f2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ -## 0.31.0 - 2024/01/16 +## 1.0.0 - 2024/01/17 * 🚀 [BREAKING] Allow transformers to be included across views. See [this](https://github.com/procore-oss/blueprinter#transform-across-views) section of the README for details, also PR [#372](https://github.com/procore-oss/blueprinter/pull/372) and issue [#225](https://github.com/procore-oss/blueprinter/issues/225). Note this changes the behavior of transformers which were previously only applied to the view they were defined on. Thanks to [@njbbaer](https://github.com/njbbaer) and [@bhooshiek-narendiran](https://github.com/bhooshiek-narendiran). -* 💅 [ENHANCEMENT] Add reflection on views, fields, and associations. See PR [#357](https://github.com/procore-oss/blueprinter/pull/357) and issue [#341](https://github.com/procore-oss/blueprinter/issues/341). Thanks to [@jhollinger](https://github.com/jhollinger). +* 💅 [ENHANCEMENT] Add reflection on views, fields, and associations. See PRs [#357](https://github.com/procore-oss/blueprinter/pull/357), [#358](https://github.com/procore-oss/blueprinter/pull/358), and issue [#341](https://github.com/procore-oss/blueprinter/issues/341). Thanks to [@jhollinger](https://github.com/jhollinger). ## 0.30.0 - 2023/09/16 * 🚀 [FEATURE] Allow configuring custom array-like classes to be treated as collections when serializing. More details can be found [here](https://github.com/procore-oss/blueprinter/pull/327). Thanks to [@toddnestor](https://github.com/toddnestor). diff --git a/lib/blueprinter/version.rb b/lib/blueprinter/version.rb index 7c38152c..1f607521 100644 --- a/lib/blueprinter/version.rb +++ b/lib/blueprinter/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Blueprinter - VERSION = '0.31.0' + VERSION = '1.0.0' end From cafff50c7d3dc5fc643366926b761ea2960e7702 Mon Sep 17 00:00:00 2001 From: Nate Baer Date: Wed, 17 Jan 2024 15:16:05 -0800 Subject: [PATCH 4/4] Update changelog with details of the new extension API. Signed-off-by: Nate Baer --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00fc2f2c..0c027572 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 1.0.0 - 2024/01/17 -* 🚀 [BREAKING] Allow transformers to be included across views. See [this](https://github.com/procore-oss/blueprinter#transform-across-views) section of the README for details, also PR [#372](https://github.com/procore-oss/blueprinter/pull/372) and issue [#225](https://github.com/procore-oss/blueprinter/issues/225). Note this changes the behavior of transformers which were previously only applied to the view they were defined on. Thanks to [@njbbaer](https://github.com/njbbaer) and [@bhooshiek-narendiran](https://github.com/bhooshiek-narendiran). -* 💅 [ENHANCEMENT] Add reflection on views, fields, and associations. See PRs [#357](https://github.com/procore-oss/blueprinter/pull/357), [#358](https://github.com/procore-oss/blueprinter/pull/358), and issue [#341](https://github.com/procore-oss/blueprinter/issues/341). Thanks to [@jhollinger](https://github.com/jhollinger). +* 🚀 [BREAKING] Allow transformers to be included across views. See [README](https://github.com/procore-oss/blueprinter#transform-across-views), PR [#372](https://github.com/procore-oss/blueprinter/pull/372) and issue [#225](https://github.com/procore-oss/blueprinter/issues/225) for details. Note this changes the behavior of transformers which were previously only applied to the view they were defined on. Thanks to [@njbbaer](https://github.com/njbbaer) and [@bhooshiek-narendiran](https://github.com/bhooshiek-narendiran). +* 🚀 [FEATURE] Introduce extension API, with initial support for pre_render hook. See [#358](https://github.com/procore-oss/blueprinter/pull/358) for details. Thanks to [@jhollinger](https://github.com/jhollinger). +* 💅 [ENHANCEMENT] Add reflection on views, fields, and associations. See PR [#357](https://github.com/procore-oss/blueprinter/pull/357), and issue [#341](https://github.com/procore-oss/blueprinter/issues/341) for details. Thanks to [@jhollinger](https://github.com/jhollinger). ## 0.30.0 - 2023/09/16 * 🚀 [FEATURE] Allow configuring custom array-like classes to be treated as collections when serializing. More details can be found [here](https://github.com/procore-oss/blueprinter/pull/327). Thanks to [@toddnestor](https://github.com/toddnestor).