Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ You need to keep the versions of these three things in sync:
- The Elm compiler.
- The [elm-explorations/test] package.

When it comes to the first two it’s easy: Use the same version for both. If you use Elm 0.19.2, use version 0.19.2 of this CLI tool as well. Note that the npm packages for both `elm` and `elm-test` might have suffixes such as `-0` and `-1` etc. It’s totally OK to use `elm@0.19.2-0` with `elm-test@0.19.2-1`! The suffixes don’t need to match. The suffixes are all about bug fixes or features in the respective npm packages, while the base version says which compiler version we’re working with.
When it comes to the first two it’s easy: Use the same version for both. If you use Elm 0.19.3, use version 0.19.3 of this CLI tool as well. Note that the npm packages for both `elm` and `elm-test` might have suffixes such as `-0` and `-1` etc. It’s totally OK to use `elm@0.19.3-0` with `elm-test@0.19.3-1`! The suffixes don’t need to match. The suffixes are all about bug fixes or features in the respective npm packages, while the base version says which compiler version we’re working with.

When it comes to [elm-explorations/test]: Use at least version 2.0.0 with elm-test 0.19.2. If you’re on 0.19.1, see the following table:
When it comes to [elm-explorations/test]: Use at least version 2.0.0 with elm-test 0.19.3. If you’re on 0.19.1, see the following table:

| elm-explorations/test | elm-test CLI |
| --------------------- | -------------------- |
Expand All @@ -32,7 +32,7 @@ When it comes to [elm-explorations/test]: Use at least version 2.0.0 with elm-te
>
> - `elm-test init` always installs the latest [elm-explorations/test]. This means that if you run `elm-test init` on version 0.19.1-revision9 or older, you will get elm-explorations/test 2.0.0 or later, which don’t work 100 % together (see the next point).
> - elm-test 0.19.1-revision9 or older do _not_ validate that [elm-explorations/test] in your elm.json has a compatible version. If you upgrade to elm-explorations/test 2.0.0 or later but forget to upgrade the elm-test CLI, most things will still work, but test distribution diagrams (new in elm-explorations/test 2.0.0) won’t show up. So if you use `Test.fuzzWith` and wonder why distribution diagrams never show up – check your elm-test CLI version!
> - There exists an elm-test CLI version called just "0.19.1". It should have been called "0.19.1-revision1", but unfortunately isn’t. Don’t make the mistake thinking it’s the latest version! You always want "0.19.1-revisionX". (This is also why there is a version called "0.19.2-0" but no "0.19.2".)
> - There exists an elm-test CLI version called just "0.19.1". It should have been called "0.19.1-revision1", but unfortunately isn’t. Don’t make the mistake thinking it’s the latest version! You always want "0.19.1-revisionX". (This is also why there is a version called "0.19.3-0" but no "0.19.3".)

## Installation

Expand Down
2 changes: 1 addition & 1 deletion elm-tooling.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tools": {
"elm": "0.19.2",
"elm": "0.19.3",
"elm-format": "0.8.8"
}
}
2 changes: 1 addition & 1 deletion elm/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"source-directories": [
"src"
],
"elm-version": "0.19.2",
"elm-version": "0.19.3",
"dependencies": {
"direct": {
"elm/core": "1.0.5",
Expand Down
2 changes: 1 addition & 1 deletion elm/review/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"source-directories": [
"src"
],
"elm-version": "0.19.2",
"elm-version": "0.19.3",
"dependencies": {
"direct": {
"elm/core": "1.0.5",
Expand Down
2 changes: 1 addition & 1 deletion example-application-no-tests/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"source-directories": [
"src"
],
"elm-version": "0.19.2",
"elm-version": "0.19.3",
"dependencies": {
"direct": {
"elm/browser": "1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion example-application-src/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"source-directories": [
"src"
],
"elm-version": "0.19.2",
"elm-version": "0.19.3",
"dependencies": {
"direct": {
"elm/browser": "1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion example-application/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"src",
"tests"
],
"elm-version": "0.19.2",
"elm-version": "0.19.3",
"dependencies": {
"direct": {
"elm/browser": "1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion lib/ElmHome.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function defaultWindowsElmHome() {
*/
function packagePath(pkg) {
const parts = splitAuthorPkg(pkg);
return path.join(elmHome(), '0.19.2', 'packages', parts.author, parts.pkg);
return path.join(elmHome(), '0.19.3', 'packages', parts.author, parts.pkg);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function generateElmJson(
const testElmJson = {
type: 'application',
'source-directories': sourceDirs,
'elm-version': '0.19.2',
'elm-version': '0.19.3',
dependencies: Solve.getDependenciesCached(
dependencyProvider,
packageStrategy,
Expand Down Expand Up @@ -175,7 +175,7 @@ function getMainModule(generatedCodeDir) {
path:
// We'll be putting the generated Main in something like this:
//
// my-project-name/elm-stuff/generated-code/elm-community/elm-test/0.19.2-X/src/Test/Generated/Main.elm
// my-project-name/elm-stuff/generated-code/elm-community/elm-test/0.19.3-X/src/Test/Generated/Main.elm
path.join(getGeneratedSrcDir(generatedCodeDir), ...moduleName) + '.elm',
};
}
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@types/node": "26.0.1",
"@types/which": "3.0.4",
"elm-review": "2.13.1",
"elm-tooling": "1.18.0",
"elm-tooling": "1.21.0",
"eslint": "9.20.1",
"eslint-plugin-mocha": "10.5.0",
"globals": "15.15.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"source-directories": [
"src"
],
"elm-version": "0.19.2",
"elm-version": "0.19.3",
"dependencies": {
"direct": {
"elm/core": "1.0.5"
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/install/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"source-directories": [
"src"
],
"elm-version": "0.19.2",
"elm-version": "0.19.3",
"dependencies": {
"direct": {
"elm/core": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/install/test-elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"source-directories": [
"src"
],
"elm-version": "0.19.2",
"elm-version": "0.19.3",
"dependencies": {
"direct": {
"elm/core": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/templates/application/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"source-directories": [
"src"
],
"elm-version": "0.19.2",
"elm-version": "0.19.3",
"dependencies": {
"direct": {
"elm/browser": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/write-elm-json/elm.input.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"nonStandardFieldStart": 1,
"type": "application",
"source-directories": [ "src" ],
"elm-version": "0.19.2",
"elm-version": "0.19.3",
"dependencies": {
"direct": { "elm/core": "1.0.0" },
"indirect": {}
Expand Down
Loading