@modular-component/default 0.2.1 → 0.2.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 +19 -0
- package/README.md +4 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @modular-component/default
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [208e156]
|
|
8
|
+
- @modular-component/core@0.2.3
|
|
9
|
+
- @modular-component/with-default-props@0.2.3
|
|
10
|
+
- @modular-component/with-lifecycle@0.2.3
|
|
11
|
+
|
|
12
|
+
## 0.2.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 77c46f4: Fix an issue in core rendering system
|
|
17
|
+
- Updated dependencies [77c46f4]
|
|
18
|
+
- @modular-component/core@0.2.2
|
|
19
|
+
- @modular-component/with-default-props@0.2.2
|
|
20
|
+
- @modular-component/with-lifecycle@0.2.2
|
|
21
|
+
|
|
3
22
|
## 0.2.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -5,8 +5,8 @@ Set of sensible defaults for using `ModularComponent`.
|
|
|
5
5
|
Provides two stages: `with(lifecycle)` for adding a lifecycle hook, and `with(defaultProps)` for
|
|
6
6
|
providing default values for props. It also re-exports `with(render)` from `@modular-component/props` for convenience.
|
|
7
7
|
|
|
8
|
-
It's also possible to import each of them individually through [`@modular-component/with-lifecycle`](
|
|
9
|
-
and <br /> [`@modular-component/with-default-props`](
|
|
8
|
+
It's also possible to import each of them individually through [`@modular-component/with-lifecycle`](https://npmjs.com/package/@modular-component/with-lifecycle)
|
|
9
|
+
and <br /> [`@modular-component/with-default-props`](https://npmjs.com/package/@modular-component/with-default-props) respectively.
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
@@ -31,5 +31,5 @@ const MyComponent = ModularComponent()
|
|
|
31
31
|
`@modular-component/default` simply merge together the records from two other packages. To see the implementation
|
|
32
32
|
details, refer to the individual packages:
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
- [`@modular-component/with-default-props`](https://npmjs.com/package/@modular-component/with-default-props): powerful default props capabilities
|
|
35
|
+
- [`@modular-component/with-lifecycle`](https://npmjs.com/package/@modular-component/with-lifecycle): isolate component logic in a dedicated hook
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"Default",
|
|
9
9
|
"Lifecycle"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.2.
|
|
11
|
+
"version": "0.2.3",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"publishConfig": {
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"license": "cp ../../LICENSE ./LICENSE"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@modular-component/core": "0.2.
|
|
31
|
-
"@modular-component/with-default-props": "0.2.
|
|
32
|
-
"@modular-component/with-lifecycle": "0.2.
|
|
30
|
+
"@modular-component/core": "0.2.3",
|
|
31
|
+
"@modular-component/with-default-props": "0.2.3",
|
|
32
|
+
"@modular-component/with-lifecycle": "0.2.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^5.2.2"
|