Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade: pouchdb-browser, pouchdb-find #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snyk-bot
Copy link

Snyk has created this PR to upgrade multiple dependencies.

馃懐鈥嶁檪 The following dependencies are linked and will therefore be updated together.

鈩癸笍 Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

Name Versions Released on
pouchdb-browser
from 6.3.4 to 6.4.3
4 versions ahead of your current version 4 years ago
on 2018-02-02
pouchdb-find
from 6.3.4 to 6.4.3
4 versions ahead of your current version 4 years ago
on 2018-02-02

The recommended version fixes:

Severity Issue PriorityScore (*) Exploit Maturity
Cross-site Scripting (XSS)
npm:vue:20170829
539/1000
Why? Has a fix available, CVSS 6.5
No Known Exploit
Cross-site Scripting (XSS)
npm:vue:20180802
539/1000
Why? Has a fix available, CVSS 6.5
Proof of Concept
Regular Expression Denial of Service (ReDoS)
npm:vue:20180222
539/1000
Why? Has a fix available, CVSS 6.5
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Release notes
Package name: pouchdb-browser
  • 6.4.3 - 2018-02-02
    No content.
  • 6.4.2 - 2018-01-24

    In this release PouchDB now supports IndexedDB by default in Safari and will drop support for WebSQL in future versions.

    A brief history of WebSQL

    Just over 5 years ago PouchDB got its first support for WebSQL, originally to support Opera WebSQL was able to pick up for the lack of support for IndexedDB in Safari and gave PouchDB the ability to support a wide variety of browsers. Opera gained IndexedDB support from its switch to Blink / Chromium and with WebSQL failing to become a web standard Safari started supporting IndexedDB from its 7.1 release. Initially there were too many bugs in Safari's implementation for PouchDB to use it however after a lot of work from the WebKit devs and a few releases IndexedDB support became stable in Safari and as of this release is now the default storage engine for PouchDB in Safari.

    Switching to IndexedDB vastly reduces the amount of work we need to do to keep PouchDB stable, any new features and improvements relating to storage up until now has meant duplicating the entire code and effort for WebSQL, we will also see a nice reduction in the bundle size.

    Migrating current users

    If you are using PouchDB and expect to want to use new releases then you will need to
    migrate your current users, this release of PouchDB supports both WebSQL and IndexedDB
    in Safari so one solution that may work depending on your circumstances is to
    replicate between them like so:

    function openDB(name, opts) {
    return new Promise(function(resolve, reject) {
    var localdb = new PouchDB(name, opts);
    localdb.info().then(function(info) {

      <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">info</span><span class="pl-kos">.</span><span class="pl-c1">adapter</span> <span class="pl-c1">!==</span> <span class="pl-s">'websql'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
        <span class="pl-k">return</span> <span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-s1">localdb</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
      <span class="pl-kos">}</span>
    
      <span class="pl-k">var</span> <span class="pl-s1">newopts</span> <span class="pl-c1">=</span> <span class="pl-s1">opts</span> <span class="pl-c1">||</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span>
      <span class="pl-s1">newopts</span><span class="pl-kos">.</span><span class="pl-c1">adapter</span> <span class="pl-c1">=</span> <span class="pl-s">'idb'</span><span class="pl-kos">;</span>
    
      <span class="pl-k">var</span> <span class="pl-s1">newdb</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">PouchDB</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">,</span> <span class="pl-s1">opts</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
      <span class="pl-k">var</span> <span class="pl-s1">replicate</span> <span class="pl-c1">=</span> <span class="pl-s1">localdb</span><span class="pl-kos">.</span><span class="pl-c1">replicate</span><span class="pl-kos">.</span><span class="pl-en">to</span><span class="pl-kos">(</span><span class="pl-s1">newdb</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
      <span class="pl-s1">replicate</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
        <span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-s1">newdb</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
      <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span><span class="pl-s1">reject</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span><span class="pl-s1">reject</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    

    });
    }

    More Deprecations

    With PouchDB we aim to keep breaking changes to a minimum which means when we do have a
    breaking change release like the upcoming 7.0 there will usually be a few other changes.
    Currently it looks likely that we will remove our Promise Polyfill and switch to the fetch API for HTTP requests. These arent all certain and you can follow along or join in with the 7.0 release discussion here.

    Other Changes

    • #7019 - Dont crash on empty HTTP requests
    • #7008 - Add Glitch bug helper
    • #6954 - Fix hang when storage quota is exceeded
    • #6958 - Fix PouchDB find with zero values
    • #6971 - Fix allDocs keys and limit < keys.length

    Get in touch

    As always, we welcome feedback from the community and would love to hear what you think of this release as well as PouchDB's future direction. Please don't hesitate to file issues or get in touch. And of course, a big thanks to all of our new and existing contributors!

  • 6.4.1 - 2017-12-18
    No content.
  • 6.4.0 - 2017-12-17
  • 6.3.4 - 2017-07-15
from pouchdb-browser GitHub release notes
Package name: pouchdb-find
  • 6.4.3 - 2018-02-02
    No content.
  • 6.4.2 - 2018-01-24

    In this release PouchDB now supports IndexedDB by default in Safari and will drop support for WebSQL in future versions.

    A brief history of WebSQL

    Just over 5 years ago PouchDB got its first support for WebSQL, originally to support Opera WebSQL was able to pick up for the lack of support for IndexedDB in Safari and gave PouchDB the ability to support a wide variety of browsers. Opera gained IndexedDB support from its switch to Blink / Chromium and with WebSQL failing to become a web standard Safari started supporting IndexedDB from its 7.1 release. Initially there were too many bugs in Safari's implementation for PouchDB to use it however after a lot of work from the WebKit devs and a few releases IndexedDB support became stable in Safari and as of this release is now the default storage engine for PouchDB in Safari.

    Switching to IndexedDB vastly reduces the amount of work we need to do to keep PouchDB stable, any new features and improvements relating to storage up until now has meant duplicating the entire code and effort for WebSQL, we will also see a nice reduction in the bundle size.

    Migrating current users

    If you are using PouchDB and expect to want to use new releases then you will need to
    migrate your current users, this release of PouchDB supports both WebSQL and IndexedDB
    in Safari so one solution that may work depending on your circumstances is to
    replicate between them like so:

    function openDB(name, opts) {
    return new Promise(function(resolve, reject) {
    var localdb = new PouchDB(name, opts);
    localdb.info().then(function(info) {

      <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">info</span><span class="pl-kos">.</span><span class="pl-c1">adapter</span> <span class="pl-c1">!==</span> <span class="pl-s">'websql'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
        <span class="pl-k">return</span> <span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-s1">localdb</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
      <span class="pl-kos">}</span>
    
      <span class="pl-k">var</span> <span class="pl-s1">newopts</span> <span class="pl-c1">=</span> <span class="pl-s1">opts</span> <span class="pl-c1">||</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span>
      <span class="pl-s1">newopts</span><span class="pl-kos">.</span><span class="pl-c1">adapter</span> <span class="pl-c1">=</span> <span class="pl-s">'idb'</span><span class="pl-kos">;</span>
    
      <span class="pl-k">var</span> <span class="pl-s1">newdb</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">PouchDB</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">,</span> <span class="pl-s1">opts</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
      <span class="pl-k">var</span> <span class="pl-s1">replicate</span> <span class="pl-c1">=</span> <span class="pl-s1">localdb</span><span class="pl-kos">.</span><span class="pl-c1">replicate</span><span class="pl-kos">.</span><span class="pl-en">to</span><span class="pl-kos">(</span><span class="pl-s1">newdb</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
      <span class="pl-s1">replicate</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
        <span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-s1">newdb</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
      <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span><span class="pl-s1">reject</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span><span class="pl-s1">reject</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    

    });
    }

    More Deprecations

    With PouchDB we aim to keep breaking changes to a minimum which means when we do have a
    breaking change release like the upcoming 7.0 there will usually be a few other changes.
    Currently it looks likely that we will remove our Promise Polyfill and switch to the fetch API for HTTP requests. These arent all certain and you can follow along or join in with the 7.0 release discussion here.

    Other Changes

    • #7019 - Dont crash on empty HTTP requests
    • #7008 - Add Glitch bug helper
    • #6954 - Fix hang when storage quota is exceeded
    • #6958 - Fix PouchDB find with zero values
    • #6971 - Fix allDocs keys and limit < keys.length

    Get in touch

    As always, we welcome feedback from the community and would love to hear what you think of this release as well as PouchDB's future direction. Please don't hesitate to file issues or get in touch. And of course, a big thanks to all of our new and existing contributors!

  • 6.4.1 - 2017-12-18
    No content.
  • 6.4.0 - 2017-12-17
  • 6.3.4 - 2017-07-15
from pouchdb-find GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

馃 View latest project report

馃洜 Adjust upgrade PR settings

馃敃 Ignore this dependency or unsubscribe from future upgrade PRs

Snyk has created this PR to upgrade:
  - pouchdb-browser from 6.3.4 to 6.4.3.
    See this package in npm: https://www.npmjs.com/package/pouchdb-browser
  - pouchdb-find from 6.3.4 to 6.4.3.
    See this package in npm: https://www.npmjs.com/package/pouchdb-find

See this project in Snyk:
https://app.snyk.io/org/phearzero/project/f7f652e9-3c1e-4ad7-92d8-86998c165f0e?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant