Détail du package

@cocreate/indexeddb

CoCreate-app584AGPL-3.01.23.3

A simple indexeddb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.

indexeddb, cocreate, low-code-framework, no-code-framework

readme

CoCreate-indexeddb

an indexeddb wrapper. Easily crud data using HTML5 attribute API and/or JavaScript API. Take it for a spin in our playground!

min file size in bytes gzip file size in bytes brotlifile size in bytes GitHub latest release GitHub GitHub

CoCreate-indexeddb

Docs & Demo

For a complete guide and working demo refer to the doumentation

CDN

<script src="https://cdn.cocreate.app/indexeddb/latest/CoCreate-indexeddb.min.js"></script>
<script src="https://cdn.cocreate.app/indexeddb/latest/CoCreate-indexeddb.min.css"></script>

NPM

$ npm i @cocreate/indexeddb

yarn

$ yarn install @cocreate/indexeddb

Table of Contents

Announcements

All updates to this library are documented in our CHANGELOG and releases. You may also subscribe to email for releases and breaking changes.

Roadmap

If you are interested in the future direction of this project, please take a look at our open issues and pull requests. We would love to hear your feedback.

About

CoCreate-indexeddb is guided and supported by the CoCreate Developer Experience Team.

Please Email the Developer Experience Team here in case of any queries.

CoCreate-indexeddb is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.

How to Contribute

We encourage contribution to our libraries (you might even score some nifty swag), please see our CONTRIBUTING guide for details.

We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create issues and pull requests or merely upvote or comment on existing issues or pull requests.

We appreciate your continued support, thank you!

License

This software is dual-licensed under the GNU Affero General Public License version 3 (AGPLv3) and a commercial license.

  • Open Source Use: For open-source projects and non-commercial use, this software is available under the AGPLv3. The AGPLv3 allows you to freely use, modify, and distribute this software, provided that all modifications and derivative works are also licensed under the AGPLv3. For the full license text, see the LICENSE file.

  • Commercial Use: For-profit companies and individuals intending to use this software for commercial purposes must obtain a commercial license. The commercial license is available when you sign up for an API key on our website. This license permits proprietary use and modification of the software without the copyleft requirements of the AGPLv3. It is ideal for integrating this software into proprietary commercial products and applications.

If you have not purchased a commercial license and intend to use this software for commercial purposes, you are required to sign up for an API key on our website.

changelog

1.23.3 (2025-05-01)

Bug Fixes

1.23.2 (2025-04-30)

Bug Fixes

1.23.1 (2024-12-14)

Bug Fixes

  • commented error log on data.error as we can use console.error (c23b00c)
  • formating (295ac01)

1.23.0 (2024-11-04)

Bug Fixes

  • check if index exists prior to creating (02ebd6a)
  • pretier.config.js and file formating (5d0ab6f)

Features

  • add prettier.config.js and format files (103e46c)
  • add prettier.config.js and format files (e426992)
  • handling of indexes name and associted fields. add _id to field for pagination (d667c64)

1.22.5 (2024-06-12)

Bug Fixes

1.22.4 (2024-04-29)

Bug Fixes

  • bump cocreate dependencies (c72d741)

1.22.3 (2024-02-20)

Bug Fixes

  • $update operator containg updated objects (8ed0c30)

1.22.2 (2024-02-18)

Bug Fixes

  • update responds with update request not whole document (1a0f2f0)

1.22.1 (2024-02-17)

Bug Fixes

  • update object only returns updated values (005f9ea)

1.22.0 (2024-02-14)

Bug Fixes

  • createUpdate relocated to utils to be accessible by other modues (af6a85e)

Features

  • update operators $addToSet and $pull (effc837)

1.21.2 (2024-02-05)

Bug Fixes

1.21.1 (2024-01-17)

Bug Fixes

  • update to support new query system (80e1134)

1.21.0 (2023-11-25)

Bug Fixes

  • update licensing details (3ee7ade)

Features

  • upgrade dependencies for latest features and fixes (50d3529)

1.20.0 (2023-11-25)

Features

  • upgrade dependencies for latest features and fixes (f66d85a)

1.19.1 (2023-11-22)

Bug Fixes

