@sapphire/pieces 3.7.1-next.ebe511a.0 → 3.7.1
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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
# [3.7.1](https://github.com/sapphiredev/pieces/compare/v3.7.1...v3.7.1) - (2023-11-13)
|
|
6
|
+
|
|
7
|
+
## 🐛 Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **LoaderStrategy:** Overload empty methods for extensions (#345) ([2a971d8](https://github.com/sapphiredev/pieces/commit/2a971d8105f5215cf334cc55f9ddc894959f3907))
|
|
10
|
+
- **deps:** Update all non-major dependencies (#325) ([df91def](https://github.com/sapphiredev/pieces/commit/df91def34495165af80d0f07881c2876860e4f22))
|
|
11
|
+
- **deps:** Update all non-major dependencies (#321) ([9106543](https://github.com/sapphiredev/pieces/commit/9106543e78c695a8d1d14de369875ac7baba3f6f))
|
|
12
|
+
|
|
5
13
|
# [3.7.0](https://github.com/sapphiredev/pieces/compare/v3.6.3...v3.7.0) - (2023-07-21)
|
|
6
14
|
|
|
7
15
|
## 🐛 Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -655,11 +655,11 @@ declare class LoaderStrategy<T extends Piece> implements ILoaderStrategy<T> {
|
|
|
655
655
|
constructor();
|
|
656
656
|
filter(path: string): FilterResult;
|
|
657
657
|
preload(file: ModuleData): AsyncPreloadResult<T>;
|
|
658
|
-
load(store: Store<T>, file:
|
|
659
|
-
onLoad(): unknown
|
|
660
|
-
onLoadAll(): unknown
|
|
661
|
-
onUnload(): unknown
|
|
662
|
-
onUnloadAll(): unknown
|
|
658
|
+
load(store: Store<T>, file: HydratedModuleData): ILoaderResult<T>;
|
|
659
|
+
onLoad(store: Store<T>, piece: T): Awaitable<unknown>;
|
|
660
|
+
onLoadAll(store: Store<T>): Awaitable<unknown>;
|
|
661
|
+
onUnload(store: Store<T>, piece: T): Awaitable<unknown>;
|
|
662
|
+
onUnloadAll(store: Store<T>): Awaitable<unknown>;
|
|
663
663
|
onError(error: Error, path: string): void;
|
|
664
664
|
}
|
|
665
665
|
|
|
@@ -5,8 +5,8 @@ const utilities_1 = require("@sapphire/utilities");
|
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const url_1 = require("url");
|
|
7
7
|
const MissingExportsError_1 = require("../errors/MissingExportsError");
|
|
8
|
-
const internal_1 = require("../internal/internal");
|
|
9
8
|
const RootScan_1 = require("../internal/RootScan");
|
|
9
|
+
const internal_1 = require("../internal/internal");
|
|
10
10
|
const Shared_1 = require("./Shared");
|
|
11
11
|
/**
|
|
12
12
|
* A multi-purpose feature-complete loader strategy supporting multi-piece modules as well as supporting both ECMAScript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderStrategy.js","sourceRoot":"","sources":["../../../src/lib/strategies/LoaderStrategy.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"LoaderStrategy.js","sourceRoot":"","sources":["../../../src/lib/strategies/LoaderStrategy.ts"],"names":[],"mappings":";;;AAAA,mDAAgE;AAChE,+BAAyC;AACzC,6BAAoC;AACpC,uEAAoE;AACpE,mDAAmD;AACnD,mDAAiD;AAYjD,qCAAiD;AAEjD;;;GAGG;AACH,MAAa,cAAc;IAK1B;QAJO;;;;mBAAsB,IAAA,sBAAW,GAAE,CAAC,IAAI,KAAK,KAAK;WAAC;QACnD;;;;mBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;WAAC;QACpC;;;;mBAA0B,KAAK;WAAC;QAGhD;;;;;;;WAOG;QACH,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,IAAI,CAAC,IAAA,qBAAS,EAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,EA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AAS,CAAC;IAClB,CAAC;IAGM,WAAW;QACjB,OAAO,SAAS,CAAC;IAClB,CAAC;IAEM,OAAO,CAAC,KAAY,EAAE,IAAY;QACxC,OAAO,CAAC,KAAK,CAAC,uBAAuB,IAAI,IAAI,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;CACD;AAjGD,wCAiGC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/pieces",
|
|
3
|
-
"version": "3.7.1
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"description": "Sapphire's piece loader.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,9 +21,7 @@
|
|
|
21
21
|
"watch": "tsc -b src -w",
|
|
22
22
|
"bump": "cliff-jumper",
|
|
23
23
|
"check-update": "cliff-jumper --dry-run",
|
|
24
|
-
"
|
|
25
|
-
"prepack": "rollup-type-bundler && pinst --disable",
|
|
26
|
-
"postpack": "pinst --enable"
|
|
24
|
+
"prepack": "rollup-type-bundler"
|
|
27
25
|
},
|
|
28
26
|
"dependencies": {
|
|
29
27
|
"@discordjs/collection": "^1.5.3",
|
|
@@ -31,28 +29,26 @@
|
|
|
31
29
|
"tslib": "^2.6.2"
|
|
32
30
|
},
|
|
33
31
|
"devDependencies": {
|
|
34
|
-
"@commitlint/cli": "^
|
|
35
|
-
"@commitlint/config-conventional": "^
|
|
36
|
-
"@favware/cliff-jumper": "^2.1
|
|
32
|
+
"@commitlint/cli": "^18.4.1",
|
|
33
|
+
"@commitlint/config-conventional": "^18.4.0",
|
|
34
|
+
"@favware/cliff-jumper": "^2.2.1",
|
|
37
35
|
"@favware/npm-deprecate": "^1.0.7",
|
|
38
36
|
"@favware/rollup-type-bundler": "^2.0.0",
|
|
39
37
|
"@sapphire/eslint-config": "^5.0.2",
|
|
40
38
|
"@sapphire/prettier-config": "^2.0.0",
|
|
41
39
|
"@sapphire/ts-config": "^5.0.0",
|
|
42
|
-
"@types/node": "^
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
44
|
-
"@typescript-eslint/parser": "^6.
|
|
40
|
+
"@types/node": "^20.9.0",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^6.11.0",
|
|
42
|
+
"@typescript-eslint/parser": "^6.11.0",
|
|
45
43
|
"cz-conventional-changelog": "^3.3.0",
|
|
46
|
-
"eslint": "^8.
|
|
44
|
+
"eslint": "^8.53.0",
|
|
47
45
|
"eslint-config-prettier": "^9.0.0",
|
|
48
|
-
"eslint-plugin-prettier": "^5.0.
|
|
46
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
49
47
|
"gen-esm-wrapper": "^1.1.3",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"typedoc": "^0.25.0",
|
|
55
|
-
"typedoc-json-parser": "^8.2.0",
|
|
48
|
+
"lint-staged": "^15.1.0",
|
|
49
|
+
"prettier": "^3.1.0",
|
|
50
|
+
"typedoc": "^0.25.3",
|
|
51
|
+
"typedoc-json-parser": "^9.0.1",
|
|
56
52
|
"typescript": "^5.2.2"
|
|
57
53
|
},
|
|
58
54
|
"repository": {
|
|
@@ -99,10 +95,10 @@
|
|
|
99
95
|
"access": "public"
|
|
100
96
|
},
|
|
101
97
|
"resolutions": {
|
|
102
|
-
"acorn": "^8.
|
|
98
|
+
"acorn": "^8.11.2",
|
|
103
99
|
"ansi-regex": "^5.0.1",
|
|
104
100
|
"minimist": "^1.2.8"
|
|
105
101
|
},
|
|
106
102
|
"prettier": "@sapphire/prettier-config",
|
|
107
|
-
"packageManager": "yarn@
|
|
103
|
+
"packageManager": "yarn@4.0.1"
|
|
108
104
|
}
|