:boom: Vue plugin for work with local storage, session storage and memory storage from Vue context

Overview

vue-ls logo

vue-ls

Greenkeeper badge

Vue plugin for work with local storage, session storage and memory storage from Vue context

NPM

jsFiddle Example

Vue 1.x

Vue 2.x

Install

CDN

Recommended: https://unpkg.com/vue-ls, which will reflect the latest version as soon as it is published to npm. You can also browse the source of the npm package at https://unpkg.com/vue-ls/

Also available on jsDelivr or cdnjs, but these two services take some time to sync so the latest release may not be available yet.

NPM

npm install vue-ls --save

Yarn

yarn add vue-ls

Bower

bower install vue-ls --save

Development Setup

# install dependencies
npm install

# build dist files
npm run build

Usage

Vue storage API.

import Storage from 'vue-ls';

options = {
  namespace: 'vuejs__', // key prefix
  name: 'ls', // name variable Vue.[ls] or this.[$ls],
  storage: 'local', // storage name session, local, memory
};

Vue.use(Storage, options);

//or
//Vue.use(Storage);

new Vue({
    el: '#app',
    mounted: function() {
        Vue.ls.set('foo', 'boo');
        //Set expire for item
        Vue.ls.set('foo', 'boo', 60 * 60 * 1000); //expiry 1 hour
        Vue.ls.get('foo');
        Vue.ls.get('boo', 10); //if not set boo returned default 10
        
        let callback = (val, oldVal, uri) => {
          console.log('localStorage change', val);
        } 
        
        Vue.ls.on('foo', callback) //watch change foo key and triggered callback
        Vue.ls.off('foo', callback) //unwatch
        
        Vue.ls.remove('foo');
    }
});

Global

  • Vue.ls

Context

  • this.$ls

API

Vue.ls.get(name, def)

Returns value under name in storage. Internally parses the value from JSON before returning it.

  • def: default null, returned if not set name.

Vue.ls.set(name, value, expire)

Persists value under name in storage. Internally converts the value to JSON.

  • expire: default null, life time in milliseconds name

Vue.ls.remove(name)

Removes name from storage. Returns true if the property was successfully deleted, and false otherwise.

Vue.ls.clear()

Clears storage.

Vue.ls.on(name, callback)

Listen for changes persisted against name on other tabs. Triggers callback when a change occurs, passing the following arguments.

  • newValue: the current value for name in storage, parsed from the persisted JSON
  • oldValue: the old value for name in storage, parsed from the persisted JSON
  • url: the url for the tab where the modification came from

Vue.ls.off(name, callback)

Removes a listener previously attached with Vue.ls.on(name, callback).

Testing

  • npm run test - run unit test
  • npm run test:browserstack - run browser test
    • npm run test:browserstack:chrome
    • npm run test:browserstack:ie
    • npm run test:browserstack:edge
    • npm run test:browserstack:firefox
    • npm run test:browserstack:safari
  • npm run test:chrome - run browser test in chrome

Testing Supported By

Note

Some browsers don't support the storage event, and most of the browsers that do support it will only call it when the storage is changed by a different window. So, open your page up in two windows. Click the links in one window and you will probably see the event in the other.

The assumption is that your page will already know all interactions with localStorage in its own window and only needs notification when a different window changes things. This, of course, is a foolish assumption. But.

Other my Vue JS plugins

Project Status Description
vue-gallery npm VueJS responsive and customizable image and video gallery
vue-popper npm VueJS popover component based on popper.js

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

License

FOSSA Status

MIT © Igor Ognichenko

