Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Necrelox committed Jan 7, 2025
2 parents e73dfa5 + 7bb8b14 commit f85bd6b
Show file tree
Hide file tree
Showing 56 changed files with 450 additions and 434 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ build
docs/
coverage/

node_modules

tsconfig.tsbuildinfo
node_modules
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
*.tgz
bun.lockb
pnpm-lock.yaml
tsconfig.tsbuildinfo

# === Bundler configuration files ===
bundler.config.ts
bundler.ts
CHANGELOG.md

# === Documentation-related folders ===
Expand Down
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,63 @@
# Changelog

## v1.11.0-canary-20250107-f1de4fe

[compare changes](https://github.com/Basalt-Lab/basalt-helper/compare/v1.10.4-canary-20250107-f743ff5...v1.11.0-canary-20250107-f1de4fe)

### 🚀 Enhancements

- **🚀:** Update register & get methods to take class with c'tor args ([4f6990f](https://github.com/Basalt-Lab/basalt-helper/commit/4f6990f))

### 🧹 Refactors

- **🔧:** Singleton storage into a single registry + args in register ([6d168cb](https://github.com/Basalt-Lab/basalt-helper/commit/6d168cb))

### 🦉 Chore

- **🦉:** Update copyright year to 2025 in LICENSE file ([dd85d63](https://github.com/Basalt-Lab/basalt-helper/commit/dd85d63))
- **🦉:** V1.11.0-canary-20250107-eaefc28 ([b46fcfb](https://github.com/Basalt-Lab/basalt-helper/commit/b46fcfb))

### 🧪 Tests

- **🧪:** Enhance SingletonManager tests with add class and arg handling ([6f3a88c](https://github.com/Basalt-Lab/basalt-helper/commit/6f3a88c))

### ❤️ Contributors

- Ruby <[email protected]>
- Github-actions <[email protected]>

## v1.11.0-canary-20250107-eaefc28

[compare changes](https://github.com/Basalt-Lab/basalt-helper/compare/v1.10.4-canary-20250107-f743ff5...v1.11.0-canary-20250107-eaefc28)

### 🚀 Enhancements

- **🚀:** Update register & get methods to take class with c'tor args ([4f6990f](https://github.com/Basalt-Lab/basalt-helper/commit/4f6990f))

### 🦉 Chore

- **🦉:** Update copyright year to 2025 in LICENSE file ([dd85d63](https://github.com/Basalt-Lab/basalt-helper/commit/dd85d63))

### 🧪 Tests

- **🧪:** Enhance SingletonManager tests with add class and arg handling ([6f3a88c](https://github.com/Basalt-Lab/basalt-helper/commit/6f3a88c))

### ❤️ Contributors

- Ruby <[email protected]>

## v1.10.4-canary-20250107-f743ff5

[compare changes](https://github.com/Basalt-Lab/basalt-helper/compare/v1.10.3...v1.10.4-canary-20250107-f743ff5)

### 🧹 Refactors

- **🧹:** Architecture + code + tests ([59d1c9f](https://github.com/Basalt-Lab/basalt-helper/commit/59d1c9f))

### ❤️ Contributors

- Ruby <[email protected]>

## v1.10.3

[compare changes](https://github.com/Basalt-Lab/basalt-helper/compare/v1.10.2...v1.10.3)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Basalt
Copyright (c) 2025 Basalt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Binary file modified bun.lockb
Binary file not shown.
37 changes: 26 additions & 11 deletions bundler.config.ts → bundler.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
import dts from 'bun-plugin-dts';

import pkg from './package.json';

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

await Bun.build({
target: 'node',
external: [...dependencies, ...devDependencies, ...peerDependencies],
root: './source',
entrypoints: [
'./source/index.ts',
'./source/common/error/index.ts',
'./source/common/type/data/index.ts',
'./source/common/util/index.ts',
'./source/domain/service/data/index.ts',
'./source/domain/service/data/strategy/transformer/index.ts',
'./source/domain/service/global/index.ts',
'./source/domain/service/security/index.ts',
'./source/common/i18n/index.ts'
'./source/core/data/index.ts',
'./source/core/data/transformer/index.ts',

'./source/core/security/index.ts',

'./source/core/util/index.ts',

'./source/error/index.ts',
'./source/error/key/index.ts',

'./source/i18n/index.ts',

'./source/types/index.ts',

'./source/index.ts'
],
plugins: [
dts({
output: {
noBanner: true
}
})
],
outdir: './build',
splitting: true,
format: 'esm',
minify: true,
sourcemap: process.env.NODE_ENV === 'development' ? 'external' : 'none',
target: 'node',
sourcemap: 'none'
});
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ export default [
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
'@typescript-eslint/no-dynamic-delete': 'off'
'@typescript-eslint/no-dynamic-delete': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off'
}
}
];
74 changes: 20 additions & 54 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,60 +1,24 @@
{
"name": "@basalt-lab/basalt-helper",
"version": "1.10.3",
"version": "1.11.0-canary-20250107-f1de4fe",
"description": "Helper of Basalt Framework",
"type": "module",
"types": "build/index.d.ts",
"exports": {
".": {
"types": "./build/index.d.ts",
"import": "./build/index.js",
"require": "./build/index.js"
},
"./error": {
"types": "./build/common/error/index.d.js",
"import": "./build/common/error/index.js",
"require": "./build/common/error/index.js"
},
"./type": {
"types": "./build/common/type/data/index.d.js",
"import": "./build/common/type/data/index.js",
"require": "./build/common/type/data/index.js"
},
"./util": {
"types": "./build/common/util/index.d.js",
"import": "./build/common/util/index.js",
"require": "./build/common/util/index.js"
},
"./data": {
"types": "./build/domain/service/data/index.d.js",
"import": "./build/domain/service/data/index.js",
"require": "./build/domain/service/data/index.js"
},
"./transformerStrategies": {
"types": "./build/domain/service/data/transformerStrategies/index.d.js",
"import": "./build/domain/service/data/transformerStrategies/index.js",
"require": "./build/domain/service/data/transformerStrategies/index.js"
},
"./global": {
"types": "./build/domain/service/global/index.d.js",
"import": "./build/domain/service/global/index.js",
"require": "./build/domain/service/global/index.js"
},
"./security": {
"types": "./build/domain/service/security/index.d.js",
"import": "./build/domain/service/security/index.js",
"require": "./build/domain/service/security/index.js"
},
"./translation": {
"types": "./build/common/i18n/index.d.js",
"import": "./build/common/i18n/index.js",
"require": "./build/common/i18n/index.js"
}
"./data": "./build/core/data/index.js",
"./data/transformer": "./build/core/data/transformer",
"./security": "./build/core/security/index.js",
"./util": "./build/core/util/index.js",
"./error": "./build/error/index.js",
"./error/key": "./build/error/key/index.js",
"./i18n": "./build/i18n/index.js",
"./types": "./build/types/index.js",
".": "./build/index.js"
},
"scripts": {
"dev": "bun --watch source/index.ts",
"build": "tsc && tsc-alias && NODE_ENV=production bun bundler.config.ts",
"start": "NODE_ENV=production bun build/index.js",
"build": "bun bundler.ts",
"start": "bun build/index.js",
"test": "bun test --coverage",
"docs": "typedoc",
"fix-lint": "eslint --fix ./source",
Expand All @@ -76,15 +40,17 @@
"url": "https://github.com/Basalt-Lab/basalt-helper/issues"
},
"devDependencies": {
"@types/bun": "^1.1.14",
"@types/node": "^22.10.2",
"@eslint/js": "^9.17.0",
"@stylistic/eslint-plugin": "^2.12.1",
"eslint": "^9.17.0",
"@types/bun": "^1.1.15",
"@types/node": "^22.10.5",
"bun-plugin-dts": "^0.3.0",
"eslint-plugin-tsdoc": "^0.4.0",
"typescript-eslint": "^8.18.1",
"tsc-alias": "^1.8.10",
"typedoc": "^0.27.5",
"eslint": "^9.17.0",
"typescript-eslint": "^8.19.1",
"typedoc": "^0.27.6"
},
"peerDependencies": {
"typescript": "^5.7.2"
},
"dependencies": {
Expand Down
20 changes: 0 additions & 20 deletions source/common/error/global.error.ts

This file was deleted.

2 changes: 0 additions & 2 deletions source/common/error/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions source/common/i18n/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion source/common/type/data/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions source/common/util/index.ts

This file was deleted.

12 changes: 0 additions & 12 deletions source/common/util/sleep.ts

This file was deleted.

Loading

0 comments on commit f85bd6b

Please sign in to comment.