From eb5c19405acaaedd654e943583e6e81b00ccd9bb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Dec 2020 06:41:06 +0000 Subject: [PATCH] Update rand requirement from 0.7 to 0.8 and getrandom from 0.1 to 0.2 --- js/test/store.js | 6 ++++++ lib/Cargo.toml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/js/test/store.js b/js/test/store.js index aca406a7..9bfe13fc 100644 --- a/js/test/store.js +++ b/js/test/store.js @@ -77,6 +77,12 @@ describe('MemoryStore', function () { const results = store.query('SELECT (YEAR(NOW()) AS ?y) WHERE {}') 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 () { diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 7e2b5a86..789e3d53 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -24,7 +24,7 @@ http_client = ["httparse", "native-tls"] rocksdb = { version = "0.15", optional = true } sled = { version = "0.34", optional = true } quick-xml = "0.20" -rand = "0.7" +rand = "0.8" md-5 = "0.9" sha-1 = "0.9" sha2 = "0.9" @@ -47,7 +47,7 @@ native-tls = { version = "0.2", optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] js-sys = "0.3" -getrandom = {version="0.1", features=["wasm-bindgen"]} +getrandom = {version="0.2", features=["js"]} [dev-dependencies] rayon = "1"