diff --git a/README.md b/README.md index f6b14b83..161cb506 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,14 @@ Choose which build is right for you! - [store.modern.min.js](dist/store.modern.min.js): Full support for all modern browsers. Add plugins separately. [Source](dist/store.modern.js) - [store.v1-backcompat.min.js](dist/store.v1-backcompat.min.js): Full backwards compatibility with [store.js v1](https://github.com/marcuswestin/store.js/releases/tag/v1.3.20). [Source](dist/store.v1-backcompat.js) + +Individual storage builds (not containing any fallback logic) + +- [store.only.local-storage.min.js](dist/store.only.local-storage.min.js): All the plugins, all the storages. [Source](dist/store.only.local-storage.js) +- [store.only.session-storage.min.js](dist/store.only.session-storage.min.js): All the plugins, all the storages. [Source](dist/store.only.session-storage.js) +- [store.only.cookie-storage.min.js](dist/store.only.cookie-storage.min.js): All the plugins, all the storages. [Source](dist/store.only.cookie-storage.js) +- [store.only.memory-storage.min.js](dist/store.only.memory-storage.min.js): All the plugins, all the storages. [Source](dist/store.only.memory-storage.js) + ### Make your own Build If you're using npm you can create your own build: diff --git a/dist/store.only.cookie-storage.js b/dist/store.only.cookie-storage.js new file mode 100644 index 00000000..c55af879 --- /dev/null +++ b/dist/store.only.cookie-storage.js @@ -0,0 +1,8 @@ +var engine = require('../src/store-engine') + +var storages = [ + require('../storages/cookieStorage') +] +var plugins = [] + +module.exports = engine.createStore(storages, plugins) diff --git a/dist/store.only.cookie-storage.min.js b/dist/store.only.cookie-storage.min.js new file mode 100644 index 00000000..0b36c72d --- /dev/null +++ b/dist/store.only.cookie-storage.min.js @@ -0,0 +1,2 @@ +/* store.js - Copyright (c) 2010-2017 Marcus Westin */ +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.store=e()}}(function(){return function(){function e(n,t,r){function i(u,a){if(!t[u]){if(!n[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(o)return o(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=t[u]={exports:{}};n[u][0].call(f.exports,function(e){var t=n[u][1][e];return i(t||e)},f,f.exports,e,n,t,r)}return t[u].exports}for(var o="function"==typeof require&&require,u=0;u=0;t--)if(l(n[t])){var r=n[t].split("="),i=unescape(r[0]),o=unescape(r[1]);e(o,i)}}function o(e,n){e&&(p.cookie=escape(e)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function u(e){e&&s(e)&&(p.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function a(){i(function(e,n){u(n)})}function s(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(p.cookie)}var c=e("../src/util"),f=c.Global,l=c.trim;n.exports={name:"cookieStorage",read:r,write:o,each:i,remove:u,clearAll:a};var p=f.document},{"../src/util":3}]},{},[1])(1)}); \ No newline at end of file diff --git a/dist/store.only.local-storage.js b/dist/store.only.local-storage.js new file mode 100644 index 00000000..945bfc4e --- /dev/null +++ b/dist/store.only.local-storage.js @@ -0,0 +1,8 @@ +var engine = require('../src/store-engine') + +var storages = [ + require('../storages/localStorage') +] +var plugins = [] + +module.exports = engine.createStore(storages, plugins) diff --git a/dist/store.only.local-storage.min.js b/dist/store.only.local-storage.min.js new file mode 100644 index 00000000..04c0e4f7 --- /dev/null +++ b/dist/store.only.local-storage.min.js @@ -0,0 +1,2 @@ +/* store.js - Copyright (c) 2010-2017 Marcus Westin */ +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.store=e()}}(function(){return function(){function e(n,t,r){function i(u,a){if(!t[u]){if(!n[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(o)return o(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=t[u]={exports:{}};n[u][0].call(f.exports,function(e){var t=n[u][1][e];return i(t||e)},f,f.exports,e,n,t,r)}return t[u].exports}for(var o="function"==typeof require&&require,u=0;u=0;n--){var t=r().key(n);e(i(t),t)}}function a(e){return r().removeItem(e)}function s(){return r().clear()}var c=e("../src/util"),f=c.Global;n.exports={name:"localStorage",read:i,write:o,each:u,remove:a,clearAll:s}},{"../src/util":3}]},{},[1])(1)}); \ No newline at end of file diff --git a/dist/store.only.memory-storage.js b/dist/store.only.memory-storage.js new file mode 100644 index 00000000..5e4d4054 --- /dev/null +++ b/dist/store.only.memory-storage.js @@ -0,0 +1,8 @@ +var engine = require('../src/store-engine') + +var storages = [ + require('../storages/memoryStorage') +] +var plugins = [] + +module.exports = engine.createStore(storages, plugins) diff --git a/dist/store.only.memory-storage.min.js b/dist/store.only.memory-storage.min.js new file mode 100644 index 00000000..c56ad3cc --- /dev/null +++ b/dist/store.only.memory-storage.min.js @@ -0,0 +1,2 @@ +/* store.js - Copyright (c) 2010-2017 Marcus Westin */ +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.store=e()}}(function(){return function(){function e(n,t,r){function i(u,a){if(!t[u]){if(!n[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(o)return o(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=t[u]={exports:{}};n[u][0].call(f.exports,function(e){var t=n[u][1][e];return i(t||e)},f,f.exports,e,n,t,r)}return t[u].exports}for(var o="function"==typeof require&&require,u=0;u=0;n--){var t=r().key(n);e(i(t),t)}}function s(e){return r().removeItem(e)}function a(){return r().clear()}var c=e("../src/util"),f=c.Global;n.exports={name:"sessionStorage",read:i,write:o,each:u,remove:s,clearAll:a}},{"../src/util":3}]},{},[1])(1)}); \ No newline at end of file