@sapphire/plugin-utilities-store 1.0.3-pr-475.0a017c0.0 → 1.0.3

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,17 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ # [@sapphire/plugin-utilities-store@1.0.3](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-utilities-store@1.0.3...@sapphire/plugin-utilities-store@1.0.3) - (2023-11-16)
6
+
7
+ ## 🏠 Refactor
8
+
9
+ - Support latest /framework ([3ac929f](https://github.com/sapphiredev/plugins/commit/3ac929f1c38c2edbf00fa68d5ffef055d697e602))
10
+ - Remove useless `registerPath` call ([8cfecaf](https://github.com/sapphiredev/plugins/commit/8cfecaf51e0fbf9f92c9f63415a8c10889b11b70))
11
+
12
+ ## 🐛 Bug Fixes
13
+
14
+ - Set `engines.node` to `>=v18` ([885a390](https://github.com/sapphiredev/plugins/commit/885a3908d59fd00f7214ef474f2c6a3c58e95af2))
15
+
5
16
  # [@sapphire/plugin-utilities-store@1.0.2](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-utilities-store@1.0.1...@sapphire/plugin-utilities-store@1.0.2) - (2023-08-23)
6
17
 
7
18
  ## 🏠 Refactor
package/README.md CHANGED
@@ -56,7 +56,7 @@ import '@sapphire/plugin-utilities-store/register';
56
56
  import { Utility } from '@sapphire/plugin-utilities-store';
57
57
 
58
58
  export class SumUtility extends Utility {
59
- public constructor(context: Utility.Context, options: Utility.Options) {
59
+ public constructor(context: Utility.LoaderContext, options: Utility.Options) {
60
60
  super(context, {
61
61
  ...options,
62
62
  name: 'sum'
@@ -3,7 +3,7 @@ import { Utility } from './Utility';
3
3
  /**
4
4
  * @since 1.0.0
5
5
  */
6
- export declare class UtilitiesStore extends Store<Utility> {
6
+ export declare class UtilitiesStore extends Store<Utility, 'utilities'> {
7
7
  constructor();
8
8
  }
9
9
  //# sourceMappingURL=UtilitiesStore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UtilitiesStore.d.ts","sourceRoot":"","sources":["../../src/lib/UtilitiesStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;GAEG;AACH,qBAAa,cAAe,SAAQ,KAAK,CAAC,OAAO,CAAC;;CAIjD"}
1
+ {"version":3,"file":"UtilitiesStore.d.ts","sourceRoot":"","sources":["../../src/lib/UtilitiesStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;GAEG;AACH,qBAAa,cAAe,SAAQ,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;;CAI9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"UtilitiesStore.js","sourceRoot":"","sources":["../../src/lib/UtilitiesStore.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AACzC,uCAAoC;AAEpC;;GAEG;AACH,MAAa,cAAe,SAAQ,cAAc;IACjD;QACC,KAAK,CAAC,iBAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;IACvC,CAAC;CACD;AAJD,wCAIC"}
1
+ {"version":3,"file":"UtilitiesStore.js","sourceRoot":"","sources":["../../src/lib/UtilitiesStore.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AACzC,uCAAoC;AAEpC;;GAEG;AACH,MAAa,cAAe,SAAQ,cAA2B;IAC9D;QACC,KAAK,CAAC,iBAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;IACvC,CAAC;CACD;AAJD,wCAIC"}
@@ -2,10 +2,14 @@ import { Piece } from '@sapphire/pieces';
2
2
  /**
3
3
  * @since 1.0.0
4
4
  */
5
- export declare abstract class Utility extends Piece {
5
+ export declare abstract class Utility<Options extends Utility.Options = Utility.Options> extends Piece<Options, 'utilities'> {
6
6
  }
7
7
  export declare namespace Utility {
8
- type Context = Piece.Context;
8
+ /** @deprecated Use {@linkcode LoaderContext} instead. */
9
+ type Context = LoaderContext;
10
+ type LoaderContext = Piece.LoaderContext<'utilities'>;
9
11
  type Options = Piece.Options;
12
+ type JSON = Piece.JSON;
13
+ type LocationJSON = Piece.LocationJSON;
10
14
  }
11
15
  //# sourceMappingURL=Utility.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Utility.d.ts","sourceRoot":"","sources":["../../src/lib/Utility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;GAEG;AACH,8BAAsB,OAAQ,SAAQ,KAAK;CAAG;AAE9C,yBAAiB,OAAO,CAAC;IACxB,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IACpC,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;CACpC"}
1
+ {"version":3,"file":"Utility.d.ts","sourceRoot":"","sources":["../../src/lib/Utility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;GAEG;AACH,8BAAsB,OAAO,CAAC,OAAO,SAAS,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAE,SAAQ,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;CAAG;AAEvH,yBAAiB,OAAO,CAAC;IACxB,yDAAyD;IACzD,KAAY,OAAO,GAAG,aAAa,CAAC;IACpC,KAAY,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAC7D,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IACpC,KAAY,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IAC9B,KAAY,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;CAC9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"Utility.js","sourceRoot":"","sources":["../../src/lib/Utility.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAEzC;;GAEG;AACH,MAAsB,OAAQ,SAAQ,cAAK;CAAG;AAA9C,0BAA8C"}
1
+ {"version":3,"file":"Utility.js","sourceRoot":"","sources":["../../src/lib/Utility.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAEzC;;GAEG;AACH,MAAsB,OAA2D,SAAQ,cAA2B;CAAG;AAAvH,0BAAuH"}
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AACjB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK3F;;GAEG;AACH,qBAAa,eAAgB,SAAQ,MAAM;IAC1C;;OAEG;WACW,CAAC,iBAAiB,CAAC,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAO7D;;OAEG;WACW,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;CAOrD"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AAEjB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG3F;;GAEG;AACH,qBAAa,eAAgB,SAAQ,MAAM;IAC1C;;OAEG;WACW,CAAC,iBAAiB,CAAC,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAK7D;;OAEG;WACW,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;CAOrD"}
package/dist/register.js CHANGED
@@ -3,9 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UtilitiesPlugin = void 0;
4
4
  require("./index");
5
5
  const framework_1 = require("@sapphire/framework");
6
- const path_1 = require("path");
7
6
  const Utilities_1 = require("./lib/Utilities");
8
- const UtilitiesStore_1 = require("./lib/UtilitiesStore");
9
7
  /**
10
8
  * @since 1.0.0
11
9
  */
@@ -16,7 +14,6 @@ class UtilitiesPlugin extends framework_1.Plugin {
16
14
  static [framework_1.preInitialization]() {
17
15
  this.utilities = new Utilities_1.Utilities();
18
16
  this.stores.register(this.utilities.store);
19
- this.utilities.store.registerPath((0, path_1.join)(__dirname, UtilitiesStore_1.UtilitiesStore.name));
20
17
  }
21
18
  /**
22
19
  * @since 1.0.0
@@ -1 +1 @@
1
- {"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":";;;AAAA,mBAAiB;AACjB,mDAA2F;AAC3F,+BAA4B;AAC5B,+CAA4C;AAC5C,yDAAsD;AAEtD;;GAEG;AACH,MAAa,eAAgB,SAAQ,kBAAM;IAC1C;;OAEG;IACI,MAAM,CAAC,CAAC,6BAAiB,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAS,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAE3C,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,IAAA,WAAI,EAAC,SAAS,EAAE,+BAAc,CAAC,IAAI,CAAC,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,CAAC,qBAAS,CAAC;QACxB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QAEpC,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,EAAE;YAC7C,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SACxC;IACF,CAAC;CACD;AArBD,0CAqBC;AAED,0BAAc,CAAC,OAAO,CAAC,6BAA6B,CAAC,eAAe,CAAC,6BAAiB,CAAC,EAAE,kCAAkC,CAAC,CAAC;AAC7H,0BAAc,CAAC,OAAO,CAAC,qBAAqB,CAAC,eAAe,CAAC,qBAAS,CAAC,EAAE,0BAA0B,CAAC,CAAC"}
1
+ {"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":";;;AAAA,mBAAiB;AAEjB,mDAA2F;AAC3F,+CAA4C;AAE5C;;GAEG;AACH,MAAa,eAAgB,SAAQ,kBAAM;IAC1C;;OAEG;IACI,MAAM,CAAC,CAAC,6BAAiB,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAS,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,CAAC,qBAAS,CAAC;QACxB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QAEpC,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,EAAE;YAC7C,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SACxC;IACF,CAAC;CACD;AAnBD,0CAmBC;AAED,0BAAc,CAAC,OAAO,CAAC,6BAA6B,CAAC,eAAe,CAAC,6BAAiB,CAAC,EAAE,kCAAkC,CAAC,CAAC;AAC7H,0BAAc,CAAC,OAAO,CAAC,qBAAqB,CAAC,eAAe,CAAC,qBAAS,CAAC,EAAE,0BAA0B,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire/plugin-utilities-store",
3
- "version": "1.0.3-pr-475.0a017c0.0",
3
+ "version": "1.0.3",
4
4
  "description": "Plugin for @sapphire/framework to have a Sapphire store which you can fill with utility functions available through the container",
5
5
  "author": "@sapphire",
6
6
  "license": "MIT",
@@ -44,8 +44,8 @@
44
44
  "!dist/.tsbuildinfo"
45
45
  ],
46
46
  "engines": {
47
- "node": ">=v14.0.0",
48
- "npm": ">=7.0.0"
47
+ "node": ">=v18",
48
+ "npm": ">=7"
49
49
  },
50
50
  "keywords": [
51
51
  "sapphiredev",
@@ -64,10 +64,10 @@
64
64
  "access": "public"
65
65
  },
66
66
  "devDependencies": {
67
- "@favware/cliff-jumper": "^2.1.2",
67
+ "@favware/cliff-jumper": "^2.2.3",
68
68
  "gen-esm-wrapper": "^1.1.3",
69
- "typedoc": "^0.25.0",
70
- "typedoc-json-parser": "^8.2.0",
69
+ "typedoc": "^0.25.3",
70
+ "typedoc-json-parser": "^9.0.1",
71
71
  "typescript": "^5.2.2"
72
72
  }
73
73
  }