svelte 5.44.1 → 5.45.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "svelte",
3
3
  "description": "Cybernetically enhanced web apps",
4
4
  "license": "MIT",
5
- "version": "5.44.1",
5
+ "version": "5.45.0",
6
6
  "type": "module",
7
7
  "types": "./types/index.d.ts",
8
8
  "engines": {
@@ -165,7 +165,7 @@
165
165
  "clsx": "^2.1.1",
166
166
  "devalue": "^5.5.0",
167
167
  "esm-env": "^1.2.1",
168
- "esrap": "^2.1.0",
168
+ "esrap": "^2.2.0",
169
169
  "is-reference": "^3.0.3",
170
170
  "locate-character": "^3.0.0",
171
171
  "magic-string": "^0.30.11",
@@ -10,6 +10,7 @@ import { transform_component, transform_module } from './phases/3-transform/inde
10
10
  import { validate_component_options, validate_module_options } from './validate-options.js';
11
11
  import * as state from './state.js';
12
12
  export { default as preprocess } from './preprocess/index.js';
13
+ export { print } from './print/index.js';
13
14
 
14
15
  /**
15
16
  * `compile` converts your `.svelte` source code into a JavaScript module that exports a component
@@ -27,6 +27,9 @@ const visitors = {
27
27
  delete n.typeArguments;
28
28
  delete n.returnType;
29
29
  delete n.accessibility;
30
+ delete n.readonly;
31
+ delete n.definite;
32
+ delete n.override;
30
33
  },
31
34
  Decorator(node) {
32
35
  e.typescript_invalid_feature(node, 'decorators (related TSC proposal is not stage 4 yet)');
@@ -132,7 +135,14 @@ const visitors = {
132
135
  if (node.declare) {
133
136
  return b.empty;
134
137
  }
138
+ delete node.abstract;
135
139
  delete node.implements;
140
+ delete node.superTypeArguments;
141
+ return context.next();
142
+ },
143
+ ClassExpression(node, context) {
144
+ delete node.implements;
145
+ delete node.superTypeArguments;
136
146
  return context.next();
137
147
  },
138
148
  MethodDefinition(node, context) {