Release 0.10.2 from main (#1151)

This commit is contained in:
Mihovil Ilakovac 2023-04-19 01:14:06 +02:00 committed by GitHub
parent 1c3346a904
commit eb81959d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 53 additions and 19 deletions

13
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1,13 @@
# These are supported funding model platforms
github: [ wasp-lang ] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

View File

@ -1,5 +1,10 @@
# Changelog
## v0.10.2
### Bug fixes
- Fixed a bug where JS arrays weren't generated properly from Haskell code which caused issues with oAuth, operations and cache invalidation.
## v0.10.1
### Bug fixes

View File

@ -178,8 +178,8 @@ printDbUsage =
cmd " start Alias for `wasp start db`.",
cmd " reset Drops all data and tables from development database and re-applies all migrations.",
cmd " seed [name] Executes a db seed function (specified via app.db.seeds).",
cmd " If there are multiple seeds, you can specify a seed to execute by providing its name,",
cmd " or if not then you will be asked to provide the name interactively.",
" If there are multiple seeds, you can specify a seed to execute by providing its name,",
" or if not then you will be asked to provide the name interactively.",
cmd $ intercalate "\n" [
" migrate-dev Ensures dev database corresponds to the current state of schema(entities):",
" - Generates a new migration if there are changes in the schema.",

View File

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

View File

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

View File

@ -130,7 +130,7 @@
"file",
"server/src/auth/providers/config/google.ts"
],
"7fbd4267706f1ce75574392c4b763917b7d574554db6966cacb9bac29abcf3df"
"ff060f3cb2437755867b9548dce153bd38b985dc3fc102073bd698d3d7fa23a7"
],
[
[
@ -557,7 +557,7 @@
"file",
"web-app/src/actions/MySpecialAction.ts"
],
"5bcc78e0debb14c6af4572fe1c7512e8128f0d66c7bb80bd606cab014e6df8ec"
"32410f3702d0f04f19b6c6f84f827dc208eb63b7dce062385e388601ddfc72cf"
],
[
[
@ -690,7 +690,7 @@
"file",
"web-app/src/auth/useAuth.ts"
],
"e3cd75c8a68c29a17a9ca5c5c8e86c03229c2323cf62cbaf70519fe8001cefa4"
"8d4051f75e47c6bfa1d44ef2ecf252e38988795c1a8b795cdf5ca3c7a1ac065d"
],
[
[
@ -788,7 +788,7 @@
"file",
"web-app/src/queries/MySpecialQuery.ts"
],
"cf9bc21326f94f4359c66a373324290d73c6b71ff335210b7fddfa3afaa062d6"
"2d1424a21683c9c6a2facbd60ede45a90bc7b4deb04b04c8e0d955a140eb3d9d"
],
[
[

View File

@ -11,7 +11,7 @@ const _waspUserDefinedConfigFn = undefined
const _waspOAuthConfig: OAuthConfig = {
clientID: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
scope: ['"profile"'],
scope: ['profile'],
};
const _waspConfig: ProviderConfig = {

View File

@ -3,7 +3,7 @@ import { MySpecialAction } from '../../../server/src/actions/MySpecialAction'
const action = createAction<MySpecialAction>(
'operations/my-special-action',
['"User"'],
['User'],
)
export default action

View File

@ -32,7 +32,7 @@ function createUserGetter() {
addMetadataToQuery(getMe, {
relativeQueryPath: getMeRelativePath,
queryRoute: getMeRoute,
entitiesUsed: ['"User"'],
entitiesUsed: ['User'],
})
return getMe

View File

@ -4,7 +4,7 @@ import { MySpecialQuery } from '../../../server/src/queries/MySpecialQuery'
const query = createQuery<MySpecialQuery>(
'operations/my-special-query',
['"User"'],
['User'],
)
export default query

View File

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

View File

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

View File

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

View File

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

View File

@ -83,7 +83,7 @@ makeJsonWithEntityData name =
entityNameToPrismaIdentifier :: String -> String
entityNameToPrismaIdentifier = toLowerFirst
makeJsArrayFromHaskellList :: Show a => [a] -> String
makeJsArrayFromHaskellList :: [String] -> String
makeJsArrayFromHaskellList list = "[" ++ intercalate ", " listOfJsStrings ++ "]"
where
listOfJsStrings = map (\x -> "'" ++ show x ++ "'") list
listOfJsStrings = map (\s -> "'" ++ s ++ "'") list

View File

@ -0,0 +1,15 @@
module Generator.CommonTest where
import Test.Tasty.Hspec
import Wasp.Generator.Common (makeJsArrayFromHaskellList)
spec_GeneratorCommonTest :: Spec
spec_GeneratorCommonTest = do
describe "makeJsArrayFromHaskellList" $ do
it "creates an empty JS array from empty Haskell list" $ do
makeJsArrayFromHaskellList []
`shouldBe` "[]"
it "creates an array of strings from Haskell list of strings" $ do
makeJsArrayFromHaskellList ["one", "two", "three"]
`shouldBe` "['one', 'two', 'three']"

View File

@ -6,7 +6,7 @@ cabal-version: 2.4
-- Consider using hpack, or maybe even hpack-dhall.
name: waspc
version: 0.10.1
version: 0.10.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
@ -471,6 +471,7 @@ test-suite waspc-test
Generator.WebAppGeneratorTest
Generator.WriteFileDraftsTest
Generator.JsImportTest
Generator.CommonTest
Psl.Common.ModelTest
Psl.Generator.ModelTest
Psl.Parser.ModelTest