hack-pad / go-indexeddb

An IndexedDB driver for Go code compiled to WebAssembly.
Apache License 2.0
27 stars 4 forks source link

updates required for go 1.18 #2

Closed mlctrez closed 2 years ago

mlctrez commented 2 years ago

This PR contains the changes required to allow go-indexeddb to work with go 1.18

https://github.com/golang/go/issues/44006 removed js.Wrapper KeyRange type is now passed as keyRange.Value in Calls

js.ValueOf now appears to be a bit more strict on types Various types like CursorDirection are now passed using .String() to Calls

chux0519 commented 2 years ago

@mlctrez Saved my day, I also encountered the same problem and guide me to the same issue. thanks

JohnStarich commented 2 years ago

Merged via #3

JohnStarich commented 2 years ago

Released in v0.2.0 🎉 If you hit any issues, let me know!