-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #925 from aml-org/r/v5.4.0
R/v5.4.0
- Loading branch information
Showing
1,538 changed files
with
84,215 additions
and
28,330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# 1. Bump ScalaJS from 0.6 to 1.1 | ||
|
||
Date: 2023-03-10 | ||
|
||
## Status | ||
In Progress | ||
|
||
## Context | ||
Bump ScalaJS from 0.6 to 1.1 had a lot of compatibility issues with some plugins and dependencies, like: | ||
|
||
- sbt-scalajs: 1.6.0 | ||
- scalatest | ||
- upickle | ||
- node v16.19.0 | ||
|
||
|
||
## Decision | ||
1. We follow AMF suggestion to use `sbt-scalaJS:1.6.0` instead of `1.7.0+` beacuse of _RegEx adaption_ | ||
2. We found a `scalatest` version that has compatibility with `scalaJS 1` | ||
3. `upickle` use `scalaJS 1` since `0.9.x`. [See more details](https://mvnrepository.com/artifact/com.lihaoyi/upickle_sjs1_2.12) | ||
4. For node 16 we decide to use `scala-js-nodejs-v14` from `net-exoego`. We had to downgrade to _Node 14_ because this is used only for **Test mode** and for _Node 16_ there was just one version and this unique version requires `sbt-scalajs 1.8.0+` | ||
|
||
## Issues | ||
- Changing to latest `Upickle` version fix compatibility with `sbt-scalaJS` but fail all `als-suggestion` tests because the write function of an empty array change from: | ||
`[]` to | ||
`[ \n ]` | ||
- Some code had to been changed because of deprecated packages | ||
- Some `@JSExport` annotations were changed to `@JSExportTopLevel` | ||
- Workspaces name were removed from exported annotations | ||
- `ScalaJSModuleKind` was replaced with `scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) | ||
.withESFeatures(_.withESVersion(ESVersion.ES2016)) | ||
}` | ||
- Other replacements (depends of scala version): | ||
- `fastOptJS` -> `fastLinkJS` | ||
- `fullOptJS` -> `fullLinkJS` | ||
- `artifactPath` -> `scalaJSLinkerOutputDirectory` | ||
|
||
** NOTE: This modifications in the linkerJS config change the way that the autogenerated JS file is created. It creates a folder with main.js files instead of .js files. Keep in mind that for some commands (i.e. buildServerJsLibrary) need to run an script that move those file to another dir. If this config is updated the script file need to be fixed. | ||
- Some commons dependencies do not on JS, so we need to add those using `libraryDependencies` in _JS Settings_ section. | ||
|
||
|
||
|
||
### Internal Work Items | ||
- [W-12658516](https://gus.lightning.force.com/a07EE00001MkxRJYAZ) | ||
- [W-12601018](https://gus.lightning.force.com/a07EE00001LqaxfYAB) | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...tions/shared/src/test/scala/org/mulesoft/als/actions/definition/DefinitionFileTests.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
als-actions/shared/src/test/scala/org/mulesoft/als/actions/links/FindLinksTests.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.