gyosjs 0.5.5 → 0.5.6
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 +5 -1
- package/dist/gyos.auto.esm.js +11 -5
- package/dist/gyos.auto.esm.js.map +1 -1
- package/dist/gyos.auto.js +11 -5
- package/dist/gyos.auto.js.map +1 -1
- package/dist/gyos.auto.min.js +2 -2
- package/dist/gyos.csp.auto.esm.js +11 -5
- package/dist/gyos.csp.auto.esm.js.map +1 -1
- package/dist/gyos.csp.auto.js +11 -5
- package/dist/gyos.csp.auto.js.map +1 -1
- package/dist/gyos.csp.auto.min.js +2 -2
- package/dist/gyos.csp.esm.js +11 -5
- package/dist/gyos.csp.esm.js.map +1 -1
- package/dist/gyos.csp.js +11 -5
- package/dist/gyos.csp.js.map +1 -1
- package/dist/gyos.csp.min.js +2 -2
- package/dist/gyos.esm.js +11 -5
- package/dist/gyos.esm.js.map +1 -1
- package/dist/gyos.js +11 -5
- package/dist/gyos.js.map +1 -1
- package/dist/gyos.min.js +2 -2
- package/dist/template/bindings.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ GyosJS is not trying to replace a full SPA framework. If your app is primarily c
|
|
|
34
34
|
Use the browser auto-init build when you want HTML-first usage with minimal setup.
|
|
35
35
|
|
|
36
36
|
```html
|
|
37
|
-
<script src="https://cdn.jsdelivr.net/npm/gyosjs@0.5.
|
|
37
|
+
<script src="https://cdn.jsdelivr.net/npm/gyosjs@0.5.6/dist/gyos.auto.min.js"></script>
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
That build attaches `window.Gyos`, starts the router when `g-boost` exists, injects transition styles, and mounts scopes when the page is ready.
|
|
@@ -104,6 +104,10 @@ With `g-boost`, same-origin links and forms can be intercepted and swapped into
|
|
|
104
104
|
- [Reactivity and Signals](./docs/en/reactivity-signals.md)
|
|
105
105
|
- [Template Syntax](./docs/en/template-syntax.md)
|
|
106
106
|
- [Examples](./docs/en/examples.md)
|
|
107
|
+
- [Built with GyosJS](./docs/en/built-with-gyosjs.md)
|
|
108
|
+
- [Editor with Undo/Redo](./docs/en/editor-history.md)
|
|
109
|
+
- [External Engines and Libraries](./docs/en/external-engines.md)
|
|
110
|
+
- [Async Work and Workers](./docs/en/async-workers.md)
|
|
107
111
|
- [Tutorial Guide](./docs/en/tutorial-guide.md)
|
|
108
112
|
- [API Reference](./docs/en/api-reference.md)
|
|
109
113
|
- [MPA Boost Deep Dive](./docs/en/mpa-boost-deep-dive.md)
|
package/dist/gyos.auto.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* GyosJS v0.5.
|
|
2
|
+
* GyosJS v0.5.6
|
|
3
3
|
* (c) 2026
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -2797,7 +2797,8 @@ function syncBooleanProperty(element, attrName, value) {
|
|
|
2797
2797
|
const propertyName = booleanPropertyNames[attrName] || attrName;
|
|
2798
2798
|
if (propertyName in element) {
|
|
2799
2799
|
try {
|
|
2800
|
-
element[propertyName]
|
|
2800
|
+
if (element[propertyName] !== value)
|
|
2801
|
+
element[propertyName] = value;
|
|
2801
2802
|
}
|
|
2802
2803
|
catch {
|
|
2803
2804
|
// Some reflected DOM properties are read-only in older engines.
|
|
@@ -2828,9 +2829,14 @@ function applyAttributeBinding(element, rawAttrName, value) {
|
|
|
2828
2829
|
}
|
|
2829
2830
|
const stringValue = String(value);
|
|
2830
2831
|
if (attrName === 'value' && 'value' in element) {
|
|
2831
|
-
|
|
2832
|
+
// Compare the live control, not a cached expression: user edits and
|
|
2833
|
+
// external DOM changes still need reconciliation on the next update.
|
|
2834
|
+
if (element.value !== stringValue) {
|
|
2835
|
+
element.value = stringValue;
|
|
2836
|
+
}
|
|
2832
2837
|
}
|
|
2833
|
-
element.
|
|
2838
|
+
if (element.getAttribute(attrName) !== stringValue)
|
|
2839
|
+
element.setAttribute(attrName, stringValue);
|
|
2834
2840
|
}
|
|
2835
2841
|
function boundAttributes(element) {
|
|
2836
2842
|
return Array.from(element.attributes).filter(attribute => attribute.name.startsWith(':'));
|
|
@@ -9195,7 +9201,7 @@ const Gyos = {
|
|
|
9195
9201
|
portalCreate,
|
|
9196
9202
|
portalDestroy,
|
|
9197
9203
|
setCspNonce,
|
|
9198
|
-
version: '0.5.
|
|
9204
|
+
version: '0.5.6'
|
|
9199
9205
|
};
|
|
9200
9206
|
|
|
9201
9207
|
const standardExpressionRuntime = {
|