Comments
  • Update rollup to the latest version 🚀

    Update rollup to the latest version 🚀


    ☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


    The devDependency rollup was updated from 1.32.1 to 2.0.0.

    This version is not covered by your current version range.

    If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


    Publisher: lukastaegert License: MIT

    Find out more about this release.


    FAQ and help

    There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


    Your Greenkeeper bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 40
  • An in-range update of rollup is breaking the build 🚨

    An in-range update of rollup is breaking the build 🚨

    The devDependency rollup was updated from 1.14.2 to 1.14.3.

    🚨 View failing branch.

    This version is covered by your current version range and after updating it in your project the build failed.

    rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

    Status Details
    • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

    Release Notes for v1.14.3

    2019-06-06

    Bug Fixes

    • Generate correct external imports when importing from a directory that would be above the root of the current working directory (#2902)

    Pull Requests

    Commits

    The new version differs by 4 commits.

    See the full diff

    FAQ and help

    There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


    Your Greenkeeper Bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 19
  • Update ava to the latest version 🚀

    Update ava to the latest version 🚀

    The devDependency ava was updated from 2.4.0 to 3.0.0.

    This version is not covered by your current version range.

    If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


    Publisher: novemberborn License: MIT

    Release Notes for 3.0.0

    We're proud to introduce AVA 3! 🚀

    When we began AVA, JavaScript was very different. Most syntax you find familiar today was not supported by Node.js. Instead we relied on Babel to support that syntax before it made its way to Node.js itself.

    These days most new stage-4 syntax is adopted quickly. It's often not necessary to transpile anything. Therefore we're removing our built-in Babel support from AVA itself.

    Without Babel you'll have to resort to using require() functions in your JavaScript files. But, you say, Node.js 13 supports ECMAScript Modules!

    Well, we're getting there. For a start, AVA now also looks for .cjs files. And .mjs files are recognized too, but can't be loaded just yet. This also impacts ava.config.js files. If you'd like to help out delivering full .mjs support check out the issues in the ESM support project.

    Removing Babel allowed us to simplify how test files are selected. Likely non-test files, inside "fixture" or "helper" directories are ignored. The same for files that are inside an underscore-prefixed directory. We've made some other breaking changes in this area so please do read the full release notes.

    You can again pass glob patterns on the CLI. However these now filter the test files that AVA already selected based on the configuration. In other words you can't run files that wouldn't be run by invoking npx ava.

    AVA now interrupts your tests if there's no progress for 10 seconds. Use the timeout configuration or --timeout CLI option to change this.

    New features

    Built-in debug mode

    You can now debug individual test files using the V8 Inspector:

    npx ava debug test.js

    Connect to the debugger with Chrome DevTools. Or set up a debugger in VSCode.

    Configurable Node.js arguments

    You can now configure the arguments passed to Node.js itself when AVA starts its worker processes. Use the nodeArguments configuration or combine with the --node-arguments CLI option.

    All breaking changes

    Supported Node.js versions

    We now support Node.js 10, 12 and 13. The minimal versions are 10.18.0, 12.14.0 and 13.5.0 respectively.

    Removing Babel

    Utilize Babel with AVA by installing our @ava/babel package and then enabling Babel by setting babel: true in the AVA configuration. Having this as a separate package means it can evolve independently.

    The compileEnhancements setting has been moved into the babel configuration. Consequently, the t.assert() assertion will only print its detailed information when you use Babel. And we won't be able to catch typical mistakes with t.throws() as well as we could before.

    The ava/stage-4 preset is now available from @ava/babel/stage-4. Our old @ava/babel-preset-transform-test-files and @ava/babel-preset-stage-4 packages are no longer maintained and not installed with AVA itself.

    ECMAScript Module Support

    AVA now also looks for .cjs and .mjs test files. That said, .mjs files cannot be loaded just yet.

    Also, when you add "type": "module" , AVA would really like to treat .js files as ECMAScript Modules, but can't just yet.

    Similarly,ava.config.cjs configuration files are now supported. ava.config.mjs files not just yet.

    With AVA 2, we loaded ava.config.js files using the esm package. To avoid confusion between the different module formats we now only support export default statements. No import, no __filename. Configuration files that have dependencies should be written as a .cjs file for now.

    Configuration files can only have .cjs, .js and .mjs extensions.

    The remaining work is tracked in the ESM support project.

    File selection

    When you use the default configuration AVA will no longer select files matching the following glob patterns:

    • **/__tests__/**/__helper__/**/*
    • **/__tests__/**/__helpers__/**/*
    • **/__tests__/**/__fixture__/**/*
    • **/__tests__/**/__fixtures__/**/*
    • **/test/**/helper/**/*
    • **/test/**/helpers/**/*
    • **/test/**/fixture/**/*
    • **/test/**/fixtures/**/*
    • **/tests/**/helper/**/*
    • **/tests/**/helpers/**/*
    • **/tests/**/fixture/**/*
    • **/tests/**/fixtures/**/*

    Additionally, when a file has a parent directory that starts with a single underscore, it can never be a test file.

    test.js files are only selected if they're next to the package.json file, or inside top-level src and source directories.

    We've removed the configuration of helpers. Previously, files selected by the helpers glob patterns were never considered test files. Now that this configuration is no longer supported you'll need to ensure the files patterns exclude your helper files. If you're using Babel, you can configure the compilation of additional files .

    The sources configuration has also been removed. Instead, use the ignoredByWatcher configuration. Changes to files matched by these glob patterns will not cause the watcher to rerun tests.

    Negated sources patterns must be used without the negation in ignoredByWatcher:

     export default {
    -  sources: ['!examples/**/*']
    +  ignoredByWatcher: ['examples/**/*']
     }

    CLI changes

    Internally we've replaced meow by yargs. We're not expecting things to break because of this, but you never know.

    Resetting the cache

    The --reset-cache argument has been replaced by a proper reset-cache command:

    npx ava reset-cache

    File selection (again!)

    AVA again accepts glob patterns via the CLI:

    npx ava '**/api/**/*'

    The way this work is that AVA first finds all test files, according to the configuration, and then filters to select just the files that also match the glob patterns passed via the CLI.

    You can still pass paths to specific files:

    npx ava src/api/test/my-api-test.js

    However unlike with AVA 2, you can no longer specify test files that aren't already selected by AVA's configuration.

    t.throws() and t.throwsAsync() assertions

    The second argument passed to these assertions must now be an expectation object. You can no longer pass the expected constructor, error message or regular expression.

    Other breaking changes

    • Support for old esm versions has been removed.
    • We've set a default test timeout of 10 seconds. This means that if no test results are received for 10 seconds, AVA forces its worker processes to quit.
    • The NODE_PATH environment variable is no longer rewritten to ensure values are absolute paths.
    • AVA longer fakes the TTY in worker processes.

    Other changes

    • We've simplified how we identify observables. Any object returned by a test implementation that has a subscribe function is assumed to be an observable. AVA's type definition has been updated accordingly.
    • The TAP reporter now reports hook failures as test failures.
    • We've added an example of module path mapping to our TypeScript recipe.
    • We've added a Selenium WebDriver JS recipe.

    All changes

    v2.4.0...v3.0.0

    Thanks

    Thank you @tymfear, @HeathNaylor, @grnch, @alexdrans, @MoppetX, @jimmywarting, @micaelmbagira, @aptester, @theashraf, @sramam and @maximelkin. We couldn't have done this without you!

    Commits

    The new version differs by 86 commits.

    • b4cfc8d 3.0.0
    • 776788f Ship v3 🎉
    • 0d11ff7 More issue template tweaks
    • 9983976 Update various contributing documents and GitHub configuration
    • 5a33572 Fix fail-fast interrupt test
    • 61e0d05 Fix VSCode debugging instructions
    • 630aac3 Fix remaining AVA link
    • 5c8bcec Fix AVA link in snapshot reports
    • 7b20f6c Allow Node arguments to be configured
    • ad27246 3.0.0-beta.2
    • ae948d8 Lowercase CLI argument description asides
    • ac8c852 Update dependencies
    • 2bd890f Disable timeouts in debug mode
    • 15d73ca Make console & process globals available to ava.config.js files
    • efa8635 Fix patterns and unpin picomatch

    There are 86 commits in total.

    See the full diff


    FAQ and help

    There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


    Your Greenkeeper bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 13
  • Update husky to the latest version 🚀

    Update husky to the latest version 🚀

    The devDependency husky was updated from 3.1.0 to 4.0.2.

    This version is not covered by your current version range.

    If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


    Publisher: typicode License: MIT

    Release Notes for v4.0.2
    • Fix: show error message when hook fails
    Commits

    The new version differs by 10 commits.

    See the full diff


    FAQ and help

    There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


    Your Greenkeeper bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 13
  • An in-range update of webpack is breaking the build 🚨

    An in-range update of webpack is breaking the build 🚨

    Version 4.18.0 of webpack was just published.

    Branch Build failing 🚨
    Dependency webpack
    Current Version 4.17.3
    Type devDependency

    This version is covered by your current version range and after updating it in your project the build failed.

    webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

    Status Details
    • ci/circleci: Your tests failed on CircleCI (Details).
    • coverage/coveralls: First build on greenkeeper/webpack-4.18.0 at 100.0% (Details).

    Release Notes v4.18.0

    Features

    • Upgrade webassemblyjs dependency
    Commits

    The new version differs by 12 commits.

    • ee7d948 4.18.0
    • de85978 Merge pull request #7732 from xtuc/chore-bump-webassemblyjs11
    • 4e02cac chore: bump webassemblyjs
    • 52e1630 bump webassemblyjs
    • e0e0061 Merge branch 'master' into chore-bump-webassemblyjs11
    • c9d6ec1 feat: remove wasm-opt
    • 075208d fix: merging
    • 38c3403 Merge remote-tracking branch 'upstream/master' into chore-bump-webassemblyjs11
    • 8214d56 chore: bump webassemblyjs
    • 59114c1 chore: bump webassemblyjs
    • b310b9b feat: remove LEB128 opt
    • f744c4a chore: bump webassemblyjs 1.6.0

    See the full diff

    FAQ and help

    There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


    Your Greenkeeper Bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 12
  • Update karma to the latest version 🚀

    Update karma to the latest version 🚀


    ☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


    The devDependency karma was updated from 4.4.1 to 5.0.0.

    This version is not covered by your current version range.

    If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


    Publisher: karmarunnerbot License: MIT

    Release Notes for v5.0.0

    5.0.0 (2020-04-09)

    Bug Fixes

    Code Refactoring

    Continuous Integration

    Features

    • docs: document DEFAULT_LISTEN_ADDR constant (#3443) (057d527), closes #2479
    • karma-server: added log to the server.js for uncaught exception (#3399) (adc6a66)
    • preprocessor: obey Pattern.isBinary when set (#3422) (708ae13), closes #3405

    BREAKING CHANGES

    • Karma plugins which rely on the fact that Karma uses Bluebird promises may break as Bluebird-specific API is no longer available on Promises returned by the Karma core
    • server: Deprecated createPreprocessor removed, karma-browserify < 7 version doesn't work
    • no more testing on node 8.
    Commits

    The new version differs by 36 commits.

    • 1b48637 chore(release): 5.0.0 [skip ci]
    • a5dbe89 Update issue templates (#3460)
    • 1074f38 chore(ci): rely on karma-runnre/integration-tests for saucelabs config (#3462)
    • 4d45cf0 chore(ci): remove more old connection security stuffs (#3459)
    • be76fcc chore(ci): use travis UI for sauce config (#3458)
    • a04a542 chore(ci): remove secure encryption var (#3457)
    • 1eaf35e fix: install semantic-release as a regular dev dependency (#3455)
    • 0647109 docs: Fix simple typo, overriden -> overridden (#3453)
    • ec1e69a fix(server): replace optimist on yargs lib (#3451)
    • ffad7fa refactor(launcher): use class syntax (#3437)
    • 7166ce2 fix(server): detection new MS Edge Chromium (#3440)
    • b8b2ed8 fix(ci): echo travis env that gates release after_success (#3446)
    • 33a069f refactor: use native Promise instead of Bluebird (#3436)
    • 131d154 refactor: drop safe-buffer dependency in favor of native Buffer (#3438)
    • cb1bcbf fix(server): cleanup import of the removed method (#3439)

    There are 36 commits in total.

    See the full diff


    FAQ and help

    There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


    Your Greenkeeper bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 9
  • Update chromedriver to the latest version 🚀

    Update chromedriver to the latest version 🚀

    The devDependency chromedriver was updated from 75.1.0 to 79.0.1.

    This version is not covered by your current version range.

    If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


    Publisher: giggio License: Apache-2.0

    Find out more about this release.


    FAQ and help

    There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


    Your Greenkeeper bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 8
  • An in-range update of rollup is breaking the build 🚨

    An in-range update of rollup is breaking the build 🚨

    The devDependency rollup was updated from 1.9.2 to 1.9.3.

    🚨 View failing branch.

    This version is covered by your current version range and after updating it in your project the build failed.

    rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

    Status Details
    • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

    Release Notes for v1.9.3

    2019-04-10

    Bug Fixes

    • Simplify return expressions that are evaluated before the surrounding function is bound (#2803)

    Pull Requests

    • #2803: Handle out-of-order binding of identifiers to improve tree-shaking (@lukastaegert)
    Commits

    The new version differs by 3 commits.

    • 516a06d 1.9.3
    • a5526ea Update changelog
    • c3d73ff Handle out-of-order binding of identifiers to improve tree-shaking (#2803)

    See the full diff

    FAQ and help

    There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


    Your Greenkeeper Bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 8
  • Update rollup to the latest version 🚀

    Update rollup to the latest version 🚀

    Version 0.60.0 of rollup was just published.

    Dependency rollup
    Current Version 0.58.2
    Type devDependency

    The version 0.60.0 is not covered by your current version range.

    If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

    It might be worth looking into these changes and trying to get this project onto the latest version of rollup.

    If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


    Commits

    The new version differs by 194 commits.

    • 12a6ae0 Fix style
    • 0bc6426 0.60.0
    • 916a759 Add release date to changelog
    • 6f973a4 Merge branch 'plugin-chunking'
    • a7058a6 fix inlineDynamicImports entry misrecognition bug
    • 649a046 tweak dir / file error message cases
    • b9f085a use native URL in tests if possible
    • 2a634c7 provide bundle on output property
    • 994bd6e add url parse dependency
    • ee53a31 update magic-string
    • 7232bec singleInputChunk tweaks
    • 55ac656 use MagicString.length()
    • de83598 remove processChunks hook for generateBundle, include tree-shaking info in generateBundle modules
    • 4d4ec4c unflag experimentalDynamicImport
    • d110564 pr feedback, asset url output and mechanism tests

    There are 194 commits in total.

    See the full diff

    FAQ and help

    There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


    Your Greenkeeper bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 8
  • Update rollup to the latest version 🚀

    Update rollup to the latest version 🚀

    The devDependency rollup was updated from 0.65.2 to 0.66.0.

    This version is not covered by your current version range.

    If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


    Find out more about this release.

    FAQ and help

    There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


    Your Greenkeeper bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 7
  • Update chromedriver to the latest version 🚀

    Update chromedriver to the latest version 🚀

    The devDependency chromedriver was updated from 75.1.0 to 76.0.0.

    This version is not covered by your current version range.

    If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


    Publisher: giggio License: Apache-2.0

    Find out more about this release.


    FAQ and help

    There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


    Your Greenkeeper bot :palm_tree:

    greenkeeper 
    opened by greenkeeper[bot] 6
  • Bump qs from 6.5.2 to 6.5.3

    Bump qs from 6.5.2 to 6.5.3

    Bumps qs from 6.5.2 to 6.5.3.

    Changelog

    Sourced from qs's changelog.

    6.5.3

    • [Fix] parse: ignore __proto__ keys (#428)
    • [Fix] utils.merge: avoid a crash with a null target and a truthy non-array source
    • [Fix] correctly parse nested arrays
    • [Fix] stringify: fix a crash with strictNullHandling and a custom filter/serializeDate (#279)
    • [Fix] utils: merge: fix crash when source is a truthy primitive & no options are provided
    • [Fix] when parseArrays is false, properly handle keys ending in []
    • [Fix] fix for an impossible situation: when the formatter is called with a non-string value
    • [Fix] utils.merge: avoid a crash with a null target and an array source
    • [Refactor] utils: reduce observable [[Get]]s
    • [Refactor] use cached Array.isArray
    • [Refactor] stringify: Avoid arr = arr.concat(...), push to the existing instance (#269)
    • [Refactor] parse: only need to reassign the var once
    • [Robustness] stringify: avoid relying on a global undefined (#427)
    • [readme] remove travis badge; add github actions/codecov badges; update URLs
    • [Docs] Clean up license text so it’s properly detected as BSD-3-Clause
    • [Docs] Clarify the need for "arrayLimit" option
    • [meta] fix README.md (#399)
    • [meta] add FUNDING.yml
    • [actions] backport actions from main
    • [Tests] always use String(x) over x.toString()
    • [Tests] remove nonexistent tape option
    • [Dev Deps] backport from main
    Commits
    • 298bfa5 v6.5.3
    • ed0f5dc [Fix] parse: ignore __proto__ keys (#428)
    • 691e739 [Robustness] stringify: avoid relying on a global undefined (#427)
    • 1072d57 [readme] remove travis badge; add github actions/codecov badges; update URLs
    • 12ac1c4 [meta] fix README.md (#399)
    • 0338716 [actions] backport actions from main
    • 5639c20 Clean up license text so it’s properly detected as BSD-3-Clause
    • 51b8a0b add FUNDING.yml
    • 45f6759 [Fix] fix for an impossible situation: when the formatter is called with a no...
    • f814a7f [Dev Deps] backport from main
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Bump decode-uri-component from 0.2.0 to 0.2.2

    Bump decode-uri-component from 0.2.0 to 0.2.2

    Bumps decode-uri-component from 0.2.0 to 0.2.2.

    Release notes

    Sourced from decode-uri-component's releases.

    v0.2.2

    • Prevent overwriting previously decoded tokens 980e0bf

    https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2

    v0.2.1

    • Switch to GitHub workflows 76abc93
    • Fix issue where decode throws - fixes #6 746ca5d
    • Update license (#1) 486d7e2
    • Tidelift tasks a650457
    • Meta tweaks 66e1c28

    https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.1

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Bump loader-utils from 1.1.0 to 1.4.2

    Bump loader-utils from 1.1.0 to 1.4.2

    Bumps loader-utils from 1.1.0 to 1.4.2.

    Release notes

    Sourced from loader-utils's releases.

    v1.4.2

    1.4.2 (2022-11-11)

    Bug Fixes

    v1.4.1

    1.4.1 (2022-11-07)

    Bug Fixes

    v1.4.0

    1.4.0 (2020-02-19)

    Features

    • the resourceQuery is passed to the interpolateName method (#163) (cd0e428)

    v1.3.0

    1.3.0 (2020-02-19)

    Features

    • support the [query] template for the interpolatedName method (#162) (469eeba)

    v1.2.3

    1.2.3 (2018-12-27)

    Bug Fixes

    • interpolateName: don't interpolated hashType without hash or contenthash (#140) (3528fd9)

    v1.2.2

    1.2.2 (2018-12-27)

    Bug Fixes

    ... (truncated)

    Changelog

    Sourced from loader-utils's changelog.

    1.4.2 (2022-11-11)

    Bug Fixes

    1.4.1 (2022-11-07)

    Bug Fixes

    1.4.0 (2020-02-19)

    Features

    • the resourceQuery is passed to the interpolateName method (#163) (cd0e428)

    1.3.0 (2020-02-19)

    Features

    • support the [query] template for the interpolatedName method (#162) (469eeba)

    1.2.3 (2018-12-27)

    Bug Fixes

    • interpolateName: don't interpolated hashType without hash or contenthash (#140) (3528fd9)

    1.2.2 (2018-12-27)

    Bug Fixes

    ... (truncated)

    Commits
    Maintainer changes

    This version was pushed to npm by evilebottnawi, a new releaser for loader-utils since your current version.


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Bump socket.io-parser from 3.3.1 to 3.3.3

    Bump socket.io-parser from 3.3.1 to 3.3.3

    Bumps socket.io-parser from 3.3.1 to 3.3.3.

    Release notes

    Sourced from socket.io-parser's releases.

    3.3.2

    Bug Fixes

    • prevent DoS (OOM) via massive packets (#95) (89197a0)

    Links

    Changelog

    Sourced from socket.io-parser's changelog.

    3.3.3 (2022-11-09)

    Bug Fixes

    • check the format of the index of each attachment (fb21e42)

    3.4.2 (2022-11-09)

    Bug Fixes

    • check the format of the index of each attachment (04d23ce)

    4.2.1 (2022-06-27)

    Bug Fixes

    • check the format of the index of each attachment (b5d0cb7)

    4.0.5 (2022-06-27)

    Bug Fixes

    • check the format of the index of each attachment (b559f05)

    4.2.0 (2022-04-17)

    Features

    • allow the usage of custom replacer and reviver (#112) (b08bc1a)

    4.1.2 (2022-02-17)

    Bug Fixes

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • How to use import and use it in js file

    How to use import and use it in js file

    ok, in my vue3.0 project, I can use this.$ls.set and this.$ls.get to access the vue-ls, but how to make it works js file, I did not find a way to use it globally.

    opened by yili001 0
Releases(v4.2.0)
Owner
Igor Ognichenko
(′ʘ⌄ʘ‵) Software Engineer and Open Source Enthusiast
Igor Ognichenko
The Vue plugin for work with LocalStorage from Vue context

vue-local-storage The Vue plugin for work with LocalStorage from Vue context, with cookie fallback. Introduction vue-local-storage is wrapper for work

Radyushin & Company 24 Apr 22, 2020
The Vue plugin for work with LocalStorage from Vue context, with cookie fallback

vue-local-storage The Vue plugin for work with LocalStorage from Vue context, with cookie fallback. Introduction vue-local-storage is wrapper for work

Radyushin & Company 24 Apr 22, 2020
The vue plugin that attaches electron-json-storage APIs to the Vue object, making them accessible to all components.

vue-electron-storage A vue plugin that wraps electron-json-storage APIs to the Vue object. Installing Install using NPM npm install vue-electron-json-

Adam Bradford 1 Jun 17, 2020
a reactive storage plugin for vue 👀🔭

vue-storage-watcher the real reactive watcher for localStorge. I search a few days for a lib to watch the ls, but failed. you can use this tiny ls wra

Vincent Guo 60 Nov 21, 2022
An automatic storage plugin for Vue2, persist the data with localStorage

vue-auto-storage An automatic storage plugin for Vue2, persist the data with localStorage. Demo Try it out Requirements Vue.js 2.x IE9 + Advantages Si

null 84 Feb 11, 2022
A Cross-browser storage for Vue.js and Nuxt.js, with plugins support and easy extensibility based on Store.js.

Vue.js Warehouse A Cross-browser storage for Vue.js and Nuxt.js, with plugins support and easy extensibility based on Store.js. This plugin will pick

Julio Marquez 169 Nov 3, 2022
The coolest and easiest way to manage your user's preferences on the client side with your preferred storage.

Vue Preferences The coolest and easiest way to manage your user's preferences on the client side with your preferred storage. Motivation Many times ha

Streaver 101 Dec 22, 2022
vue-universal-cookies Isomorphic cookies plugin for Vue.js / Nuxt.js supports Browser, Express, http (node).

vue-universal-cookies / nuxt-universal-cookies Isomorphic cookies plugin for Vue.js / Nuxt.js supports Browser, Express, http (node). Install in Nuxt.

Shuma Yoshioka 28 Jun 21, 2022
Vue.js localStorage plugin with types support

VueLocalStorage LocalStorage plugin inspired by Vue typed props which take a care of typecasting for Vue.js 1 and 2 with SSR support. Install npm inst

Alexander Avakov 669 Nov 29, 2022
vue-idb - Lists and huge lists management with IndexedDB (Dexie.js) only or automatically created and extendible vuex modules

vue-idb IndexedDB wrapper for Vuejs based on Dexie Install npm install vue-idb --save Usage import Vue from 'vue' import VueIdb from 'vue-idb' Vue.us

David Grill 80 Oct 24, 2022
Live and reactive PouchDB bindings for Vuejs

Pssst... I'm not working with Vue anymore. This plugin is old and bad. Here is a better alternative: https://github.com/MDSLKTR/pouch-vue vue-pouch Re

Stefan Buhrmester 164 Dec 8, 2022
Allows the components to save and load their data across the browser sessions.

VueStorage Allows the components to save and load their data across the browser sessions. Works for Vue 2 & 3. demo Try it out! dependencies VueDemi s

Sergej Sintschilin 53 Nov 16, 2022
A todo web app built in Vue.js using LocalStorage.

Todo app built in Vue.js using LocalStorage https://todo-app-vuejs-cli.netlify.app Project setup npm install Compiles and hot-reloads for development

Soham Dixit 2 Sep 28, 2021
:boom: Vue plugin for work with local storage, session storage and memory storage from Vue context

vue-ls Vue plugin for work with local storage, session storage and memory storage from Vue context jsFiddle Example Vue 1.x Vue 2.x Install CDN Recomm

XQ 0 May 10, 2018
Vue3 plugin for work with local storage and session storage from Vue context,Inspired by Vue-ls

Vue3 plugin for work with local storage and session storage from Vue context,Inspired by Vue-ls

aesoper 16 Nov 24, 2022
Vue.js plugin for local storage and session storage (1.8 kb min+gz) :floppy_disk:

Vue Web Storage A minimalistic Vue.js plugin for web storage Version matrix Vue.js version Package version Branch 2.x 5.x 5.x 3.x 6.x master Features

Ankur Kumar 85 Nov 24, 2021
Memory-control-demo - some web dev-tips about memory control.

前端的内存控制 为什么要关注内存,关注性能 前端开发,除了创建前端界面呈现给用户,也需要关注用户的使用体验。 在一些老旧的设备上,如果出现内存泄漏,很容易导致用户的设备白屏崩溃等问题。 同时,因为浏览器已经帮我们做了很多,很容易就忽略掉内存问题。 浏览器的内存回收 方式:标记清除 https://

Michael 0 Jan 4, 2022
The Vue plugin for work with LocalStorage from Vue context

vue-local-storage The Vue plugin for work with LocalStorage from Vue context, with cookie fallback. Introduction vue-local-storage is wrapper for work

Radyushin & Company 24 Apr 22, 2020
The Vue plugin for work with LocalStorage from Vue context, with cookie fallback

vue-local-storage The Vue plugin for work with LocalStorage from Vue context, with cookie fallback. Introduction vue-local-storage is wrapper for work

Radyushin & Company 24 Apr 22, 2020
A manage easy session storage plugin for VueJS

Install npm install vue-easysession --save To install the plugin, do the following: import VueEasySession from 'vue-easysession' Vue.use(VueEasySessio

Andres 6 Sep 5, 2022