From a7e0cfc6093337b71c8b68af262504abf17285c8 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 4 Jul 2025 10:27:05 +0200 Subject: [PATCH] :tada: Bump 1.0.7 release of the penpot library Includes the ability to pass referer --- library/CHANGES.md | 11 +++++++++++ library/deps.edn | 5 ++--- library/package.json | 5 ++--- library/playground/sample-fill-stroke-and-media.js | 2 +- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/library/CHANGES.md b/library/CHANGES.md index 1e805c23b8..6f6a732e86 100644 --- a/library/CHANGES.md +++ b/library/CHANGES.md @@ -1,5 +1,16 @@ # CHANGELOG +## 1.0.7 + +- Add the ability to provide refereron creating build context + +```js +const context = penpot.createBuildContext({referer:"my-referer"}); +``` + +The referer will be added as an additional field on the manifest.json + + ## 1.0.6 - Fix unexpected issue on library color decoding diff --git a/library/deps.edn b/library/deps.edn index 0c59e66107..0b2473bf81 100644 --- a/library/deps.edn +++ b/library/deps.edn @@ -21,11 +21,10 @@ :dev {:extra-paths ["dev"] :extra-deps - {thheller/shadow-cljs {:mvn/version "3.1.4"} + {thheller/shadow-cljs {:mvn/version "3.1.7"} com.bhauman/rebel-readline {:mvn/version "RELEASE"} org.clojure/tools.namespace {:mvn/version "RELEASE"} - criterium/criterium {:mvn/version "RELEASE"} - cider/cider-nrepl {:mvn/version "0.48.0"}}} + criterium/criterium {:mvn/version "RELEASE"}}} :shadow-cljs {:main-opts ["-m" "shadow.cljs.devtools.cli"] diff --git a/library/package.json b/library/package.json index b58bfff5da..fa14bf7d46 100644 --- a/library/package.json +++ b/library/package.json @@ -1,6 +1,6 @@ { "name": "@penpot/library", - "version": "1.0.6", + "version": "1.0.7", "license": "MPL-2.0", "author": "Kaleidos INC", "packageManager": "yarn@4.9.1+sha512.f95ce356460e05be48d66401c1ae64ef84d163dd689964962c6888a9810865e39097a5e9de748876c2e0bf89b232d583c33982773e9903ae7a76257270986538", @@ -40,8 +40,7 @@ "@zip.js/zip.js": "patch:@zip.js/zip.js@npm%3A2.7.60#~/.yarn/patches/@zip.js-zip.js-npm-2.7.60-b6b814410b.patch", "concurrently": "^9.1.2", "luxon": "^3.6.1", - "nodemon": "^3.1.9", - "shadow-cljs": "3.1.4" + "nodemon": "^3.1.9" }, "dependencies": { "source-map-support": "^0.5.21" diff --git a/library/playground/sample-fill-stroke-and-media.js b/library/playground/sample-fill-stroke-and-media.js index dbc90cdce2..7bd952265d 100644 --- a/library/playground/sample-fill-stroke-and-media.js +++ b/library/playground/sample-fill-stroke-and-media.js @@ -6,7 +6,7 @@ import { Writable } from "stream"; // console.log(penpot); (async function () { - const context = penpot.createBuildContext(); + const context = penpot.createBuildContext({referer:"playground"}); { context.addFile({ name: "Test File 1" });