Update rand requirement from 0.7 to 0.8 and getrandom from 0.1 to 0.2

pull/70/head
dependabot[bot] 5 years ago committed by Tpt
parent 7aca89016d
commit eb5c19405a
  1. 6
      js/test/store.js
  2. 4
      lib/Cargo.toml

@ -77,6 +77,12 @@ describe('MemoryStore', function () {
const results = store.query('SELECT (YEAR(NOW()) AS ?y) WHERE {}') const results = store.query('SELECT (YEAR(NOW()) AS ?y) WHERE {}')
assert.strictEqual(1, results.length) assert.strictEqual(1, results.length)
}) })
it('SELECT with RAND()', function () {
const store = new MemoryStore([dataFactory.triple(ex, ex, ex)])
const results = store.query('SELECT (RAND() AS ?y) WHERE {}')
assert.strictEqual(1, results.length)
})
}) })
describe('#update()', function () { describe('#update()', function () {

@ -24,7 +24,7 @@ http_client = ["httparse", "native-tls"]
rocksdb = { version = "0.15", optional = true } rocksdb = { version = "0.15", optional = true }
sled = { version = "0.34", optional = true } sled = { version = "0.34", optional = true }
quick-xml = "0.20" quick-xml = "0.20"
rand = "0.7" rand = "0.8"
md-5 = "0.9" md-5 = "0.9"
sha-1 = "0.9" sha-1 = "0.9"
sha2 = "0.9" sha2 = "0.9"
@ -47,7 +47,7 @@ native-tls = { version = "0.2", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies] [target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3" js-sys = "0.3"
getrandom = {version="0.1", features=["wasm-bindgen"]} getrandom = {version="0.2", features=["js"]}
[dev-dependencies] [dev-dependencies]
rayon = "1" rayon = "1"

Loading…
Cancel
Save