Skip to content

Commit 0c52f10

Browse files
committedFeb 16, 2021
Rewrite fuzzy-phrase bindings to support neon 0.7
1 parent 545d416 commit 0c52f10

File tree

8 files changed

+918
-860
lines changed

8 files changed

+918
-860
lines changed
 

‎index.js

+6
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ addon.GridStore.prototype.keys = function() {
77
return out;
88
}
99

10+
addon.ENDING_TYPE = {
11+
nonPrefix: 0,
12+
anyPrefix: 1,
13+
wordBoundaryPrefix: 2,
14+
}
15+
1016
module.exports = addon;

‎native/Cargo.lock

+99-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎native/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ owning_ref = "0.4"
2424
fixedbitset = "0.3.0"
2525
rayon = "1.3.0"
2626
carmen-core = { path = "../" }
27+
fuzzy-phrase = { git = "https://github.com/mapbox/fuzzy-phrase", rev = "388e417d09f4b40f052dcf59a4a98b767c41799c" }

‎native/src/fuzzy_phrase.rs

+207-265
Large diffs are not rendered by default.

‎native/src/gridstore.rs

+595
Large diffs are not rendered by default.

‎native/src/lib.rs

+8-592
Large diffs are not rendered by default.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@mapbox/cloudfriend": "^1.9.1",
2222
"codecov": "^3.3.0",
2323
"d3-queue": "^3.0.7",
24-
"neon-cli": "^0.2.0",
24+
"neon-cli": "^0.7.0",
2525
"nyc": "^14.0.0",
2626
"tape": "^4.10.2"
2727
},

‎tests/bindings/fuzzy_phrase.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const tape = require('tape');
44
const tmp = require('tmp');
55
const rimraf = require('rimraf').sync;
66
const fs = require('fs');
7-
const fuzzy = require('../lib');
7+
const fuzzy = require('../../');
88

99
tape('build FuzzyPhraseSetBuilder', (t) => {
1010
const tmpDir = tmp.dirSync();

0 commit comments

Comments
 (0)
Please sign in to comment.