From e8083c320e835e79bd26deaccce9fbb4fd2f20ca Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 23 Nov 2022 18:13:43 +0000 Subject: [PATCH 1/2] feat: link tag styles will only save if a document_id is defined --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 778dffe..bd3fff8 100644 --- a/src/index.js +++ b/src/index.js @@ -270,7 +270,7 @@ function addNewRules() { } function save() { - if (linkTag) { + if (linkTag && linkTag.hasAttribute('document_id')) { const onlyUnique = (value, index, self) => { return self.indexOf(value) === index; }; From b4dbba084e70648dab0739526ac312e1903e3954 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 23 Nov 2022 19:41:30 +0000 Subject: [PATCH 2/2] chore(release): 1.1.0 [skip ci] # [1.1.0](https://github.com/CoCreate-app/CoCreate-css-parser/compare/v1.0.17...v1.1.0) (2022-11-23) ### Features * link tag styles will only save if a document_id is defined ([e8083c3](https://github.com/CoCreate-app/CoCreate-css-parser/commit/e8083c320e835e79bd26deaccce9fbb4fd2f20ca)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3750985..ba6a6ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.1.0](https://github.com/CoCreate-app/CoCreate-css-parser/compare/v1.0.17...v1.1.0) (2022-11-23) + + +### Features + +* link tag styles will only save if a document_id is defined ([e8083c3](https://github.com/CoCreate-app/CoCreate-css-parser/commit/e8083c320e835e79bd26deaccce9fbb4fd2f20ca)) + ## [1.0.17](https://github.com/CoCreate-app/CoCreate-css-parser/compare/v1.0.16...v1.0.17) (2022-11-22) diff --git a/package.json b/package.json index ebdee11..55b496b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cocreate/css-parser", - "version": "1.0.17", + "version": "1.1.0", "description": "A simple css-parser component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.", "keywords": [ "css-parser",