Skip to content

Commit ee9856b

Browse files
committed
Remove data-scope
1 parent 621538c commit ee9856b

File tree

4 files changed

+0
-52
lines changed

4 files changed

+0
-52
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ SSE event handling has also changed, in addition to all of the **SDKs**. Please
1919
- Added a `data-json-signals` attribute that sets the text content of an element to a reactive JSON stringified version of all signals.
2020
- Added a `data-ignore-morph` attribute to the `PatchElements` watcher that skips morphing the respective element and its children.
2121
- Added a `data-preserve-attr` attribute that preserves the client side state of an attribute through a morph.
22-
- Added a `data-scope` attribute that allows setting a scope for signals.
2322
- Added a `data-on-resize` attribute (PRO) that attaches a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) to the element, and executes the expression each time the element’s dimensions change.
2423
- Added a `data-on-signal-patch` attribute (PRO) that executes an expression when a signal patch takes place.
2524
- Added a `data-on-signal-patch-filter` attribute (PRO) for filtering the signals that cause the expression in `data-on-signal-patch` to be executed.
2625
- Added a `data-query-string` attribute (PRO) that syncs the query string with signal values, including optional history support.
2726
- Added a `datastar-upload-progress` event (PRO) for monitoring file upload progress.
2827
- Added a `filterSignals` option to SSE actions that filters the signals send to the backend based on include and exclude regular expressions.
29-
- Added a `__scoped` modifier that scopes signals created by an attribute to the closest scope defined by `data-scope`.
3028
- Added a `__trust` modifier to the `data-on` attribute, which runs the expression even if the [`isTrusted`](https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted) property on the event is `false`.
3129
- The URL passed into SSE actions (`@get`, `@post`, etc.) is now treated as a relative URI.
3230
- The default `Content-Type` header sent with `form` requests is now `application/x-www-form-urlencoded`.

tools/intellij-plugin/CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
- Added the `data-on-signal-patch-filter` attribute.
1414
- Added the `data-preserve-attr` attribute.
1515
- Added the `data-query-string` attribute.
16-
- Added the `data-scope` attribute.
17-
- Added the `scoped` modifier.
1816
- Added the `trusted` modifier.
1917

2018
## [1.0.2] - 2025.02.11

tools/intellij-plugin/src/main/resources/datastar-attributes.web-types.json

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
{
1212
"name": "case",
1313
"description": "Modify the casing of the signal name"
14-
},
15-
{
16-
"name": "scoped",
17-
"description": "Scopes the signal to the closest scope defined by `data-scope`"
1814
}
1915
],
2016
"datastar-class-modifiers": [
@@ -27,20 +23,12 @@
2723
{
2824
"name": "case",
2925
"description": "Modify the casing of the signal name"
30-
},
31-
{
32-
"name": "scoped",
33-
"description": "Scopes the signal to the closest scope defined by `data-scope`"
3426
}
3527
],
3628
"datastar-indicator-modifiers": [
3729
{
3830
"name": "case",
3931
"description": "Modify the casing of the signal name"
40-
},
41-
{
42-
"name": "scoped",
43-
"description": "Scopes the signal to the closest scope defined by `data-scope`"
4432
}
4533
],
4634
"datastar-json-signals-modifiers": [
@@ -227,10 +215,6 @@
227215
{
228216
"name": "case",
229217
"description": "Modify the casing of the signal name"
230-
},
231-
{
232-
"name": "scoped",
233-
"description": "Scopes the signal to the closest scope defined by `data-scope`"
234218
}
235219
],
236220
"datastar-scroll-into-view-modifiers": [
@@ -291,10 +275,6 @@
291275
{
292276
"name": "ifmissing",
293277
"description": "Only set the signals if the key does not exist. This is useful for setting defaults without overwriting existing values"
294-
},
295-
{
296-
"name": "scoped",
297-
"description": "Scopes the signal to the closest scope defined by `data-scope`"
298278
}
299279
]
300280
},
@@ -885,23 +865,6 @@
885865
"priority": "normal"
886866
}
887867
},
888-
{
889-
"name": "data-scope",
890-
"virtual": true,
891-
"description": "Sets a signal scope for the element and its descendants.",
892-
"doc-url": "https://data-star.dev/reference/attributes#data-scope",
893-
"value": {
894-
"kind": "expression",
895-
"type": "string",
896-
"required": false
897-
},
898-
"pattern": {
899-
"template": [
900-
"data-scope"
901-
],
902-
"priority": "normal"
903-
}
904-
},
905868
{
906869
"name": "data-scroll-into-view",
907870
"virtual": true,

tools/vscode-extension/src/data-attributes.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -329,17 +329,6 @@
329329
}
330330
]
331331
},
332-
"data-scope": {
333-
"prefix": "data-scope",
334-
"body": "data-scope=\"${1:expression}\"",
335-
"description": "Sets a signal scope for the element and its descendants.",
336-
"references": [
337-
{
338-
"name": "Documentation",
339-
"url": "https://data-star.dev/reference/attributes#data-scope"
340-
}
341-
]
342-
},
343332
"data-scroll-into-view": {
344333
"prefix": "data-scroll-into-view",
345334
"body": "data-scroll-into-view",

0 commit comments

Comments
 (0)