diff --git a/CHANGELOG.md b/CHANGELOG.md index b521331..030363f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 3.0.3 / 2024-07-30 + +* Fix incorrect static / constructor syntax + ## 3.0.2 / 2024-07-30 * Just remove decorators altogether (still causing downstream build issues) diff --git a/frontend/javascript/index.js b/frontend/javascript/index.js index 5f57a12..c600951 100644 --- a/frontend/javascript/index.js +++ b/frontend/javascript/index.js @@ -30,10 +30,6 @@ export class BridgetownSearchForm extends LitElement { } export class BridgetownSearchResults extends LitElement { - static { - customElements.define("bridgetown-search-results", this) - } - static properties = { theme: { type: String }, results: { type: Array }, @@ -41,13 +37,6 @@ export class BridgetownSearchResults extends LitElement { displayCollection: { type: Boolean }, } - constructor () { - super() - this.results = [] - this.snippetLength = 142 - this.displayCollection = false - } - static styles = css` :host { display: block; @@ -139,6 +128,17 @@ export class BridgetownSearchResults extends LitElement { } ` + static { + customElements.define("bridgetown-search-results", this) + } + + constructor () { + super() + this.results = [] + this.snippetLength = 142 + this.displayCollection = false + } + connectedCallback() { super.connectedCallback() this.fetchSearchIndex() diff --git a/lib/bridgetown-quick-search/version.rb b/lib/bridgetown-quick-search/version.rb index 4d87e20..469e3db 100644 --- a/lib/bridgetown-quick-search/version.rb +++ b/lib/bridgetown-quick-search/version.rb @@ -2,6 +2,6 @@ module Bridgetown module QuickSearch - VERSION = "3.0.2" + VERSION = "3.0.3" end end diff --git a/package.json b/package.json index 117a4f4..3b2fe39 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bridgetown-quick-search", - "version": "3.0.2", + "version": "3.0.3", "main": "frontend/dist/index.js", "exports": { ".": "./frontend/dist/index.js",