From 2b93161f92a720c48dd176b36410fdfbe3356165 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sat, 24 Aug 2024 04:45:21 +0100 Subject: [PATCH] Release 1.3.4 == npm run size == transferSize 1.3.3: * JS 2,234 B * CSS 1,972 B transferSize 1.3.4: * JS 2,218 B (-0.7%( * CSS 1,960 B (-0.6%( --- README.md | 5 +++-- package.json | 2 +- typesense-minibar-foot.css | 2 +- typesense-minibar.css | 2 +- typesense-minibar.js | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c0c98ad..8e20ab9 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ * **Fast**, leverages preconnect (Resource Hints), LRU memory cache * **Easy to install**, fully declarative via HTML (zero-code setup!) * **Web Component** ready +* **[CSP](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP)** ready for strict security settings ## Getting started @@ -41,8 +42,8 @@ Distribution: -* **jsDelivr** ([browse](https://cdn.jsdelivr.net/npm/typesense-minibar@1.3.3/)):
[typesense-minibar.js](https://cdn.jsdelivr.net/npm/typesense-minibar@1.3.3/typesense-minibar.js), [typesense-minibar.css](https://cdn.jsdelivr.net/npm/typesense-minibar@1.3.3/typesense-minibar.css) -* **UNPKG** ([browse](https://unpkg.com/browse/typesense-minibar@1.3.3/)):
[typesense-minibar.js](https://unpkg.com/typesense-minibar@1.3.3/typesense-minibar.js), [typesense-minibar.css](https://unpkg.com/typesense-minibar@1.3.3/typesense-minibar.css) +* **jsDelivr** ([browse](https://cdn.jsdelivr.net/npm/typesense-minibar@1.3.4/)):
[typesense-minibar.js](https://cdn.jsdelivr.net/npm/typesense-minibar@1.3.4/typesense-minibar.js), [typesense-minibar.css](https://cdn.jsdelivr.net/npm/typesense-minibar@1.3.4/typesense-minibar.css) +* **UNPKG** ([browse](https://unpkg.com/browse/typesense-minibar@1.3.4/)):
[typesense-minibar.js](https://unpkg.com/typesense-minibar@1.3.4/typesense-minibar.js), [typesense-minibar.css](https://unpkg.com/typesense-minibar@1.3.4/typesense-minibar.css) * npm: [typesense-minibar](https://www.npmjs.com/package/typesense-minibar) ```shell npm i --save typesense-minibar diff --git a/package.json b/package.json index 3d7f4a4..ffecd6a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "typesense-minibar", "description": "Fast 2kB autocomplete search bar", - "version": "1.3.3", + "version": "1.3.4", "homepage": "https://github.com/jquery/typesense-minibar", "license": "MIT", "author": { diff --git a/typesense-minibar-foot.css b/typesense-minibar-foot.css index 10552b6..4717514 100644 --- a/typesense-minibar-foot.css +++ b/typesense-minibar-foot.css @@ -1,4 +1,4 @@ -/*! https://github.com/jquery/typesense-minibar 1.3.3 */ +/*! https://github.com/jquery/typesense-minibar 1.3.4 */ .tsmb-foot::after { content: ""; display: inline-block; diff --git a/typesense-minibar.css b/typesense-minibar.css index 1064590..730c579 100644 --- a/typesense-minibar.css +++ b/typesense-minibar.css @@ -1,4 +1,4 @@ -/*! https://github.com/jquery/typesense-minibar 1.3.3 */ +/*! https://github.com/jquery/typesense-minibar 1.3.4 */ .tsmb-form, typesense-minibar { --tsmb-size-edge: 1px; diff --git a/typesense-minibar.js b/typesense-minibar.js index 61957ca..f73dfeb 100644 --- a/typesense-minibar.js +++ b/typesense-minibar.js @@ -1,4 +1,4 @@ -/*! https://github.com/jquery/typesense-minibar 1.3.3 */ +/*! https://github.com/jquery/typesense-minibar 1.3.4 */ globalThis.tsminibar = function tsminibar (form, dataset = form.dataset) { const cache = new Map(); const state = { query: '', cursor: -1, open: false, hits: [] };