@cocreate/indexeddb 1.24.1 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ name: Automated Workflow
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
 
8
8
  jobs:
9
9
  about:
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.24.2](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.24.1...v1.24.2) (2026-07-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * set default branch to main ([57eef3f](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/57eef3f116e554885abe324e57e8de646a6a6a63))
7
+
1
8
  ## [1.24.1](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.24.0...v1.24.1) (2026-07-17)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/indexeddb",
3
- "version": "1.24.1",
3
+ "version": "1.25.0",
4
4
  "description": "A simple indexeddb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "indexeddb",
@@ -34,15 +34,16 @@
34
34
  "type": "GitHub Sponsors ❤",
35
35
  "url": "https://github.com/sponsors/CoCreate-app"
36
36
  },
37
+ "type": "module",
37
38
  "main": "./src/index.js",
38
- "dependencies": {
39
- "@cocreate/utils": "^1.44.0"
40
- },
41
39
  "devDependencies": {
42
- "@cocreate/webpack": "^1.6.0"
40
+ "@cocreate/webpack": "^1.6.2"
41
+ },
42
+ "dependencies": {
43
+ "@cocreate/utils": "^1.44.3"
43
44
  },
44
45
  "allowScripts": {
45
46
  "@cocreate/utils@1.42.2": true,
46
47
  "@cocreate/webpack@1.4.3": true
47
48
  }
48
- }
49
+ }
package/release.config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  dryRun: false,
3
- branches: ["master"],
3
+ branches: ["main"],
4
4
  plugins: [
5
5
  "@semantic-release/commit-analyzer",
6
6
  "@semantic-release/release-notes-generator",
package/src/index.js CHANGED
@@ -34,10 +34,13 @@ import {
34
34
  } from "@cocreate/utils";
35
35
 
36
36
  let indexedDbFunction;
37
+ const isBrowser = typeof window !== "undefined";
37
38
 
38
39
  function init() {
39
40
  // Check for support.
40
- if (!("indexedDB" in window)) {
41
+ if (!isBrowser) {
42
+ return;
43
+ } else if (!("indexedDB" in window)) {
41
44
  console.log("This browser doesn't support IndexedDB.");
42
45
  setStatus(false);
43
46
  return;