@h3ravel/shared 0.5.0 → 0.6.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 +13 -0
- package/README.md +29 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/package.json +2 -2
- package/src/Contracts/IServiceProvider.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @h3ravel/shared
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b40caeb: feat: make service providers sortable and unique while only loading the core providers by default.
|
|
8
|
+
Service providers are no longer loaded by default, asides the ones provided by @h3ravel/core
|
|
9
|
+
Service provides are sorted by an optional order and priority property.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [b40caeb]
|
|
14
|
+
- @h3ravel/support@0.6.0
|
|
15
|
+
|
|
3
16
|
## 0.5.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<p align="center"><a href="https://h3ravel.toneflix.net" target="_blank"><img src="https://raw.githubusercontent.com/h3ravel/assets/refs/heads/main/logo-full.svg" width="400" alt="H3ravel Logo"></a></p>
|
|
2
|
+
|
|
3
|
+
[![Framework][ix]][lx]
|
|
4
|
+
[![Shared Package Version][i1]][l1]
|
|
5
|
+
|
|
6
|
+
# About H3ravel/shared
|
|
7
|
+
|
|
8
|
+
This package provides first reusable interfaces and contracts used across the [H3ravel](https://h3ravel.toneflix.net) ecosystem.
|
|
9
|
+
|
|
10
|
+
## Contributing
|
|
11
|
+
|
|
12
|
+
Thank you for considering contributing to the H3ravel framework! The contribution guide can be found in the [H3ravel documentation](#!).
|
|
13
|
+
|
|
14
|
+
## Code of Conduct
|
|
15
|
+
|
|
16
|
+
In order to ensure that the H3ravel community is welcoming to all, please review and abide by the [Code of Conduct](#).
|
|
17
|
+
|
|
18
|
+
## Security Vulnerabilities
|
|
19
|
+
|
|
20
|
+
If you discover a security vulnerability within H3ravel, please send an e-mail to Legacy via hamzas.legacy@toneflix.ng. All security vulnerabilities will be promptly addressed.
|
|
21
|
+
|
|
22
|
+
## License
|
|
23
|
+
|
|
24
|
+
The H3ravel framework is open-sourced software licensed under the [MIT license](LICENSE).
|
|
25
|
+
|
|
26
|
+
[ix]: https://img.shields.io/npm/v/%40h3ravel%2Fcore?style=flat-square&label=Framework&color=%230970ce
|
|
27
|
+
[lx]: https://www.npmjs.com/package/@h3ravel/core
|
|
28
|
+
[i1]: https://img.shields.io/npm/v/%40h3ravel%2Fshared?style=flat-square&label=@h3ravel/shared&color=%230970ce
|
|
29
|
+
[l1]: https://www.npmjs.com/package/@h3ravel/shared
|
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,14 @@ import { H3Event, Middleware, MiddlewareOptions } from 'h3';
|
|
|
2
2
|
import { DotNestedKeys, DotNestedValue } from '@h3ravel/support';
|
|
3
3
|
|
|
4
4
|
interface IServiceProvider {
|
|
5
|
+
/**
|
|
6
|
+
* Sort order
|
|
7
|
+
*/
|
|
8
|
+
order?: `before:${string}` | `after:${string}` | string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Sort priority
|
|
11
|
+
*/
|
|
12
|
+
priority?: number;
|
|
5
13
|
/**
|
|
6
14
|
* Register bindings to the container.
|
|
7
15
|
* Runs before boot().
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,14 @@ import { H3Event, Middleware, MiddlewareOptions } from 'h3';
|
|
|
2
2
|
import { DotNestedKeys, DotNestedValue } from '@h3ravel/support';
|
|
3
3
|
|
|
4
4
|
interface IServiceProvider {
|
|
5
|
+
/**
|
|
6
|
+
* Sort order
|
|
7
|
+
*/
|
|
8
|
+
order?: `before:${string}` | `after:${string}` | string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Sort priority
|
|
11
|
+
*/
|
|
12
|
+
priority?: number;
|
|
5
13
|
/**
|
|
6
14
|
* Register bindings to the container.
|
|
7
15
|
* Runs before boot().
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Shared Utilities.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"h3": "^2.0.0-beta.1",
|
|
13
|
-
"@h3ravel/support": "0.
|
|
13
|
+
"@h3ravel/support": "0.6.1"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "tsup",
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
export interface IServiceProvider {
|
|
2
|
+
/**
|
|
3
|
+
* Sort order
|
|
4
|
+
*/
|
|
5
|
+
order?: `before:${string}` | `after:${string}` | string | undefined
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Sort priority
|
|
9
|
+
*/
|
|
10
|
+
priority?: number;
|
|
11
|
+
|
|
2
12
|
/**
|
|
3
13
|
* Register bindings to the container.
|
|
4
14
|
* Runs before boot().
|