vasille-jsx 5.0.1 → 5.1.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/README.md +11 -5
- package/lib/dev/components.js +1 -1
- package/lib/dev/compose.js +1 -1
- package/lib/dev/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
`SteelFrameKit` is a front-end development kit, which is developed to provide fault tolerant web applications.
|
|
6
6
|
|
|
7
|
-
[](https://www.npmjs.com/package/steel-frame)
|
|
8
8
|
[](https://deepwiki.com/vasille-js/steel-frame)
|
|
9
9
|
[](https://coveralls.io/github/vasille-js/steel-frame?branch=v5)
|
|
10
10
|
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
- [How POWERFUL is SteelFrameKit](#how-powerful-is-steelframekit)
|
|
22
22
|
- [Road map](#road-map)
|
|
23
23
|
- [Change log](#change-log)
|
|
24
|
+
- [5.1](#51)
|
|
24
25
|
- [5.0](#50)
|
|
25
26
|
- [4.0 - 4.3](#40---43)
|
|
26
27
|
- [3.0 - 3.2](#30---32)
|
|
@@ -119,10 +120,15 @@ All of these are supported:
|
|
|
119
120
|
## Change log
|
|
120
121
|
|
|
121
122
|
We respect semantic versioning:
|
|
122
|
-
-
|
|
123
|
-
-
|
|
123
|
+
- A major version is increased when we make incompatible API changes.
|
|
124
|
+
- A minor version is increased when we add functionality.
|
|
124
125
|
- Patch version is increased when we fix bugs.
|
|
125
126
|
|
|
127
|
+
### 5.1
|
|
128
|
+
|
|
129
|
+
Add support for web components compile target `web build components`.
|
|
130
|
+
_Web components as custom tags are supported in any version._
|
|
131
|
+
|
|
126
132
|
### 5.0
|
|
127
133
|
|
|
128
134
|
- Add support for context and dependencies injection.
|
|
@@ -142,7 +148,7 @@ We respect semantic versioning:
|
|
|
142
148
|
### 3.0 - 3.2
|
|
143
149
|
|
|
144
150
|
- Switch to a babel plugin to compile components code. **[API change]**
|
|
145
|
-
- 100% of code has been covered with unit tests.
|
|
151
|
+
- 100% of the code has been covered with unit tests.
|
|
146
152
|
- New developement direction: `keep it simple`.
|
|
147
153
|
|
|
148
154
|
### 2.0 - 2.3
|
|
@@ -152,7 +158,7 @@ We respect semantic versioning:
|
|
|
152
158
|
|
|
153
159
|
### 1.0 - 1.2
|
|
154
160
|
|
|
155
|
-
- Initial version of core library.
|
|
161
|
+
- Initial version of a core library.
|
|
156
162
|
- Developemnt direction: `performance-first`.
|
|
157
163
|
|
|
158
164
|
## Questions
|
package/lib/dev/components.js
CHANGED
|
@@ -15,7 +15,7 @@ export function DevSlot({ model, slot, ...options }, ctx, defaultSlot, usage) {
|
|
|
15
15
|
catch (e) {
|
|
16
16
|
ctx.runner.inspector.reportComponentSlotError({
|
|
17
17
|
targetId: "id" in ctx && typeof ctx.id === "number" ? ctx.id : 0,
|
|
18
|
-
error: e
|
|
18
|
+
error: e instanceof Error ? `${e.message}\n${e.stack}` : `${e}`,
|
|
19
19
|
usage: usage,
|
|
20
20
|
time: Date.now(),
|
|
21
21
|
});
|
package/lib/dev/compose.js
CHANGED
|
@@ -21,7 +21,7 @@ export function devView(renderer, declaration, name) {
|
|
|
21
21
|
catch (e) {
|
|
22
22
|
node.runner.inspector.reportComponentError({
|
|
23
23
|
targetId: frag.id,
|
|
24
|
-
error: e
|
|
24
|
+
error: e instanceof Error ? `${e.message}\n${e.stack}` : `${e}`,
|
|
25
25
|
time: Date.now(),
|
|
26
26
|
});
|
|
27
27
|
reportError(e);
|
package/lib/dev/index.js
CHANGED
|
@@ -8,9 +8,10 @@ export { AbstractInspector, EarlyInspector, earlyInspector } from "./early-inspe
|
|
|
8
8
|
function devErrorHandler(e) {
|
|
9
9
|
earlyInspector.reportError({
|
|
10
10
|
targetId: 0,
|
|
11
|
-
error: e instanceof Error ?
|
|
11
|
+
error: e instanceof Error ? `${e.message}\n${e.stack}` : `${e}`,
|
|
12
12
|
time: Date.now(),
|
|
13
13
|
});
|
|
14
|
+
console.error(e);
|
|
14
15
|
}
|
|
15
16
|
coreSetErrorHandler(devErrorHandler);
|
|
16
17
|
export function setErrorHandler(fn) {
|