Skip to content

Commit e2bb872

Browse files
committed
feat: add 100% ESM support
BREAKING CHANGE: no longer shipping ES5 syntax, the new compile target is browsers capable of running ESM natively. The Node.js baseline is still v14.
1 parent e970b07 commit e2bb872

13 files changed

+11493
-11940
lines changed

example/example.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {groqStore, Subscription} from '../src/browser'
1212
attach()
1313
populate()
1414

15-
let subscription: Subscription | undefined
15+
let subscription: Subscription | null | undefined
1616
const dataset = groqStore({
1717
projectId: 'groqstore',
1818
dataset: 'fixture',
@@ -40,7 +40,7 @@ import {groqStore, Subscription} from '../src/browser'
4040
localStorage.setItem('groqStore', queryEl.value)
4141
try {
4242
onResult(await dataset.query(queryEl.value))
43-
} catch (err) {
43+
} catch (err: any) {
4444
onError(err.message || 'Unknown error')
4545
}
4646
}

0 commit comments

Comments
 (0)