1.19.0 (2023-11-19)

Features

  • update dependecies for th latest features and bug fixes (c03d97c)

1.18.0 (2023-11-16)

Bug Fixes

  • set $filter.startingIndex (18888cf)

Features

1.17.2 (2023-11-12)

Bug Fixes

1.17.1 (2023-11-09)

Bug Fixes

  • $storage, $database, $array are arrays (b6374f8)
  • meta name typo (da33128)
  • update crud methods (c74ed56)
  • updated date to ISO format with UTC timezone (8bcc59a)

1.17.0 (2023-11-03)

Bug Fixes

  • favicon.ico path (3ea941e)
  • get.database updated to database.get (b8058c6)
  • relocated $filter conditions to after index is open (349f7ff)
  • transaction bug (6016c07)
  • update dependencies to the lates versions (4bcf0b2)
  • update method to use object.update etc (6b47872)

Features

  • morph data[type] so the object can be synced across multiple storage, database, array (8d3afb4)

1.16.2 (2023-10-26)

Bug Fixes

1.16.1 (2023-10-25)

Bug Fixes

1.16.0 (2023-10-24)

Bug Fixes

  • add() handle objectStores that opened index (0bfebfc)

Features

  • create index if filter.quey.inxex is true (6d6b134)
  • processDatabase auto upgrade (0b73644)
  • processDatabase() upgrade true returns event (26ee1d1)

1.15.0 (2023-10-22)

Features

  • ObjectId() returns an object containg the parts iof the _id along with a toString() function (5d9212b)
  • ObjectId() returns an object containg the parts iof the _id along with a toString() function (d6b8ccd)

1.14.6 (2023-10-21)

Bug Fixes

1.14.5 (2023-10-16)

Bug Fixes

  • if array does not exist apply error to log (fc1e101)

1.14.4 (2023-10-14)

Bug Fixes

  • bump dependencies (9cb8c0b)
  • error handeling if array does exist (29e92fb)
  • improved cursor handling (0a64f78)
  • improved handling of cursor conditions (a141167)
  • update.object upsert without_id (740bf7e)

1.14.3 (2023-10-09)

Bug Fixes

1.14.2 (2023-10-09)

Bug Fixes

1.14.1 (2023-10-09)

Bug Fixes

  • bump cocreate dependency versions (147ab07)

1.14.0 (2023-10-09)

Bug Fixes

  • cursor() iteration bug (394d1e9)
  • data.request and data.timeStamp conditions (bf28152)

Features

  • $each operator adds each item to an array (b085764)
  • isValidDate imported from utils to check key values for date strings and convert to object (a822f9b)
  • support update operators similar to mongodb (dc7bd71)

1.13.5 (2023-09-18)

Bug Fixes

  • Add path and pathname (9324f2b)
  • Update CoCreate depndencies to latest versions (635996b)

1.13.4 (2023-09-17)

Bug Fixes

  • renamed filter to $filter (00c58a5)
  • update indexeddb() to indexeddb.send() (6568ef6)

1.13.3 (2023-09-07)

Bug Fixes

  • get.database response (a2311df)
  • handle method get.database (dbc998e)
  • Refactor condition for filtering objects in processObject function (d5fc6a3)

1.13.2 (2023-08-21)

Bug Fixes

1.13.1 (2023-08-21)

Bug Fixes

1.13.0 (2023-08-21)

Features

  • Update cocreate dependencies for the latest features and bug fixes (f1d7379)

1.12.1 (2023-08-21)

Bug Fixes

1.12.0 (2023-08-17)

Features

  • bump cocreate dependencies for the latest updates and features (9c0f637)

1.11.0 (2023-08-16)

Bug Fixes

  • crud attributes renamed (f742fe0)
  • Refactor code to use the property name 'storage' instead of 'db'. (cb8bc5c)
  • Refactor processObject function and addGet function in index.js (3c42ab0)
  • Remove unnecessary configuration script in index.html (47b5383)
  • replace -target -selector (5fa8f51)
  • startIndex renamed to index (ea6e704)
  • webpack.config and package.json make use of mode=production instead of process.env (1bf57b6)

