Skip to content

Commit

Permalink
Fix incorrect static / constructor syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite committed Jul 30, 2024
1 parent 08b72dc commit 58f7223
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
22 changes: 11 additions & 11 deletions frontend/javascript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,13 @@ 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 },
snippetLength: { type: Number },
displayCollection: { type: Boolean },
}

constructor () {
super()
this.results = []
this.snippetLength = 142
this.displayCollection = false
}

static styles = css`
:host {
display: block;
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion lib/bridgetown-quick-search/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Bridgetown
module QuickSearch
VERSION = "3.0.2"
VERSION = "3.0.3"
end
end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 58f7223

Please sign in to comment.