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 pm2?
# TODO: Use non-root user (node). # TODO: Use non-root user (node).
FROM base AS server-production 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 PATH "$PATH:/root/.local/bin"
ENV NODE_ENV production ENV NODE_ENV production
WORKDIR /app WORKDIR /app

View File

@ -1,5 +1,11 @@
# Changelog # 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 ## 0.12.1
### 🐞 Bug fixes ### 🐞 Bug fixes

View File

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

View File

@ -3,6 +3,7 @@
import { webcrypto } from "node:crypto"; 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") { if (typeof globalThis.crypto === "undefined") {
// @ts-ignore // @ts-ignore
globalThis.crypto = webcrypto as Crypto; globalThis.crypto = webcrypto as Crypto;

View File

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

View File

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

View File

@ -3,6 +3,7 @@
import { webcrypto } from "node:crypto"; 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") { if (typeof globalThis.crypto === "undefined") {
// @ts-ignore // @ts-ignore
globalThis.crypto = webcrypto as Crypto; globalThis.crypto = webcrypto as Crypto;

View File

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

View File

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

View File

@ -3,6 +3,7 @@
import { webcrypto } from "node:crypto"; 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") { if (typeof globalThis.crypto === "undefined") {
// @ts-ignore // @ts-ignore
globalThis.crypto = webcrypto as Crypto; globalThis.crypto = webcrypto as Crypto;

View File

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

View File

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

View File

@ -3,6 +3,7 @@
import { webcrypto } from "node:crypto"; 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") { if (typeof globalThis.crypto === "undefined") {
// @ts-ignore // @ts-ignore
globalThis.crypto = webcrypto as Crypto; globalThis.crypto = webcrypto as Crypto;

View File

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

View File

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

View File

@ -3,6 +3,7 @@
import { webcrypto } from "node:crypto"; 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") { if (typeof globalThis.crypto === "undefined") {
// @ts-ignore // @ts-ignore
globalThis.crypto = webcrypto as Crypto; globalThis.crypto = webcrypto as Crypto;

View File

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

View File

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

View File

@ -6,7 +6,7 @@ cabal-version: 2.4
-- Consider using hpack, or maybe even hpack-dhall. -- Consider using hpack, or maybe even hpack-dhall.
name: waspc 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> 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 homepage: https://github.com/wasp-lang/wasp/waspc#readme
bug-reports: https://github.com/wasp-lang/wasp/issues bug-reports: https://github.com/wasp-lang/wasp/issues