Skip to content

Commit 44af60a

Browse files
committed
chore: stuff
Have fun @RealShadowNova
1 parent ce4b364 commit 44af60a

21 files changed

+1874
-327
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: indexeddb
2+
org: joshdb
3+
packagePath: packages/indexeddb
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
json: 'docs/api.json'

packages/indexeddb/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.

packages/indexeddb/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<div align="center">
2+
3+
![Josh Logo](https://evie.codes/josh-light.png)
4+
5+
# @joshdb/indexeddb
6+
7+
**A provider for `@joshdb/core`**
8+
9+
[![GitHub](https://img.shields.io/github/license/josh-development/providers)](https://github.com/josh-development/providers/blob/main/LICENSE.md)
10+
[![codecov](https://codecov.io/gh/josh-development/providers/branch/main/graph/badge.svg?token=JnJcjxqT3k)](https://codecov.io/gh/josh-development/providers)
11+
[![npm](https://img.shields.io/npm/v/@joshdb/indexeddb?color=crimson&logo=npm&style=flat-square)](https://www.npmjs.com/package/@joshdb/indexeddb)
12+
13+
[![Support Server](https://discord.com/api/guilds/298508738623438848/embed.png?style=banner2)](https://discord.gg/N7ZKH3P)
14+
15+
</div>
16+
17+
## Description
18+
19+
A Josh provider
20+
21+
## Features
22+
23+
- Written in TypeScript
24+
- Offers CommonJS and ESM bundles
25+
- Fully tested
26+
27+
## Installation
28+
29+
You can use the following command to install this package, or replace `npm install` with your package manager of choice.
30+
31+
```sh
32+
npm install @joshdb/indexeddb
33+
```

packages/indexeddb/cliff.toml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
[changelog]
2+
header = """
3+
# Changelog
4+
5+
All notable changes to this project will be documented in this file.
6+
7+
"""
8+
body = """
9+
{% if version %}\
10+
# [{{ version | trim_start_matches(pat="v") }}]\
11+
{% if previous %}\
12+
{% if previous.version %}\
13+
(https://github.com/josh-development/utilities/compare/{{ previous.version }}...{{ version }})\
14+
{% else %}\
15+
(https://github.com/josh-development/utilities/tree/{{ version }})\
16+
{% endif %}\
17+
{% endif %} \
18+
- ({{ timestamp | date(format="%Y-%m-%d") }})
19+
{% else %}\
20+
# [unreleased]
21+
{% endif %}\
22+
{% for group, commits in commits | group_by(attribute="group") %}
23+
## {{ group | upper_first }}
24+
{% for commit in commits %}
25+
- {% if commit.scope %}\
26+
**{{commit.scope}}:** \
27+
{% endif %}\
28+
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/josh-development/utilities/commit/{{ commit.id }}))\
29+
{% if commit.breaking %}\
30+
31+
32+
{% raw %} {% endraw %} ### 💥 Breaking Changes:
33+
\
34+
{% for breakingChange in commit.footers %}\
35+
{% raw %} {% endraw %} - {{ breakingChange }}
36+
\
37+
{% endfor %}\
38+
{% endif %}\
39+
{% endfor %}
40+
{% endfor %}
41+
42+
"""
43+
trim = true
44+
footer = ""
45+
46+
[git]
47+
conventional_commits = true
48+
filter_unconventional = true
49+
commit_parsers = [
50+
{ message = "^feat", group = "🚀 Features" },
51+
{ message = "^fix", group = "🐛 Bug Fixes" },
52+
{ message = "^docs", group = "📝 Documentation" },
53+
{ message = "^perf", group = "🏃 Performance" },
54+
{ message = "^refactor", group = "🏠 Refactor" },
55+
{ message = ".*deprecated", body = ".*deprecated", group = "🚨 Deprecation" },
56+
{ message = "^revert", skip = true },
57+
{ message = "^style", group = "🪞 Styling" },
58+
{ message = "^test", group = "🧪 Testing" },
59+
{ message = "^chore", skip = true },
60+
{ message = "^ci", skip = true },
61+
{ body = ".*security", group = "🛡️ Security" },
62+
]
63+
filter_commits = true
64+
tag_pattern = "@joshdb/indexeddb@[0-9]*"
65+
ignore_tags = ""
66+
topo_order = false
67+
sort_commits = "newest"

packages/indexeddb/jest.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const config = {
1010
tsconfig: '<rootDir>/tests/tsconfig.json'
1111
}
1212
},
13-
coverageDirectory: '../../coverage/json',
1413
coveragePathIgnorePatterns: []
1514
};
1615

packages/indexeddb/package.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@joshdb/indexeddb",
33
"version": "2.0.0",
4+
"description": "A Josh provider",
45
"author": "Évelyne Lachance <[email protected]> (https://evie.codes/)",
56
"contributors": [
67
"WilsontheWolf (https://wilson.antti.codes/)",
@@ -9,6 +10,8 @@
910
"license": "Apache-2.0",
1011
"main": "dist/index.js",
1112
"module": "dist/index.mjs",
13+
"browser": "dist/index.umd.js",
14+
"unpkg": "dist/index.umd.js",
1215
"types": "dist/index.d.ts",
1316
"exports": {
1417
"import": "./dist/index.mjs",
@@ -17,7 +20,7 @@
1720
},
1821
"sideEffects": false,
1922
"scripts": {
20-
"test": "jest",
23+
"test": "jest --verbose",
2124
"docs": "typedoc-json-parser",
2225
"lint": "eslint src tests --ext ts --fix -c ../../.eslintrc",
2326
"build": "rollup -c rollup.config.ts",
@@ -26,20 +29,28 @@
2629
"check-update": "cliff-jumper --dry-run"
2730
},
2831
"dependencies": {
29-
"@joshdb/core": "next",
30-
"@realware/utilities": "^2.0.2"
32+
"@joshdb/provider": "1.1.0-next.24ef775.0",
33+
"property-helpers": "^1.1.0"
34+
},
35+
"devDependencies": {
36+
"@favware/cliff-jumper": "^1.8.5",
37+
"@favware/rollup-type-bundler": "^1.0.9",
38+
"fake-indexeddb": "^4.0.0",
39+
"jest": "^28.1.3",
40+
"typedoc": "^0.23.9",
41+
"typedoc-json-parser": "^2.0.1"
3142
},
3243
"repository": {
3344
"type": "git",
34-
"url": "git+https://github.com/eslachance/josh-providers"
45+
"url": "git+https://github.com/josh-development/providers.git"
3546
},
3647
"files": [
3748
"dist",
3849
"!dist/*tsbuildinfo"
3950
],
4051
"engines": {
41-
"node": ">=16",
42-
"npm": ">=6"
52+
"node": ">=16.6.0",
53+
"npm": ">=7.0.0"
4354
},
4455
"keywords": [],
4556
"bugs": {
@@ -48,9 +59,5 @@
4859
"homepage": "https://josh.evie.dev",
4960
"publishConfig": {
5061
"access": "public"
51-
},
52-
"devDependencies": {
53-
"fake-indexeddb": "^3.1.7",
54-
"jest": "^28.1.3"
5562
}
5663
}

packages/indexeddb/rollup.config.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { resolve } from 'path';
2+
import cleaner from 'rollup-plugin-cleaner';
3+
import typescript from 'rollup-plugin-typescript2';
4+
import versionInjector from 'rollup-plugin-version-injector';
5+
6+
export default {
7+
input: 'src/index.ts',
8+
output: [
9+
{
10+
file: './dist/index.js',
11+
format: 'cjs',
12+
exports: 'named',
13+
sourcemap: true
14+
},
15+
{
16+
file: './dist/index.mjs',
17+
format: 'es',
18+
exports: 'named',
19+
sourcemap: true
20+
},
21+
{
22+
file: './dist/index.umd.js',
23+
format: 'umd',
24+
name: 'JoshIndexedDBProvider',
25+
exports: 'named',
26+
sourcemap: true,
27+
globals: {
28+
'@joshdb/provider': 'JoshProvider'
29+
}
30+
}
31+
],
32+
external: ['@joshdb/provider'],
33+
plugins: [cleaner({ targets: ['./dist'] }), typescript({ tsconfig: resolve(process.cwd(), 'src', 'tsconfig.json') }), versionInjector()]
34+
};

packages/indexeddb/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
export const version = '[VI]{version}[/VI]';
2-
31
export * from './lib/IndexedDBProvider';
4-
export * from './lib/IndexedDBProviderError';

0 commit comments

Comments
 (0)