Skip to content

Commit

Permalink
v8go package moved from snej to couchbasedeps
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Jul 11, 2023
1 parent 5ee3866 commit c0732b0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 12 deletions.
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/couchbase/sg-bucket
go 1.19

require (
github.com/couchbasedeps/v8go v1.7.5-0.20230711211145-c847898e2ac7
github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f
github.com/snej/v8go v1.7.3
github.com/stretchr/testify v1.7.1
golang.org/x/text v0.3.7
gopkg.in/couchbase/gocb.v1 v1.6.7
Expand All @@ -25,5 +25,4 @@ require (
gopkg.in/couchbaselabs/jsonx.v1 v1.0.1 // indirect
gopkg.in/sourcemap.v1 v1.0.5 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
rogchap.com/v8go v0.8.0 // indirect
)
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/couchbasedeps/v8go v1.7.5-0.20230711211145-c847898e2ac7 h1:n1TK4ZD3witbgEefHtSN5+0C214BlFfPZ9C+Tyaig+4=
github.com/couchbasedeps/v8go v1.7.5-0.20230711211145-c847898e2ac7/go.mod h1:idYCHzuZs5u+Yv9mYwhOBheFP82+7arI2Y8xVeU2Ttk=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
Expand All @@ -14,8 +16,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f h1:a7clxaGmmqtdNTXyvrp/lVO/Gnkzlhc/+dLs5v965GM=
github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f/go.mod h1:/mK7FZ3mFYEn9zvNPhpngTyatyehSwte5bJZ4ehL5Xw=
github.com/snej/v8go v1.7.3 h1:skliM+LRvRdLKwqJK4I+1BCQy4jTZs0u37R6b7aEUaU=
github.com/snej/v8go v1.7.3/go.mod h1:s7IVrqyNoVfwYhndECq3XJ+/y0uq/JUH0/ECsC3k/UQ=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
Expand Down Expand Up @@ -44,5 +44,3 @@ gopkg.in/sourcemap.v1 v1.0.5 h1:inv58fC9f9J3TK2Y2R1NPntXEn3/wjWHkonhIUODNTI=
gopkg.in/sourcemap.v1 v1.0.5/go.mod h1:2RlvNNSMglmRrcvhfuzp4hQHwOtjxlbjX7UPY/GXb78=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
rogchap.com/v8go v0.8.0 h1:/crDEiga68kOtbIqw3K9Rt9OztYz0LhAPHm2e3wK7Q4=
rogchap.com/v8go v0.8.0/go.mod h1:MxgP3pL2MW4dpme/72QRs8sgNMmM0pRc8DPhcuLWPAs=
2 changes: 1 addition & 1 deletion js/js_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"testing"
"time"

"github.com/snej/v8go"
"github.com/couchbasedeps/v8go"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion js/v8_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"strings"
"time"

v8 "github.com/snej/v8go" // Docs: https://pkg.go.dev/github.com/snej/v8go
v8 "github.com/couchbasedeps/v8go" // Docs: https://pkg.go.dev/github.com/couchbasedeps/v8go
)

type V8Runner struct {
Expand Down
2 changes: 1 addition & 1 deletion js/v8_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package js
import (
"fmt"

v8 "github.com/snej/v8go"
v8 "github.com/couchbasedeps/v8go"
)

// A V8Template manages a Service's initial JS runtime environment -- its script code, main function
Expand Down
2 changes: 1 addition & 1 deletion js/v8_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"math"

v8 "github.com/snej/v8go"
v8 "github.com/couchbasedeps/v8go"
)

// CONVERTING V8 VALUES BACK TO GO:
Expand Down
4 changes: 2 additions & 2 deletions js/v8_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"sync"
"time"

v8 "github.com/snej/v8go"
v8 "github.com/couchbasedeps/v8go"
)

// v8go docs: https://pkg.go.dev/github.com/snej/v8go
// v8go docs: https://pkg.go.dev/github.com/couchbasedeps/v8go
// General V8 API docs: https://v8.dev/docs/embed

type v8VM struct {
Expand Down

0 comments on commit c0732b0

Please sign in to comment.