Features

  • name attribute and variable renamed to key (1173373)
  • refactored to improve code quality and performance (db92baa)
  • Remove commented out code, refactor the status variable, and export the indexedDb function (1200a3e)

1.10.20 (2023-06-14)

Bug Fixes

1.10.19 (2023-06-11)

Bug Fixes

1.10.18 (2023-06-11)

Bug Fixes

1.10.17 (2023-06-11)

Bug Fixes

1.10.16 (2023-06-11)

Bug Fixes

1.10.15 (2023-06-11)

Bug Fixes

1.10.14 (2023-06-11)

Bug Fixes

1.10.13 (2023-06-11)

Bug Fixes

1.10.12 (2023-06-11)

Bug Fixes

1.10.11 (2023-06-11)

Bug Fixes

  • @cocreate/cli moved to dependencies (875c3a6)

1.10.10 (2023-06-11)

Bug Fixes

1.10.9 (2023-06-11)

Bug Fixes

  • renamed db to storage (a22e3db)
  • renamed hosts to host. the value can be a string or an array of strings (b79e991)

1.10.8 (2023-06-10)

Bug Fixes

1.10.7 (2023-06-10)

Bug Fixes

1.10.6 (2023-06-04)

Bug Fixes

  • Refactor CoCreate.config.js to remove hard-coded credentials (823b357)

1.10.5 (2023-06-04)

Bug Fixes

  • replaced secert GITHUB_TOKEN with GITHUB (fdb0337)
  • Update dependencies versions for @cocreate libraries (8036314)

1.10.4 (2023-06-04)

Bug Fixes

  • semantic-release: worklow error solved by running node version 14 (7e24bb7)

1.10.3 (2023-06-02)

Bug Fixes

1.10.2 (2023-06-01)

Bug Fixes

  • Remove redundant "hosts" field from key and role objects in generateDB() (e19a119)
  • Update generateDB function to use Boolean values for signIn and signUp keys (22f89b4)

1.10.1 (2023-05-21)

Bug Fixes

1.10.0 (2023-05-21)

Features

  • Add function to generate organization, user, keys, and roles (b8b665f)

1.9.5 (2023-05-20)

Bug Fixes

  • Refactor organization and user document creation (1e55ba0)
  • Updated dependencies to the lastest versions (476552a)

1.9.4 (2023-05-19)

Bug Fixes

  • Refactor code to use a more descriptive variable name (ac0883d)

1.9.3 (2023-05-19)

Bug Fixes

  • modules renamed to actions (ec7dfd3)

1.9.2 (2023-05-10)

Bug Fixes

1.9.1 (2023-05-10)

Bug Fixes

1.9.0 (2023-05-10)

Features

  • generateDB, added @cocreate/uuid (28be996)

1.8.7 (2023-05-06)

Bug Fixes

1.8.6 (2023-05-01)

Bug Fixes

  • update manifest.json to manifest.webmanifest (18973cc)

1.8.5 (2023-05-01)

Bug Fixes

  • replace fontawesome with svg (ed15fe9)

1.8.4 (2023-04-30)

Bug Fixes

  • fullscreen target updated to fullscreen fullscreen-target (8c781d2)
  • package-lock.json and pnpm-lock.yaml added to .gitignore (3f6aeed)
  • removed toogle fullscreen icons. now using css content (5d84732)

1.8.3 (2023-04-24)

Bug Fixes

  • updated worrkflows to v3 and node version 16 (c652e25)
  • workflow node version updated 16 (9253a30)

1.8.2 (2023-04-24)

Bug Fixes

1.8.1 (2023-04-24)

Bug Fixes

  • removed uglifyjs-webpack-plugin (ac21808)

1.8.0 (2023-04-24)

Features

1.7.12 (2023-04-14)

Bug Fixes

  • pushing item after is filter (ad52003)

1.7.11 (2023-04-13)

Bug Fixes

  • replaced object.entries with Object.keys (385f513)

1.7.10 (2023-04-13)

Bug Fixes

  • readDocumenterror handeling (5e12fc2)

1.7.9 (2023-04-11)

Bug Fixes

1.7.8 (2023-04-11)

Bug Fixes

1.7.7 (2023-04-11)

