Skip to content

Commit 0e9ed4e

Browse files
authoredOct 4, 2024··
Remove JSX v3 (#7072)
* remove jsx v3 * fix genType tests * fix test * changelog * remove syntax test expected * remove v3 from build-schema * remove makeProps from tests
1 parent fdc3e6c commit 0e9ed4e

File tree

89 files changed

+367
-2407
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+367
-2407
lines changed
 

‎CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#### :boom: Breaking Change
1616

1717
- OCaml compatibility in the stdlib and primitives are dropped/deprecated. https://github.com/rescript-lang/rescript-compiler/pull/6984
18+
- Remove the JSX v3. https://github.com/rescript-lang/rescript-compiler/pull/7072
1819

1920
#### :rocket: New Feature
2021

‎docs/docson/build-schema.json

+2-19
Original file line numberDiff line numberDiff line change
@@ -304,21 +304,12 @@
304304
},
305305
"description": "path to gentype, path resolution is similar to ReScript"
306306
},
307-
"reason-specs": {
308-
"type": "object",
309-
"properties": {
310-
"react-jsx": {
311-
"$ref": "#/definitions/react-jsx-version",
312-
"description": "Whether to apply the [RescriptReact](https://github.com/rescript-lang/rescript-react)-specific JSX PPX transformation."
313-
}
314-
}
315-
},
316307
"jsx-specs": {
317308
"type": "object",
318309
"properties": {
319310
"version": {
320311
"type": "number",
321-
"enum": [3, 4],
312+
"enum": [4],
322313
"description": "Whether to apply the specific version of JSX PPX transformation"
323314
},
324315
"module": {
@@ -329,10 +320,6 @@
329320
"type": "string",
330321
"enum": ["classic", "automatic"],
331322
"description": "JSX transformation mode"
332-
},
333-
"v3-dependencies": {
334-
"$ref": "#/definitions/dependencies",
335-
"description": "Build the given dependencies in JSX V3 compatibility mode."
336323
}
337324
},
338325
"additionalProperties": false
@@ -422,10 +409,6 @@
422409
"type": "boolean",
423410
"description": "Configuration for the uncurried mode."
424411
},
425-
"reason": {
426-
"$ref": "#/definitions/reason-specs",
427-
"description": "ReScript comes with [Reason](http://reasonml.github.io/) by default. Specific configurations here."
428-
},
429412
"gentypeconfig": {
430413
"$ref": "#/definitions/gentype-specs",
431414
"description": "gentype config, see cristianoc/genType for more details"
@@ -458,7 +441,7 @@
458441
},
459442
"ppx-flags": {
460443
"$ref": "#/definitions/ppx-specs",
461-
"description": "PPX macros to pass to compiler. The syntax is package_name/binary, for example: `reason/reactjs_jsx_ppx_3.native`. Currenly searches in `node_modules`"
444+
"description": "PPX macros to pass to compiler. The syntax is package_name/binary, for example: `rescript-relay/ppx`. Currenly searches in `node_modules`"
462445
},
463446
"pp-flags": {
464447
"$ref": "#/definitions/pp-specs",

0 commit comments

Comments
 (0)
Please sign in to comment.