Skip to content

Commit

Permalink
Bump version to v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Sep 16, 2022
1 parent 418d9c4 commit db93f7f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [v1.1.0](https://github.com/AlchemyCMS/alchemy-json_api/tree/v1.0.0) (2022-09-16)

[Full Changelog](https://github.com/AlchemyCMS/alchemy-json_api/compare/v1.0.0...v1.1.0)

**Merged pull requests:**

- JS: Add support for deserializing camelCased attributes [\#65](https://github.com/AlchemyCMS/alchemy-json_api/pull/65) ([tvdeyen](https://github.com/tvdeyen))

## [v1.0.0](https://github.com/AlchemyCMS/alchemy-json_api/tree/v1.0.0) (2022-09-09)

[Full Changelog](https://github.com/AlchemyCMS/alchemy-json_api/compare/v0.26.0...v1.0.0)
Expand Down
10 changes: 6 additions & 4 deletions dist/alchemy-json_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ function findJsonApiIncluded(included, type, id, options) {
function filterDeprecatedElements(elements) {
const els = [];
elements.forEach(element => {
var _element$nested_eleme, _element$essences;

if (((_element$nested_eleme = element.nested_elements) === null || _element$nested_eleme === void 0 ? void 0 : _element$nested_eleme.length) > 0) {
if (element.nested_elements?.length > 0) {
element.nested_elements = filterDeprecatedElements(element.nested_elements);
}

if (((_element$essences = element.essences) === null || _element$essences === void 0 ? void 0 : _element$essences.length) > 0) {
if (element.nestedElements?.length > 0) {
element.nestedElements = filterDeprecatedElements(element.nestedElements);
}

if (element.essences?.length > 0) {
element.essences = element.essences.filter(essence => {
return !essence.deprecated;
});
Expand Down
2 changes: 1 addition & 1 deletion lib/alchemy/json_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true
module Alchemy
module JsonApi
VERSION = "1.0.0"
VERSION = "1.1.0"
end
end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alchemy_cms/json_api",
"version": "1.0.0",
"version": "1.1.0",
"description": "JSON API deserializer for AlchemyCMS",
"license": "BSD-3-Clause",
"repository": {
Expand Down

0 comments on commit db93f7f

Please sign in to comment.