Bug Fixes

  • test indexeddb using databases() instead of open(). open caused a db to be created (7112717)

1.7.6 (2023-04-11)

Bug Fixes

1.7.5 (2023-04-11)

Bug Fixes

  • renamed domains to hosts (d1e7bc1)

1.7.4 (2023-03-30)

Bug Fixes

1.7.3 (2023-03-29)

Bug Fixes

  • readDatabase - data not defined add empty object (b2a2c69)

1.7.2 (2023-03-16)

Bug Fixes

1.7.1 (2023-03-16)

Bug Fixes

1.7.0 (2023-03-16)

Features

  • replaced get-value and set-value with a super charged version of CoCreate-events (3f6de0d)

1.6.7 (2023-02-01)

Bug Fixes

1.6.6 (2023-02-01)

Bug Fixes

1.6.5 (2023-01-31)

Bug Fixes

1.6.4 (2023-01-30)

Bug Fixes

1.6.3 (2023-01-29)

Bug Fixes

1.6.2 (2023-01-29)

Bug Fixes

1.6.1 (2023-01-28)

Bug Fixes

  • const status to let status (a7eb36c)

1.6.0 (2023-01-28)

Features

1.5.34 (2023-01-27)

Bug Fixes

1.5.33 (2023-01-27)

Bug Fixes

1.5.32 (2023-01-13)

Bug Fixes

1.5.31 (2023-01-13)

Bug Fixes

1.5.30 (2023-01-10)

Bug Fixes

1.5.29 (2023-01-09)

Bug Fixes

1.5.28 (2023-01-09)

Bug Fixes

1.5.27 (2023-01-06)

Bug Fixes

1.5.26 (2023-01-05)

Bug Fixes

1.5.25 (2023-01-05)

Bug Fixes

1.5.24 (2023-01-01)

Bug Fixes

1.5.23 (2022-12-31)

Bug Fixes

1.5.22 (2022-12-31)

Bug Fixes

1.5.21 (2022-12-30)

Bug Fixes

  • update config sources to use template braces with entry on src (1ec17d0)

1.5.20 (2022-12-29)

Bug Fixes

1.5.19 (2022-12-29)

Bug Fixes

1.5.18 (2022-12-27)

Bug Fixes

1.5.17 (2022-12-27)

Bug Fixes

1.5.16 (2022-12-27)

Bug Fixes

  • bump dependencies (ddfbb93)
  • removed !data.document condition that resulted in preventing readDocuments using filter (8a2b9a9)

1.5.15 (2022-12-25)

Bug Fixes

1.5.14 (2022-12-25)

Bug Fixes

  • bump dependencies (1b5ccc7)
  • generateDb permissions actions update (c8923be)

1.5.13 (2022-12-24)

Bug Fixes

  • createDb apiKey admin set to false (d3e8885)

1.5.12 (2022-12-23)

Bug Fixes

1.5.11 (2022-12-22)

Bug Fixes

1.5.10 (2022-12-22)

Bug Fixes

  • update demos and bump dependencies (8c6d8c7)

1.5.9 (2022-12-21)

Bug Fixes

1.5.8 (2022-12-20)

Bug Fixes

1.5.7 (2022-12-15)

Bug Fixes

  • add missing dev dependency style-loader (40fa8bb)

1.5.6 (2022-12-13)

Bug Fixes

  • removed un used devDependencies (a96a9f5)

1.5.5 (2022-12-13)

Bug Fixes

1.5.4 (2022-12-13)

Bug Fixes

  • bump @cocreate/utils (1724bfe)
  • sort direction using keyword asc desc (61d9348)

1.5.3 (2022-12-12)

Bug Fixes

1.5.2 (2022-12-12)

Bug Fixes

1.5.1 (2022-12-11)

Bug Fixes

1.5.0 (2022-12-11)

Bug Fixes

Features

  • query, search and sort databases, collections, and indexes (fd3f248)

1.4.16 (2022-12-09)

Bug Fixes

1.4.15 (2022-12-09)

Bug Fixes

1.4.14 (2022-12-08)

Bug Fixes

1.4.13 (2022-12-08)

Bug Fixes

1.4.12 (2022-12-07)

Bug Fixes

1.4.11 (2022-12-07)

