Updated waspc.cabal, ChangeLog and e2e test to 0.12.2.

This commit is contained in:
Martin Sosic 2024-02-29 19:00:11 +01:00
parent 1669357dbe
commit 17479c76a9
19 changed files with 24 additions and 13 deletions

View File

@ -41,7 +41,7 @@ RUN cd .wasp/build/server && npm run bundle
# TODO: Use pm2?
# TODO: Use non-root user (node).
FROM base AS server-production
RUN curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- -v 0.12.1
RUN curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- -v 0.12.2
ENV PATH "$PATH:/root/.local/bin"
ENV NODE_ENV production
WORKDIR /app

View File

@ -1,5 +1,11 @@
# Changelog
## 0.12.2
### 🐞 Bug fixes
- We were adding Crypto polyfill even when not needed (when node > 18), which was then causing an error. Now polyfill is added only if needed.
## 0.12.1
### 🐞 Bug fixes

View File

@ -466,7 +466,7 @@
"file",
"server/src/polyfill.ts"
],
"4ab1dcc0b102d76e98710af39a41bfee93be96ba04d9d84a58cd50ffa73b6c11"
"1149661e0aa7228b184bb2c04ac63232a6523b09b33829db6977f79daba3fd8d"
],
[
[

View File

@ -3,6 +3,7 @@
import { webcrypto } from "node:crypto";
// NOTE: node < 19 doesn't have Crypto API, which we need for Lucia, so we apply the polyfill if Crypto API is not defined.
if (typeof globalThis.crypto === "undefined") {
// @ts-ignore
globalThis.crypto = webcrypto as Crypto;

View File

@ -1,7 +1,7 @@
app waspBuild {
db: { system: PostgreSQL },
wasp: {
version: "^0.12.1"
version: "^0.12.2"
},
title: "waspBuild"
}

View File

@ -473,7 +473,7 @@
"file",
"server/src/polyfill.ts"
],
"4ab1dcc0b102d76e98710af39a41bfee93be96ba04d9d84a58cd50ffa73b6c11"
"1149661e0aa7228b184bb2c04ac63232a6523b09b33829db6977f79daba3fd8d"
],
[
[

View File

@ -3,6 +3,7 @@
import { webcrypto } from "node:crypto";
// NOTE: node < 19 doesn't have Crypto API, which we need for Lucia, so we apply the polyfill if Crypto API is not defined.
if (typeof globalThis.crypto === "undefined") {
// @ts-ignore
globalThis.crypto = webcrypto as Crypto;

View File

@ -1,6 +1,6 @@
app waspCompile {
wasp: {
version: "^0.12.1"
version: "^0.12.2"
},
title: "waspCompile"
}

View File

@ -935,7 +935,7 @@
"file",
"server/src/polyfill.ts"
],
"4ab1dcc0b102d76e98710af39a41bfee93be96ba04d9d84a58cd50ffa73b6c11"
"1149661e0aa7228b184bb2c04ac63232a6523b09b33829db6977f79daba3fd8d"
],
[
[

View File

@ -3,6 +3,7 @@
import { webcrypto } from "node:crypto";
// NOTE: node < 19 doesn't have Crypto API, which we need for Lucia, so we apply the polyfill if Crypto API is not defined.
if (typeof globalThis.crypto === "undefined") {
// @ts-ignore
globalThis.crypto = webcrypto as Crypto;

View File

@ -1,7 +1,7 @@
app waspComplexTest {
db: { system: PostgreSQL },
wasp: {
version: "^0.12.1"
version: "^0.12.2"
},
auth: {
userEntity: User,

View File

@ -543,7 +543,7 @@
"file",
"server/src/polyfill.ts"
],
"4ab1dcc0b102d76e98710af39a41bfee93be96ba04d9d84a58cd50ffa73b6c11"
"1149661e0aa7228b184bb2c04ac63232a6523b09b33829db6977f79daba3fd8d"
],
[
[

View File

@ -3,6 +3,7 @@
import { webcrypto } from "node:crypto";
// NOTE: node < 19 doesn't have Crypto API, which we need for Lucia, so we apply the polyfill if Crypto API is not defined.
if (typeof globalThis.crypto === "undefined") {
// @ts-ignore
globalThis.crypto = webcrypto as Crypto;

View File

@ -1,7 +1,7 @@
app waspJob {
db: { system: PostgreSQL },
wasp: {
version: "^0.12.1"
version: "^0.12.2"
},
title: "waspJob"
}

View File

@ -473,7 +473,7 @@
"file",
"server/src/polyfill.ts"
],
"4ab1dcc0b102d76e98710af39a41bfee93be96ba04d9d84a58cd50ffa73b6c11"
"1149661e0aa7228b184bb2c04ac63232a6523b09b33829db6977f79daba3fd8d"
],
[
[

View File

@ -3,6 +3,7 @@
import { webcrypto } from "node:crypto";
// NOTE: node < 19 doesn't have Crypto API, which we need for Lucia, so we apply the polyfill if Crypto API is not defined.
if (typeof globalThis.crypto === "undefined") {
// @ts-ignore
globalThis.crypto = webcrypto as Crypto;

View File

@ -1,6 +1,6 @@
app waspMigrate {
wasp: {
version: "^0.12.1"
version: "^0.12.2"
},
title: "waspMigrate"
}

View File

@ -1,6 +1,6 @@
app waspNew {
wasp: {
version: "^0.12.1"
version: "^0.12.2"
},
title: "waspNew"
}

View File

@ -6,7 +6,7 @@ cabal-version: 2.4
-- Consider using hpack, or maybe even hpack-dhall.
name: waspc
version: 0.12.1
version: 0.12.2
description: Please see the README on GitHub at <https://github.com/wasp-lang/wasp/waspc#readme>
homepage: https://github.com/wasp-lang/wasp/waspc#readme
bug-reports: https://github.com/wasp-lang/wasp/issues