Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit b1d7806

Browse files
committed
Merge branch 'develop'
2 parents fc49501 + 3f76a37 commit b1d7806

37 files changed

+213
-185
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ build
55
docs/
66
coverage/
77

8-
node_modules
9-
10-
tsconfig.tsbuildinfo
8+
node_modules

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
*.tgz
1010
bun.lockb
1111
pnpm-lock.yaml
12-
tsconfig.tsbuildinfo
1312

1413
# === Bundler configuration files ===
15-
bundler.config.ts
14+
bundler.ts
1615
CHANGELOG.md
1716

1817
# === Documentation-related folders ===

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v23.4
1+
v23.5

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## v1.9.4-canary-20250107-fa9edf8
4+
5+
[compare changes](https://github.com/Basalt-Lab/basalt-auth/compare/v1.9.3...v1.9.4-canary-20250107-fa9edf8)
6+
7+
### 🧹 Refactors
8+
9+
- **🧹:** Architecture + code + tests ([fb27e41](https://github.com/Basalt-Lab/basalt-auth/commit/fb27e41))
10+
11+
### ❤️ Contributors
12+
13+
14+
315
## v1.9.3
416

517
[compare changes](https://github.com/Basalt-Lab/basalt-auth/compare/v1.9.2...v1.9.3)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Basalt
3+
Copyright (c) 2025 Basalt
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

bun.lockb

359 Bytes
Binary file not shown.
Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
1+
import dts from 'bun-plugin-dts';
2+
13
import pkg from './package.json';
24

35
const dependencies = 'dependencies' in pkg ? Object.keys(pkg.dependencies ?? {}) : [];
46
const devDependencies = 'devDependencies' in pkg ? Object.keys(pkg.devDependencies ?? {}) : [];
57
const peerDependencies = 'peerDependencies' in pkg ? Object.keys(pkg.peerDependencies ?? {}) : [];
68

79
await Bun.build({
10+
target: 'node',
811
external: [...dependencies, ...devDependencies, ...peerDependencies],
912
root: './source',
1013
entrypoints: [
11-
'./source/index.ts',
12-
'./source/common/error/index.ts',
13-
'./source/common/type/data/index.ts',
14-
'./source/domain/service/basaltToken.service.ts',
15-
'./source/common/i18n/index.ts'
14+
'./source/core/index.ts',
15+
16+
'./source/error/index.ts',
17+
'./source/error/key/index.ts',
18+
19+
'./source/i18n/index.ts',
20+
21+
'./source/types/index.ts',
22+
23+
'./source/index.ts'
24+
],
25+
plugins: [
26+
dts({
27+
output: {
28+
noBanner: true
29+
}
30+
})
1631
],
1732
outdir: './build',
1833
splitting: true,
1934
format: 'esm',
2035
minify: true,
21-
sourcemap: process.env.NODE_ENV === 'development' ? 'external' : 'none',
22-
target: 'node',
36+
sourcemap: 'none'
2337
});

eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ export default [
184184
'@typescript-eslint/no-unsafe-assignment': 'off',
185185
'@typescript-eslint/no-unsafe-member-access': 'off',
186186
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
187-
'@typescript-eslint/no-dynamic-delete': 'off'
187+
'@typescript-eslint/no-dynamic-delete': 'off',
188+
'@typescript-eslint/no-confusing-void-expression': 'off'
188189
}
189190
}
190191
];

package.json

Lines changed: 22 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@basalt-lab/basalt-auth",
3-
"version": "1.9.3",
3+
"version": "1.9.4-canary-20250107-fa9edf8",
44
"description": "Authentication module for Basalt Framework",
55
"keywords": [
66
"basalt-auth",
@@ -20,54 +20,37 @@
2020
"license": "MIT",
2121
"author": "Ruby",
2222
"type": "module",
23+
"types": "./build/index.d.ts",
2324
"exports": {
24-
".": {
25-
"types": "./build/index.d.ts",
26-
"import": "./build/index.js",
27-
"require": "./build/index.js"
28-
},
29-
"./error": {
30-
"types": "./build/common/error/index.d.js",
31-
"import": "./build/common/error/index.js",
32-
"require": "./build/common/error/index.js"
33-
},
34-
"./type": {
35-
"types": "./build/common/type/data/index.d.js",
36-
"import": "./build/common/type/data/index.js",
37-
"require": "./build/common/type/data/index.js"
38-
},
39-
"./token": {
40-
"types": "./build/domain/service/basaltToken.service.d.js",
41-
"import": "./build/domain/service/basaltToken.service.js",
42-
"require": "./build/domain/service/basaltToken.service.js"
43-
},
44-
"./translation": {
45-
"types": "./build/common/i18n/index.d.js",
46-
"import": "./build/common/i18n/index.js",
47-
"require": "./build/common/i18n/index.js"
48-
}
25+
"./auth": "./build/core/index.js",
26+
"./error": "./build/error/index.js",
27+
"./error/key": "./build/error/key/index.js",
28+
"./i18n": "./build/i18n/index.js",
29+
"./types": "./build/types/index.js",
30+
".": "./build/index.js"
4931
},
50-
"types": "./build/index.d.ts",
5132
"scripts": {
52-
"build": "tsc && tsc-alias && NODE_ENV=production bun bundler.config.ts",
5333
"dev": "bun --watch source/index.ts",
34+
"build": "bun bundler.ts",
35+
"start": "bun build/index.js",
36+
"test": "bun test --coverage",
5437
"docs": "typedoc",
5538
"fix-lint": "eslint --fix ./source",
56-
"lint": "eslint ./source",
57-
"start": "NODE_ENV=production bun build/index.js",
58-
"test": "bun test --coverage"
39+
"lint": "eslint ./source"
5940
},
6041
"devDependencies": {
61-
"@eslint/js": "^9.16.0",
42+
"@eslint/js": "^9.17.0",
6243
"@stylistic/eslint-plugin": "^2.12.1",
63-
"@types/bun": "^1.1.14",
64-
"@types/node": "^22.10.2",
65-
"eslint": "^9.16.0",
44+
"@types/bun": "^1.1.15",
45+
"@types/node": "^22.10.5",
46+
"bun-plugin-dts": "^0.3.0",
6647
"eslint-plugin-tsdoc": "^0.4.0",
67-
"tsc-alias": "^1.8.10",
68-
"typedoc": "^0.27.4",
69-
"typescript": "^5.7.2",
70-
"typescript-eslint": "^8.18.0"
48+
"eslint": "^9.17.0",
49+
"typescript-eslint": "^8.19.1",
50+
"typedoc": "^0.27.6"
51+
},
52+
"peerDependencies": {
53+
"typescript": "^5.7.2"
7154
},
7255
"changelog": {
7356
"types": {

source/common/error/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)