Commit Graph

144 Commits

Author SHA1 Message Date
Erik Arvidsson 94060fc00a Change to use @attic/noms as the npm module name 2016-03-18 11:18:47 -07:00
Erik Arvidsson 889d8bb9b3 JS: Resurrect copy-flow-files
Also add npm scripts to compile src to dist
2016-03-18 10:54:14 -07:00
Erik Arvidsson e767ba53ae JS: Fix issue with readBatch
The method name got a bit mangled after the CR churn.
2016-03-18 10:08:46 -07:00
Erik Arvidsson 7cf81b6db9 JS: Change the position of the type param to newList etc
Fixes #1090
2016-03-17 14:02:42 -07:00
Erik Arvidsson 60534360b3 JS: Rename files to use hyphen instead of underscore 2016-03-17 13:25:19 -07:00
Erik Arvidsson 9ac02981d1 JS: Implement blob writing 2016-03-17 11:31:07 -07:00
Benjamin Kalman aba809b81a JS: Implement NomsBlob
This does not yet support creating a chunked Blob but it can decode
one that it got from a ChunkStore.

Partial fix for #798
2016-03-16 12:38:13 -07:00
Rafael Weinstein 5a4fab4448 Add HttpStore.put 2016-03-15 16:24:06 -07:00
Rafael Weinstein 6f92539bff Write correct type for unwritten child sequences 2016-03-14 13:38:56 -07:00
Rafael Weinstein dff5b3471c DataStore.commit + tests 2016-03-10 19:52:42 -08:00
Rafael Weinstein 5b3eb45f24 propogate cs 2016-03-10 16:46:40 -08:00
Rafael Weinstein 697066598a write unwritten p-tree chunks 2016-03-10 16:28:58 -08:00
Benjamin Kalman 1b3fdbf380 Add Ref.maybeParse. 2016-03-04 13:37:56 -08:00
Benjamin Kalman 53e468a919 Update flow to 0.22.1. 2016-03-04 13:34:56 -08:00
Erik Arvidsson 5ca41751f5 js: Add asserts for the params to Struct constructor 2016-03-04 12:59:32 -08:00
Benjamin Kalman e214bddb89 JS: Correctly check for null key in ordered sequences. 2016-03-01 17:31:54 -08:00
Benjamin Kalman 73aacfd7de Support parallel iteration with AsyncIterator.
There is a bug at the moment when you try to resolve more than 1 Promise
returned from next() at the same time, e.g.,

const list = new NomsList([1, 2, 3]);
const iter = list.iterator();
const n1 = iter.next();
const n2 = iter.next();
console.log(Promise.all(n1, n2));

It will not print "[1, 2]" as you'd expect, but instead "[1, 1]". This
was caused by an artificial race condition in the async/await pattern
used in the AsyncIterator next() implementations.
2016-02-19 17:15:30 -08:00
Rafael Weinstein 2e33f7fc98 Add List.toJS 2016-02-19 11:06:38 -08:00
Rafael Weinstein df0d3ffa1a Add Map/Set.last 2016-02-16 16:55:05 -08:00
Erik Arvidsson 5354b087ae JS: Export kindToString as a function 2016-02-12 16:59:51 -08:00
Erik Arvidsson 18c01afa2c Export NomsKind from noms 2016-02-12 14:54:47 -08:00
Rafael Weinstein bed627a67d (JS) Implement Type.describe() 2016-02-10 14:57:42 -08:00
Erik Arvidsson c9d4a573aa JS: Add no-fallthrough to eslint to prevent case fallthroughs
Fixes #988
2016-02-10 13:58:18 -08:00
Rafael Weinstein 1e668afae2 (JS) Add & export remaining primitive types 2016-02-10 11:50:28 -08:00
Rafael Weinstein 8e0acd6464 (JS) export stringType & boolType from noms (TBR=arv) 2016-02-10 11:15:14 -08:00
Rafael Weinstein 3a67b52aad Merge pull request #983 from rafael-atticlabs/diffLoadLimit
Add load limit to indexed sequence diff
2016-02-09 15:03:50 -08:00
Aaron Boodman 7e4d15d7fc webpack: return non-zero exit code on failure 2016-02-09 14:44:51 -08:00
Rafael Weinstein 44e883575f Add load limit to indexed sequence diff 2016-02-09 13:07:29 -08:00
Rafael Weinstein d37b9c941d Merge pull request #980 from rafael-atticlabs/edExport
Export some edit_distance symbols
2016-02-08 16:46:29 -08:00
Rafael Weinstein cda476c335 Export some edit_distance symbols 2016-02-08 16:45:58 -08:00
Dan Willhite 8e94bbc9b5 Merge HttpStore's fetchOptions with caller-supplied options. 2016-02-08 16:37:45 -08:00
Rafael Weinstein 259137a18e Add support for NomsList.diff 2016-02-08 10:19:57 -08:00
Rafael Weinstein fbd5ece3c7 Edit Distance 4 2016-02-08 10:17:31 -08:00
Rafael Weinstein e8362bdbb2 Move ?ChunkStore from Collection to Sequence 2016-02-07 20:20:12 -08:00
Rafael Weinstein 43b5eff1e8 (JS) Edit distance doesnt require arrays 2016-02-05 11:27:31 -08:00
Dan Willhite 484fcf8fab Merge pull request #961 from willhite/work
Add fetchOptions parameter to js implementation of HttpStore.
2016-02-05 10:45:27 -08:00
Rafael Weinstein d761a00666 (JS) Minor cleanup to edit_distance.js 2016-02-05 10:33:14 -08:00
Dan Willhite d2c7cd3719 Add fetchOptions parameter to js implementation of HttpStore. 2016-02-05 10:17:55 -08:00
Rafael Weinstein 1db3de5b28 (JS) Add edit distance calculations 2016-02-04 17:29:09 -08:00
Rafael Weinstein af7f94be1c Add Read-only datastore 2016-02-04 15:18:29 -08:00
Rafael Weinstein 00cb0ede28 add support for encoding strings & boolean as primitive values 2016-02-03 20:27:59 -08:00
Erik Arvidsson ef00689c47 JS: Add a CacheStore
This is a read through cache that caches successful get and has on
the underlying store.
2016-02-03 11:46:51 -08:00
Rafael Weinstein f610db0c93 (JS) Collections dont need ChunkStore on creation 2016-02-03 11:15:03 -08:00
Rafael Weinstein b8c399417f Reduce size of test collections 2016-02-03 10:19:57 -08:00
Rafael Weinstein a48ba9f24a (JS) Add RemoteStore 2016-02-03 09:52:23 -08:00
Rafael Weinstein e0d9b0fad6 (JS) export newMap, newList, newSet 2016-02-03 08:13:00 -08:00
Rafael Weinstein 4d77492c46 JS Chunking 2016-02-02 16:13:54 -08:00
Rafael Weinstein 6b257fde4d (JS) Add BuzHash 2016-02-02 16:02:25 -08:00
Erik Arvidsson 7d536e1fa4 JS: Add return method to AsyncIterator
This follows ES6 and it allows exiting/closing an iterator cleanly.
2016-02-02 14:12:44 -08:00
Benjamin Kalman 06dc8325b5 Update package.json versions. 2016-02-02 11:18:31 -08:00