From 0140c84a583d6a7e437e1f54b76d1e9478a5140a Mon Sep 17 00:00:00 2001 From: Nadeem Patwekar Date: Thu, 4 Jul 2024 12:27:34 +0530 Subject: [PATCH] fix: add type support for preview_timestamp and release_id in livePreviewQuery --- .talismanrc | 2 +- CHANGELOG.md | 5 +++++ index.d.ts | 2 ++ package-lock.json | 12 ++++++------ package.json | 4 ++-- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.talismanrc b/.talismanrc index 32440f30..c89690f5 100644 --- a/.talismanrc +++ b/.talismanrc @@ -1,6 +1,6 @@ fileignoreconfig: - filename: package-lock.json - checksum: 4ddadcdbbd39ead729f20a58ce15fbbf2c71b17edf300df82f51f4f73489e96c + checksum: 28f8e6d0e7856b4a568fd260dcc4deb531bcdbebbbff956b008ce7dd26a0475d - filename: test/typescript/taxonomy.test.ts checksum: e4bdf633e147fd60d929d379f20c814eed5f68b11421d7b53ec8826e9142de37 - filename: src/core/modules/taxonomy.js diff --git a/CHANGELOG.md b/CHANGELOG.md index f52b7b1c..6e386484 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ ##### Enhanncement: - Adds Timeline Preview changes +### Version: 3.20.1 +#### Date: July-09-2024 +##### Fix: + - Type support for LivePreviewQuery method params + ### Version: 3.19.3 #### Date: May-17-2024 ##### Enhanncement: diff --git a/index.d.ts b/index.d.ts index 75c7d691..f9a1b78d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -92,6 +92,8 @@ export interface LivePreviewConfigWithPreviewToken { export interface LivePreviewQuery { live_preview: string content_type_uid: string + preview_timestamp: string + release_id: string } export interface RetryDelayOption { diff --git a/package-lock.json b/package-lock.json index 24c0eb4e..8bad36a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "contentstack", - "version": "3.19.2", + "version": "3.20.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "contentstack", - "version": "3.19.2", + "version": "3.20.0", "license": "MIT", "dependencies": { - "@contentstack/utils": "^1.3.3", + "@contentstack/utils": "^1.3.8", "cheerio": "^1.0.0-rc.12", "es6-promise": "^4.1.1", "isomorphic-fetch": "^3.0.0", @@ -1770,9 +1770,9 @@ "dev": true }, "node_modules/@contentstack/utils": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@contentstack/utils/-/utils-1.3.3.tgz", - "integrity": "sha512-Zj2ejyfbxZlXrF1Wl9lhwK2mCCWo5ooiDnSlNA8nupZ1nDsTfouYERgps8r/uyzm18Vda2wBitxloThxKAyzsA==" + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/@contentstack/utils/-/utils-1.3.8.tgz", + "integrity": "sha512-BKZcZs2/odh9nmugLmiNVBEbz34gjfgibZOsRlYV9ux7t+GkfjbELDjWJpKenL6G5Mb270VXVuDbNqkDLK96Zw==" }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", diff --git a/package.json b/package.json index ca907bfd..fbb60e05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "contentstack", - "version": "3.20.0", + "version": "3.20.1", "description": "Contentstack Javascript SDK", "homepage": "https://www.contentstack.com/", "author": { @@ -99,7 +99,7 @@ "webpack-node-externals": "^3.0.0" }, "dependencies": { - "@contentstack/utils": "^1.3.3", + "@contentstack/utils": "^1.3.8", "cheerio": "^1.0.0-rc.12", "es6-promise": "^4.1.1", "isomorphic-fetch": "^3.0.0",