ripple 0.2.161 → 0.2.162
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/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Ripple is an elegant TypeScript UI framework",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.162",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"module": "src/runtime/index-client.js",
|
|
9
9
|
"main": "src/runtime/index-client.js",
|
|
@@ -81,6 +81,6 @@
|
|
|
81
81
|
"typescript": "^5.9.2"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"ripple": "0.2.
|
|
84
|
+
"ripple": "0.2.162"
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -638,7 +638,8 @@ function RipplePlugin(config) {
|
|
|
638
638
|
|
|
639
639
|
// If we reach here, it means #Map or #Set is being called without 'new'
|
|
640
640
|
// Throw a TypeError to match JavaScript class constructor behavior
|
|
641
|
-
const constructorName =
|
|
641
|
+
const constructorName =
|
|
642
|
+
type === 'TrackedMapExpression' ? '#Map (TrackedMap)' : '#Set (TrackedSet)';
|
|
642
643
|
this.raise(
|
|
643
644
|
node.start,
|
|
644
645
|
`TypeError: Class constructor ${constructorName} cannot be invoked without 'new'`,
|
|
@@ -426,7 +426,9 @@ const visitors = {
|
|
|
426
426
|
const alias = import_from_ripple_if_needed(className, context);
|
|
427
427
|
const calleeId = b.id(alias);
|
|
428
428
|
calleeId.loc = callee.loc;
|
|
429
|
-
calleeId.metadata = {
|
|
429
|
+
calleeId.metadata = {
|
|
430
|
+
tracked_shorthand: callee.type === 'TrackedMapExpression' ? '#Map' : '#Set',
|
|
431
|
+
};
|
|
430
432
|
return b.new(calleeId, ...argsToUse.map((arg) => context.visit(arg)));
|
|
431
433
|
}
|
|
432
434
|
|
|
@@ -4,7 +4,6 @@ import ts from 'esrap/languages/ts';
|
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import { print } from 'esrap';
|
|
6
6
|
import {
|
|
7
|
-
build_getter,
|
|
8
7
|
determine_namespace_for_children,
|
|
9
8
|
escape_html,
|
|
10
9
|
is_boolean_attribute,
|
|
@@ -13,7 +12,6 @@ import {
|
|
|
13
12
|
is_void_element,
|
|
14
13
|
normalize_children,
|
|
15
14
|
} from '../../../utils.js';
|
|
16
|
-
import is_reference from 'is-reference';
|
|
17
15
|
import { escape } from '../../../../utils/escaping.js';
|
|
18
16
|
import { is_event_attribute } from '../../../../utils/events.js';
|
|
19
17
|
import { render_stylesheets } from '../stylesheet.js';
|