Bug Fixes

1.4.10 (2022-12-04)

Bug Fixes

1.4.9 (2022-12-04)

Bug Fixes

1.4.8 (2022-12-02)

Bug Fixes

1.4.7 (2022-12-02)

Bug Fixes

1.4.6 (2022-12-02)

Bug Fixes

  • bump @cocreat/utils (4b4801f)
  • export default (33e1721)
  • if condition for readDocument _id, if condition for count results to prevent error. sortType renamed to direction (5b3d817)
  • if data.organization_id add to document (55e7ad7)

1.4.5 (2022-11-28)

Bug Fixes

1.4.4 (2022-11-28)

Bug Fixes

  • if condition data.filter (7d1aee2)

1.4.3 (2022-11-28)

Bug Fixes

1.4.2 (2022-11-28)

Bug Fixes

1.4.1 (2022-11-27)

Bug Fixes

1.4.0 (2022-11-27)

Features

  • if sort is applied creates index on object store before opening cursor (ce667c5)

1.3.12 (2022-11-26)

Bug Fixes

  • delete db, database and collection from doc before storing in indexeddb (642bca1)

1.3.11 (2022-11-26)

Bug Fixes

1.3.10 (2022-11-25)

Bug Fixes

  • removed @cocreate/filter (3452b95)

1.3.9 (2022-11-25)

Bug Fixes

1.3.8 (2022-11-25)

Bug Fixes

  • bump dependencies (45bbda1)
  • CoCreate.crud.default removed bug causing default object (3690c7b)
  • dotNotationToObject param order was in reverse (2d234fc)

1.3.7 (2022-11-24)

Bug Fixes

1.3.6 (2022-11-23)

Bug Fixes

1.3.5 (2022-11-22)

Bug Fixes

  • apply src: {{source}} to CoCreate.config (5b0cab1)
  • workflow docs (2670996)

1.3.4 (2022-11-21)

Bug Fixes

1.3.3 (2022-11-21)

Bug Fixes

  • replaced document_id with document._id (93ba32a)

1.3.2 (2022-11-21)

Bug Fixes

1.3.1 (2022-11-21)

Bug Fixes

  • bump d@cocreate ependencies (010627d)

1.3.0 (2022-11-21)

Bug Fixes

  • readDocument returns documents containing db, database and collection (344a027)
  • removed data.data (7ffc284)
  • removed data.data (40412c4)
  • renamed data.data to data.document (0550c6b)

Features

  • CRUD multiple databases, collections and documents with a single request. (aaf9640)
  • data response also available as data.document, improved handeling of data[type] (ff9b8de)
  • Params c valuesn be a string or an array (46ecb92)
  • return db or indexeddb instance (026b63d)

1.2.11 (2022-10-02)

Bug Fixes

1.2.10 (2022-10-02)

Bug Fixes

1.2.9 (2022-10-02)

Bug Fixes

  • bump @cocreate/hosting and @cocreate/socket-client (f4cec74)

1.2.8 (2022-10-01)

Bug Fixes

1.2.7 (2022-10-01)

Bug Fixes

1.2.6 (2022-09-30)

Bug Fixes

1.2.5 (2022-09-30)

Bug Fixes

1.2.4 (2022-09-30)

Bug Fixes

1.2.3 (2022-09-30)

Bug Fixes

1.2.2 (2022-09-29)

Bug Fixes

  • config renameed to CoCreateConfig (c626a24)

1.2.1 (2022-09-28)

Bug Fixes

  • define database in generateDB (919b3c8)

1.2.0 (2022-09-28)

Features

  • generateDB to apply minimum data required to indexeddb (c98f808)

1.1.2 (2022-09-22)

Bug Fixes

1.1.1 (2022-09-21)

Bug Fixes

1.1.0 (2022-09-21)

Bug Fixes

  • bump dependencies (cba0d67)
  • database - if data.collection (58bf598)
  • readDocuments returns an empty array if collection or dat does not exist (3a68bae)

Features

  • sync function to compare modified dateTime and insert to indexeddb (41ce499)
  • update and delete keys, readDocuments and read collections return a filter and sorted array (8446332)

1.0.0 (2022-09-10)

Features