@sapphire/pieces 3.5.3-next.eaba587.0 β 3.6.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.
- package/CHANGELOG.md +15 -0
- package/README.md +23 -18
- package/dist/lib/strategies/LoaderStrategy.js +2 -2
- package/dist/lib/strategies/LoaderStrategy.js.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
# [3.6.0](https://github.com/sapphiredev/pieces/compare/v3.5.2...v3.6.0) - (2022-10-31)
|
|
6
|
+
|
|
7
|
+
## π Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **deps:** Update all non-major dependencies (#257) ([cd043b8](https://github.com/sapphiredev/pieces/commit/cd043b8808b9649ee4b8f4079d89acbc287c4009))
|
|
10
|
+
- **deps:** Update dependency @sapphire/utilities to ^3.11.0 (#258) ([ab31a5e](https://github.com/sapphiredev/pieces/commit/ab31a5e7336e2e2163c1a9d2c04a7df365886f5f))
|
|
11
|
+
|
|
12
|
+
## π Documentation
|
|
13
|
+
|
|
14
|
+
- Add qyurila as a contributor for code (#271) ([4a30034](https://github.com/sapphiredev/pieces/commit/4a30034ab8a27eebedfc48d5e4cad7b99fd3df50))
|
|
15
|
+
|
|
16
|
+
## π Features
|
|
17
|
+
|
|
18
|
+
- Support loading ESModule TS files when using ts-node (#270) ([bf58baa](https://github.com/sapphiredev/pieces/commit/bf58baadc3684ea05da4a10bea228f46ab44738d))
|
|
19
|
+
|
|
5
20
|
# [3.5.2](https://github.com/sapphiredev/pieces/compare/v3.5.1...v3.5.2) - (2022-10-02)
|
|
6
21
|
|
|
7
22
|
## π Bug Fixes
|
package/README.md
CHANGED
|
@@ -37,24 +37,29 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
37
37
|
<!-- prettier-ignore-start -->
|
|
38
38
|
<!-- markdownlint-disable -->
|
|
39
39
|
<table>
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
40
|
+
<tbody>
|
|
41
|
+
<tr>
|
|
42
|
+
<td align="center"><a href="https://github.com/kyranet"><img src="https://avatars0.githubusercontent.com/u/24852502?v=4?s=100" width="100px;" alt="Antonio RomΓ‘n"/><br /><sub><b>Antonio RomΓ‘n</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=kyranet" title="Code">π»</a> <a href="https://github.com/sapphiredev/pieces/commits?author=kyranet" title="Documentation">π</a> <a href="#design-kyranet" title="Design">π¨</a> <a href="#ideas-kyranet" title="Ideas, Planning, & Feedback">π€</a> <a href="#infra-kyranet" title="Infrastructure (Hosting, Build-Tools, etc)">π</a> <a href="#projectManagement-kyranet" title="Project Management">π</a></td>
|
|
43
|
+
<td align="center"><a href="https://Quantumlyy.com/"><img src="https://avatars1.githubusercontent.com/u/7919610?v=4?s=100" width="100px;" alt="Nejc"/><br /><sub><b>Nejc</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=Quantumlyy" title="Code">π»</a> <a href="#userTesting-Quantumlyy" title="User Testing">π</a></td>
|
|
44
|
+
<td align="center"><a href="https://favware.tech"><img src="https://avatars3.githubusercontent.com/u/4019718?v=4?s=100" width="100px;" alt="Jeroen Claassens"/><br /><sub><b>Jeroen Claassens</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=favna" title="Code">π»</a> <a href="#infra-favna" title="Infrastructure (Hosting, Build-Tools, etc)">π</a></td>
|
|
45
|
+
<td align="center"><a href="http://leonard.sh"><img src="https://avatars.githubusercontent.com/u/35312043?v=4?s=100" width="100px;" alt="Narcis B."/><br /><sub><b>Narcis B.</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=leonardssh" title="Documentation">π</a> <a href="https://github.com/sapphiredev/pieces/commits?author=leonardssh" title="Code">π»</a></td>
|
|
46
|
+
<td align="center"><a href="https://github.com/hblomqvist"><img src="https://avatars.githubusercontent.com/u/74746184?v=4?s=100" width="100px;" alt="Henning Blomqvist"/><br /><sub><b>Henning Blomqvist</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=hblomqvist" title="Code">π»</a></td>
|
|
47
|
+
<td align="center"><a href="https://github.com/Stitch07"><img src="https://avatars.githubusercontent.com/u/29275227?v=4?s=100" width="100px;" alt="Stitch07"/><br /><sub><b>Stitch07</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=Stitch07" title="Code">π»</a></td>
|
|
48
|
+
<td align="center"><a href="https://github.com/vladfrangu"><img src="https://avatars.githubusercontent.com/u/17960496?v=4?s=100" width="100px;" alt="Vlad Frangu"/><br /><sub><b>Vlad Frangu</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=vladfrangu" title="Code">π»</a></td>
|
|
49
|
+
</tr>
|
|
50
|
+
<tr>
|
|
51
|
+
<td align="center"><a href="https://github.com/apps/depfu"><img src="https://avatars.githubusercontent.com/in/715?v=4?s=100" width="100px;" alt="depfu[bot]"/><br /><sub><b>depfu[bot]</b></sub></a><br /><a href="#maintenance-depfu[bot]" title="Maintenance">π§</a></td>
|
|
52
|
+
<td align="center"><a href="https://github.com/apps/renovate"><img src="https://avatars.githubusercontent.com/in/2740?v=4?s=100" width="100px;" alt="renovate[bot]"/><br /><sub><b>renovate[bot]</b></sub></a><br /><a href="#maintenance-renovate[bot]" title="Maintenance">π§</a></td>
|
|
53
|
+
<td align="center"><a href="https://github.com/apps/allcontributors"><img src="https://avatars.githubusercontent.com/in/23186?v=4?s=100" width="100px;" alt="allcontributors[bot]"/><br /><sub><b>allcontributors[bot]</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=allcontributors[bot]" title="Documentation">π</a></td>
|
|
54
|
+
<td align="center"><a href="https://github.com/apps/dependabot"><img src="https://avatars.githubusercontent.com/in/29110?v=4?s=100" width="100px;" alt="dependabot[bot]"/><br /><sub><b>dependabot[bot]</b></sub></a><br /><a href="#maintenance-dependabot[bot]" title="Maintenance">π§</a></td>
|
|
55
|
+
<td align="center"><a href="https://github.com/Lioness100"><img src="https://avatars.githubusercontent.com/u/65814829?v=4?s=100" width="100px;" alt="Lioness100"/><br /><sub><b>Lioness100</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=Lioness100" title="Code">π»</a></td>
|
|
56
|
+
<td align="center"><a href="https://github.com/r-priyam"><img src="https://avatars.githubusercontent.com/u/50884372?v=4?s=100" width="100px;" alt="Priyam"/><br /><sub><b>Priyam</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=r-priyam" title="Documentation">π</a></td>
|
|
57
|
+
<td align="center"><a href="https://github.com/RealShadowNova"><img src="https://avatars.githubusercontent.com/u/46537907?v=4?s=100" width="100px;" alt="Hezekiah Hendry"/><br /><sub><b>Hezekiah Hendry</b></sub></a><br /><a href="#tool-RealShadowNova" title="Tools">π§</a></td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td align="center"><a href="https://rea9lizer.carrd.co"><img src="https://avatars.githubusercontent.com/u/68494132?v=4?s=100" width="100px;" alt="QriLa | Hyeon Gu"/><br /><sub><b>QriLa | Hyeon Gu</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=qyurila" title="Code">π»</a></td>
|
|
61
|
+
</tr>
|
|
62
|
+
</tbody>
|
|
58
63
|
</table>
|
|
59
64
|
|
|
60
65
|
<!-- markdownlint-restore -->
|
|
@@ -41,7 +41,7 @@ class LoaderStrategy {
|
|
|
41
41
|
* extensions.
|
|
42
42
|
*/
|
|
43
43
|
if (Reflect.has(process, Symbol.for('ts-node.register.instance')) || !(0, utilities_1.isNullish)(process.env.TS_NODE_DEV)) {
|
|
44
|
-
this.supportedExtensions.push('.ts');
|
|
44
|
+
this.supportedExtensions.push('.ts', '.cts', '.mts');
|
|
45
45
|
this.filterDtsFiles = true;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -60,7 +60,7 @@ class LoaderStrategy {
|
|
|
60
60
|
return { extension, path, name };
|
|
61
61
|
}
|
|
62
62
|
async preload(file) {
|
|
63
|
-
const mjs =
|
|
63
|
+
const mjs = ['.mjs', '.mts'].includes(file.extension) || (['.js', '.ts'].includes(file.extension) && this.clientUsesESModules);
|
|
64
64
|
if (mjs) {
|
|
65
65
|
const url = (0, url_1.pathToFileURL)(file.path);
|
|
66
66
|
url.searchParams.append('d', Date.now().toString());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderStrategy.js","sourceRoot":"","sources":["../../../src/lib/strategies/LoaderStrategy.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,+BAAyC;AACzC,6BAAoC;AACpC,uEAAoE;AACpE,mDAAiD;AACjD,mDAAmD;AAInD,qCAAiD;AAEjD;;;GAGG;AACH,MAAa,cAAc;IAK1B;QAJA;;;;mBAA6B,IAAA,sBAAW,GAAE,CAAC,IAAI,KAAK,KAAK;WAAC;QAC1D;;;;mBAA6B,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;WAAC;QACrD;;;;mBAA2C,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,EAAE;YACzG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"LoaderStrategy.js","sourceRoot":"","sources":["../../../src/lib/strategies/LoaderStrategy.ts"],"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AK,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;YAC1C,IAAI,IAAA,gBAAO,EAAC,KAAK,CAAC,IAAI,IAAA,qBAAY,EAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,EAAE;gBAC7D,MAAM,KAA8B,CAAC;gBACrC,OAAO,GAAG,IAAI,CAAC;aACf;SACD;QAED,IAAI,CAAC,OAAO,EAAE;YACb,MAAM,IAAI,yCAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACzC;IACF,CAAC;IAEM,MAAM;QACZ,OAAO,SAAS,CAAC;IAClB,CAAC;IAEM,SAAS;QACf,OAAO,SAAS,CAAC;IAClB,CAAC;IAEM,QAAQ;QACd,OAAO,SAAS,CAAC;IAClB,CAAC;IAEM,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;AA7FD,wCA6FC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/pieces",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Sapphire's piece loader.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"postpack": "pinst --enable"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@discordjs/collection": "^1.
|
|
30
|
-
"@sapphire/utilities": "^3.
|
|
29
|
+
"@discordjs/collection": "^1.2.0",
|
|
30
|
+
"@sapphire/utilities": "^3.11.0",
|
|
31
31
|
"tslib": "^2.4.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"@commitlint/config-conventional": "^17.1.0",
|
|
36
36
|
"@favware/cliff-jumper": "^1.8.8",
|
|
37
37
|
"@favware/npm-deprecate": "^1.0.5",
|
|
38
|
-
"@favware/rollup-type-bundler": "^
|
|
38
|
+
"@favware/rollup-type-bundler": "^2.0.0",
|
|
39
39
|
"@sapphire/eslint-config": "^4.3.8",
|
|
40
40
|
"@sapphire/prettier-config": "^1.4.4",
|
|
41
41
|
"@sapphire/ts-config": "^3.3.4",
|
|
42
|
-
"@types/node": "^18.7
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
44
|
-
"@typescript-eslint/parser": "^5.
|
|
42
|
+
"@types/node": "^18.11.7",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^5.41.0",
|
|
44
|
+
"@typescript-eslint/parser": "^5.41.0",
|
|
45
45
|
"cz-conventional-changelog": "^3.3.0",
|
|
46
|
-
"eslint": "^8.
|
|
46
|
+
"eslint": "^8.26.0",
|
|
47
47
|
"eslint-config-prettier": "^8.5.0",
|
|
48
48
|
"eslint-plugin-prettier": "^4.2.1",
|
|
49
49
|
"gen-esm-wrapper": "^1.1.3",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"pinst": "^3.0.0",
|
|
53
53
|
"prettier": "^2.7.1",
|
|
54
54
|
"pretty-quick": "^3.1.3",
|
|
55
|
-
"typedoc": "^0.23.
|
|
56
|
-
"typedoc-json-parser": "^
|
|
55
|
+
"typedoc": "^0.23.19",
|
|
56
|
+
"typedoc-json-parser": "^7.0.1",
|
|
57
57
|
"typescript": "^4.8.4"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
|
@@ -99,10 +99,10 @@
|
|
|
99
99
|
"access": "public"
|
|
100
100
|
},
|
|
101
101
|
"resolutions": {
|
|
102
|
-
"acorn": "^8.8.
|
|
102
|
+
"acorn": "^8.8.1",
|
|
103
103
|
"ansi-regex": "^5.0.1",
|
|
104
|
-
"minimist": "^1.2.
|
|
104
|
+
"minimist": "^1.2.7"
|
|
105
105
|
},
|
|
106
106
|
"prettier": "@sapphire/prettier-config",
|
|
107
|
-
"packageManager": "yarn@3.2.
|
|
107
|
+
"packageManager": "yarn@3.2.4"
|
|
108
108
|
}
|