worker-pouch
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -372,3 +372,2 @@ 'use strict'; | ||
api.emit('destroyed'); | ||
api.constructor.emit('destroyed', api._name); | ||
callback(null, res); | ||
@@ -375,0 +374,0 @@ }); |
'use strict'; | ||
var Promise = require('pouchdb/extras/promise'); | ||
var Promise = require('pouchdb-promise'); | ||
var createWorker = require('./create-worker'); | ||
@@ -5,0 +5,0 @@ |
'use strict'; | ||
var Promise = require('pouchdb/extras/promise'); | ||
var Promise = require('pouchdb-promise'); | ||
@@ -14,3 +14,2 @@ exports.lastIndexOf = function lastIndexOf(str, char) { | ||
// TODO: move to pouchdb/extras | ||
exports.clone = require('./pouchdb-clone'); | ||
@@ -17,0 +16,0 @@ |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var Promise = require('pouchdb/extras/promise'); | ||
var Promise = require('pouchdb-promise'); | ||
var errors = require('../shared/errors'); | ||
@@ -8,0 +8,0 @@ var workerUtils = require('./utils'); |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var registerWorkerPouch = require('./core'); | ||
var PouchDB = require('pouchdb'); | ||
var PouchDB = require('./pouchdb-idb-only'); | ||
registerWorkerPouch(self, PouchDB); |
{ | ||
"name": "worker-pouch", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "PouchDB over a web worker", | ||
@@ -44,5 +44,9 @@ "main": "lib/index.js", | ||
"js-extend": "^1.0.1", | ||
"lie": "^2.6.0", | ||
"pouchdb": "^5.0.0", | ||
"pouchdb-binary-util": "^1.0.0" | ||
"pouchdb-adapter-http": "^5.4.4", | ||
"pouchdb-adapter-idb": "^5.4.4", | ||
"pouchdb-binary-util": "^1.0.0", | ||
"pouchdb-core": "^5.4.4", | ||
"pouchdb-mapreduce": "^5.4.4", | ||
"pouchdb-promise": "5.4.4", | ||
"pouchdb-replication": "^5.4.4" | ||
}, | ||
@@ -64,3 +68,6 @@ "devDependencies": { | ||
"phantomjs-prebuilt": "^2.1.7", | ||
"pouchdb-browser": "^5.4.4", | ||
"pouchdb-http-proxy": "^0.10.4", | ||
"pouchdb-legacy-utils": "^1.0.0", | ||
"pouchdb-memory": "^1.0.0", | ||
"request": "^2.36.0", | ||
@@ -67,0 +74,0 @@ "run-scripts": "^0.4.0", |
@@ -9,3 +9,3 @@ worker-pouch [![Build Status](https://travis-ci.org/nolanlawson/worker-pouch.svg)](https://travis-ci.org/nolanlawson/worker-pouch) | ||
Adapter plugin to use PouchDB over [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Worker) or [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API). Transparently proxies all PouchDB API requests to the Worker, so that the most expensive database operations are run in a separate thread. | ||
Adapter plugin to use PouchDB over [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Worker) or [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API). Transparently proxies all PouchDB API requests to the worker, so that the most expensive database operations are run in a separate thread. | ||
@@ -26,2 +26,3 @@ Basically, worker-pouch allows you use the PouchDB API like you normally would, but your UI will suffer fewer hiccups, because any blocking operations (such as IndexedDB or checksumming) are run inside of the worker. | ||
* [FAQs](#faqs) | ||
* [Changelog](#changelog) | ||
@@ -75,6 +76,4 @@ | ||
Unfortunately, creating workers via Blob URLs is not supported in all browsers. In particular, IE, Edge, Safari, and iOS are not supported. Luckily, Firefox and Chrome are the browsers that [benefit the most from web workers](http://nolanlawson.com/2015/09/29/indexeddb-websql-localstorage-what-blocks-the-dom/). There is also an API to [detect browser support](#detecting-browser-support). | ||
Unfortunately, creating workers via Blob URLs is not supported in all browsers. In particular, IE, Edge, Safari, and iOS are not supported. Luckily, Firefox and Chrome are the browsers that [benefit the most from web workers](http://nolanlawson.com/2015/09/29/indexeddb-websql-localstorage-what-blocks-the-dom/). There is also an API to [detect browser support](#fallback-for-unsupported-browsers), which you must use if you would like to support browsers other than Firefox and Chrome. | ||
In Easy Mode, you will need to use the [isSupportedBrowser()](#fallback-for-unsupported-browsers) API if you would like to support browsers other than Firefox and Chrome. | ||
### Custom Mode | ||
@@ -248,2 +247,10 @@ | ||
Changelog | ||
----- | ||
- 1.1.0 | ||
- Adds the Custom Mode API | ||
- 1.0.0 | ||
- Initial release | ||
Building | ||
@@ -250,0 +257,0 @@ ---- |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
23
287
558465
12
26
4337
+ Addedpouchdb-adapter-http@^5.4.4
+ Addedpouchdb-adapter-idb@^5.4.4
+ Addedpouchdb-core@^5.4.4
+ Addedpouchdb-mapreduce@^5.4.4
+ Addedpouchdb-promise@5.4.4
+ Addedpouchdb-replication@^5.4.4
+ Addedlie@3.3.0(transitive)
+ Addedpouchdb-adapter-http@5.4.5(transitive)
+ Addedpouchdb-adapter-idb@5.4.5(transitive)
+ Addedpouchdb-adapter-utils@5.4.5(transitive)
+ Addedpouchdb-ajax@5.4.5(transitive)
+ Addedpouchdb-binary-utils@5.4.5(transitive)
+ Addedpouchdb-checkpointer@5.4.5(transitive)
+ Addedpouchdb-core@5.4.5(transitive)
+ Addedpouchdb-errors@5.4.5(transitive)
+ Addedpouchdb-generate-replication-id@5.4.5(transitive)
+ Addedpouchdb-json@5.4.5(transitive)
+ Addedpouchdb-mapreduce@5.4.5(transitive)
+ Addedpouchdb-mapreduce-utils@5.4.5(transitive)
+ Addedpouchdb-md5@5.4.5(transitive)
+ Addedpouchdb-merge@5.4.5(transitive)
+ Addedpouchdb-promise@5.4.45.4.5(transitive)
+ Addedpouchdb-replication@5.4.5(transitive)
+ Addedpouchdb-utils@5.4.5(transitive)
- Removedlie@^2.6.0
- Removedpouchdb@^5.0.0
- Removedabbrev@1.1.1(transitive)
- Removedabstract-leveldown@0.12.32.4.12.6.32.7.2(transitive)
- Removedafter@0.8.2(transitive)
- Removedajv@6.12.6(transitive)
- Removedansi@0.3.1(transitive)
- Removedare-we-there-yet@1.1.7(transitive)
- Removedarray-index@1.0.0(transitive)
- Removedasync@1.5.2(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedbindings@1.2.1(transitive)
- Removedbl@1.2.33.0.1(transitive)
- Removedblock-stream@0.0.9(transitive)
- Removedbuffer-alloc@1.2.0(transitive)
- Removedbuffer-alloc-unsafe@1.1.0(transitive)
- Removedbuffer-fill@1.0.0(transitive)
- Removedbuffer-from@0.1.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedchownr@1.1.4(transitive)
- Removedd@1.0.2(transitive)
- Removedd64@1.0.0(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddeferred-leveldown@1.2.2(transitive)
- Removeddelegates@1.0.0(transitive)
- Removedduplexer2@0.0.2(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedend-stream@0.1.0(transitive)
- Removederrno@0.1.40.1.8(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedexecspawn@1.0.1(transitive)
- Removedexpand-template@1.1.1(transitive)
- Removedext@1.7.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-future@1.0.2(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedform-data@2.3.3(transitive)
- Removedfruitdown@1.0.2(transitive)
- Removedfs-constants@1.0.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfstream@1.0.12(transitive)
- Removedfunctional-red-black-tree@1.0.1(transitive)
- Removedgauge@1.2.7(transitive)
- Removedghreleases@1.0.7(transitive)
- Removedghrepos@2.1.0(transitive)
- Removedghutils@3.2.6(transitive)
- Removedgithub-from-package@0.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhas-localstorage@1.0.1(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedhumble-localstorage@1.4.2(transitive)
- Removedhyperquest@2.1.3(transitive)
- Removedimmediate@3.3.0(transitive)
- Removedini@1.3.8(transitive)
- Removedisexe@2.0.0(transitive)
- Removedjs-extend@0.0.1(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjsonist@2.1.2(transitive)
- Removedlevel-codec@6.1.0(transitive)
- Removedlevel-errors@1.0.5(transitive)
- Removedlevel-iterator-stream@1.3.1(transitive)
- Removedlevel-write-stream@1.0.0(transitive)
- Removedleveldown@1.4.6(transitive)
- Removedlevelup@1.3.2(transitive)
- Removedlie@2.9.1(transitive)
- Removedlocalstorage-down@0.6.6(transitive)
- Removedlocalstorage-memory@1.0.3(transitive)
- Removedlodash.pad@4.5.1(transitive)
- Removedlodash.padend@4.6.1(transitive)
- Removedlodash.padstart@4.6.1(transitive)
- Removedltgt@1.0.22.1.2(transitive)
- Removedmemdown@1.1.2(transitive)
- Removednan@2.3.52.7.0(transitive)
- Removednext-tick@1.1.0(transitive)
- Removednode-gyp@3.8.0(transitive)
- Removednode-ninja@1.0.2(transitive)
- Removednoop-fn@1.0.0(transitive)
- Removednoop-logger@0.1.1(transitive)
- Removednopt@3.0.6(transitive)
- Removednpmlog@2.0.4(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)
- Removedpath-array@1.0.1(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpouchdb@5.4.5(transitive)
- Removedprebuild@4.5.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedprr@0.0.01.0.1(transitive)
- Removedpsl@1.15.0(transitive)
- Removedpull-core@1.0.0(transitive)
- Removedpull-stream@2.21.0(transitive)
- Removedpump@1.0.3(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrc@1.2.8(transitive)
- Removedreadable-stream@0.0.41.0.331.1.142.3.83.6.2(transitive)
- Removedrequest@2.88.2(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsafe-buffer@5.1.25.2.1(transitive)
- Removedsemver@5.1.15.3.0(transitive)
- Removedsimple-get@1.4.3(transitive)
- Removedsimple-mime@0.1.0(transitive)
- Removedsqlite3@3.1.13(transitive)
- Removedstring_decoder@1.1.11.3.0(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedsublevel-pouchdb@1.0.1(transitive)
- Removedtar@2.2.2(transitive)
- Removedtar-fs@1.16.3(transitive)
- Removedtar-stream@1.6.2(transitive)
- Removedthrough2@2.0.1(transitive)
- Removedtiny-queue@0.2.00.2.1(transitive)
- Removedto-buffer@1.1.1(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtype@2.7.3(transitive)
- Removedunreachable-branch-transform@0.2.3(transitive)
- Removedunzip-response@1.0.2(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedurl-template@2.0.8(transitive)
- Removedutil-extend@1.0.3(transitive)
- Removeduuid@3.4.0(transitive)
- Removedwebsql@0.4.4(transitive)
- Removedwhich@1.3.1(transitive)
- Removedwrite-stream@0.4.3(transitive)
- Removedxtend@3.0.0(transitive)