diff --git a/waspc/ChangeLog.md b/waspc/ChangeLog.md index af747cfc35..7d34099283 100644 --- a/waspc/ChangeLog.md +++ b/waspc/ChangeLog.md @@ -1,5 +1,16 @@ # Changelog +## 0.13.1 (2024-04-04) + +### 🐞 Bug fixes + +- Vite HMR now works correctly with Wasp's new project structure (no more full-page reloads). +- Keycloak UI helpers are now correctly exported. + +### 🔧 Small improvements + +- Improved how IDEs auto-import symbols from `wasp/*` modules. + ## 0.13.0 (2024-03-18) ### ⚠️ Breaking changes diff --git a/waspc/data/Generator/templates/sdk/wasp/tsconfig.json b/waspc/data/Generator/templates/sdk/wasp/tsconfig.json index 39bc110351..22f943266a 100644 --- a/waspc/data/Generator/templates/sdk/wasp/tsconfig.json +++ b/waspc/data/Generator/templates/sdk/wasp/tsconfig.json @@ -28,6 +28,11 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ diff --git a/waspc/e2e-test/GoldenTest.hs b/waspc/e2e-test/GoldenTest.hs index b158ad0c1d..2c46479e1f 100644 --- a/waspc/e2e-test/GoldenTest.hs +++ b/waspc/e2e-test/GoldenTest.hs @@ -96,7 +96,8 @@ runGoldenTest goldenTest = do "dev.db-journal", "package-lock.json", ".gitignore", - ".DS_Store" + ".DS_Store", + "tsconfig.tsbuildinfo" ] writeFileManifest :: String -> [FilePath] -> FilePath -> IO () diff --git a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums index 504e8390a4..a165a89980 100644 --- a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums @@ -326,7 +326,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3" + "d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json index a7030c61d5..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json @@ -27,6 +27,11 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ diff --git a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json index a7030c61d5..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,11 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ diff --git a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums index 8a425bb024..d6d1dec709 100644 --- a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums @@ -326,7 +326,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3" + "d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json index a7030c61d5..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,11 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ diff --git a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums index 516a71636f..328da67b18 100644 --- a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums @@ -718,7 +718,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3" + "d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json index a7030c61d5..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,11 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ diff --git a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums index 1567f02c19..a27fe5e85b 100644 --- a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums @@ -382,7 +382,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3" + "d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json index a7030c61d5..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,11 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ diff --git a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums index b3a45e8d57..c6df881423 100644 --- a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums @@ -326,7 +326,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3" + "d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json index a7030c61d5..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,11 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [