Commit Graph

92 Commits

Author SHA1 Message Date
Shayne Czyzewski
013a13dee2
Adds middleware customization (#1092) 2023-04-24 12:16:54 -04:00
Mihovil Ilakovac
a87a9ca3ec
Fixes e2e tests after version bump (#1150) 2023-04-19 01:01:12 +02:00
Filip Sodić
6ed68c60bb
Update changelog for v0.10.1 (#1145) 2023-04-18 18:51:05 +02:00
Filip Sodić
949b462d21
Fix build errors in Wasp 0.10.0 (#1144) 2023-04-18 18:07:09 +02:00
Filip Sodić
4171f5608b
Fix full-stack type support errors (#1123) 2023-04-12 15:36:52 +02:00
Mihovil Ilakovac
ae85d1a285
Registers User entity as dependency of getMe (#1116) 2023-04-11 18:25:30 +02:00
Mihovil Ilakovac
ee5272e6de
Improves error messages in auth (#1120) 2023-04-11 16:49:26 +02:00
Filip Sodić
d8f7a633ed
Fix type errors preventing build (#1118) 2023-04-07 19:20:06 +02:00
Martin Sosic
e960ad3208 Regenerated e2e tests. 2023-04-07 18:26:24 +02:00
Filip Sodić
ea714642fe
Update waspc.cabal version to 0.10.0 (#1109) 2023-04-06 21:20:07 +02:00
Filip Sodić
945d777133
Add full-stack compile-time type safety (#1090) 2023-04-06 21:12:18 +02:00
Mihovil Ilakovac
7f32a4ccb9
Adding e-mail auth (e-mail verfication, password reset) (#1087) 2023-04-05 23:25:03 +02:00
Martin Šošić
0e5aa85014
Implement database seeding via 'wasp db seed' 2023-04-05 11:33:52 +02:00
Shayne Czyzewski
5d2b278e75
Adds vitest for testing client code (#1055) 2023-03-30 12:22:40 -04:00
Mihovil Ilakovac
6dbeedca60
Adds support for e-mail sending (#1050) 2023-03-24 12:42:22 +01:00
Mihovil Ilakovac
a86f3fdb7c
Fixes localstorage clearing bug (#1058) 2023-03-22 14:05:39 +01:00
Martin Šošić
91a8063081
Implemented wasp start db (managed dev db) (#1044)
Implemented 'wasp start db' + docs + e2e tests + refactoring.
2023-03-21 16:37:20 +01:00
Mihovil Ilakovac
326737759d
Refactor auth to conform to providers interface (#998) 2023-03-16 10:42:57 +01:00
Mihovil Ilakovac
7bd217595a
Opens React app by default when running wasp start (#1059) 2023-03-15 14:46:37 +01:00
Shayne Czyzewski
9f3f5234ef
Adds api for defining custom HTTP routes (#1043) 2023-03-14 14:04:51 -04:00
Mihovil Ilakovac
6d979c1c7f
Adds support for FE listening on multiple addresses (#1048) 2023-03-10 11:30:48 +01:00
Martin Sosic
81f0eeae15 Bumped Wasp version to 0.9.0. 2023-03-08 23:09:29 +01:00
Mihovil Ilakovac
cb691c8dd7
Fixes tsconfig.json use of extends (#1045) 2023-03-07 22:52:21 +01:00
Mihovil Ilakovac
4c60f3c5b7
Vite related docs and changelog update (#1037) 2023-03-02 16:31:53 +01:00
Mihovil Ilakovac
7a0f8b5d58
Replaces Create React App with Vite (#1019) 2023-03-01 17:14:14 +01:00
Shayne Czyzewski
8991043eed
Add Express app and http server to server setupFn (#1017) 2023-02-27 12:19:17 -05:00
Shayne Czyzewski
1515d04b5a
Fix server env validation during deploy (#1022) 2023-02-22 14:16:30 -05:00
Mihovil Ilakovac
85b3e3480a
Add missing dotenv dependency (#1021) 2023-02-22 15:30:22 +01:00
Mihovil Ilakovac
75b3d7db01
Adds env validation and shared templates folder (#994) 2023-02-21 11:52:37 +01:00
Mihovil Ilakovac
9665571c63
Moves root component inside of Router (#1016) 2023-02-21 11:52:14 +01:00
Mihovil Ilakovac
9b2c8ca0a5
Fixes user query cache invalidation (#1014) 2023-02-20 16:28:26 +01:00
Mihovil Ilakovac
c2a3e04283
Adds support for root component (#1009) 2023-02-20 11:15:54 +01:00
Shayne Czyzewski
bfbb57ecd0
Build server during Docker build, not when starting app (#1008) 2023-02-17 13:33:25 -05:00
Mihovil Ilakovac
2622f3c4cd
Bumps Wasp to 0.8.2 (#1010) 2023-02-16 10:49:18 +01:00
Mihovil Ilakovac
b139a0bcff Merge branch 'main' into release-with-main 2023-02-14 23:04:01 +01:00
Mihovil Ilakovac
07b03fec5d
Generate all JS import statements in Haskell (#956) 2023-02-13 16:57:31 +01:00
Mihovil Ilakovac
0fce66f21e
Drop the npm version requirement (#1002) 2023-02-13 16:10:40 +01:00
Filip Sodić
b79f694eef
Fix structural typing bug with operation types (#982)
* Support typing backend queries

* Implement types for actions and extract entities

* Add Prisma entities to the frontend

* Add frontend types to internal todoApp

* Undo moving for easier review

* Revert back to generating a query.js file

* Rename buildEntityData

* Fix structural typing bug

* Rename function for making entity json data

* Expand EntityMap to improve readability

* Remove leftover testing artifacts

* Remove wasp prefix from _entityName

* Remove solved todo in schema template

* Fix docs in method

* Adding uninstall command (#953)

* Adding uninstall command

* Updates docs and changelog related to the uninstall command

* Use StrongPath instead of FilePath

* Fix review feedback

* Move prisma client generation messages

* Generalize FileDraft functions

* Generate prisma clients using ENV

* Fix schema checksum check

* Small refactor in db generator

* Run prisma generate from server root dir

* Fix types for useAction

* Fix type error for useAction

* Fix schema generation in Dockerfile

* Refactor passing env vars to prisma schema

* Fix useAction types

* Replace Prelude readFile with SP readFile

* Add comment for prisma/client in web app

* Replace Prelude writeFile with SP writeFile

* Replace do and if with ifM

* Rename readProjectTelemetryFile

* Refactor readOrCreateUserSignatureFile

* Remove redundant comment

* Fix typo in variable name

* Simulate unions with a type class

* Further improve strongpath types

* Add expand types to types index

* Remove redundant comment

* Organize internal type modules

* Fix formatting

* Remove leftover code

* Generate prisma clients after migration

* Change ModuleRootDir to ComponentRootDir

* Remove solved todo

* Improve naming

* Remove redundant env variable

* Improve formatting

* Fix errors after merging

* Include input and output types

* Temporarily delete _types

* Restore _types index

* Add types to queries

* Rename WaspEntity to Entity

* Change local function name

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Rename local function again

* Update changelog

* Fix error type in useQuery

* Rename Component to AppComponent

* Refactor DbGenerator

* Explain Abs paths in SP helpers

* Update e2e tests

* Fix formatting

* Change signature for doesFileExist

* Change signature for SP functions

* Remove redundant do block

* Fix formatting

* Reorder functions

* Rename module to appComponent in functions

* Rename module to component in functions

* Rename telemetry cache function

* Fix formatting

* Update changelog

* Remove redundant import

* Update e2e tests

---------

Co-authored-by: Mihovil Ilakovac <mihovil@ilakovac.com>
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2023-02-13 15:17:08 +01:00
Filip Sodić
c41f065ef4
Bring Prisma entities to the frontend (#962)
* Support typing backend queries

* Implement types for actions and extract entities

* Add Prisma entities to the frontend

* Add frontend types to internal todoApp

* Undo moving for easier review

* Revert back to generating a query.js file

* Rename buildEntityData

* Remove solved todo in schema template

* Fix docs in method

* Adding uninstall command (#953)

* Adding uninstall command

* Updates docs and changelog related to the uninstall command

* Use StrongPath instead of FilePath

* Fix review feedback

* Move prisma client generation messages

* Generalize FileDraft functions

* Generate prisma clients using ENV

* Fix schema checksum check

* Small refactor in db generator

* Run prisma generate from server root dir

* Fix types for useAction

* Fix type error for useAction

* Fix schema generation in Dockerfile

* Refactor passing env vars to prisma schema

* Fix useAction types

* Replace Prelude readFile with SP readFile

* Add comment for prisma/client in web app

* Replace Prelude writeFile with SP writeFile

* Replace do and if with ifM

* Rename readProjectTelemetryFile

* Refactor readOrCreateUserSignatureFile

* Remove redundant comment

* Fix typo in variable name

* Simulate unions with a type class

* Further improve strongpath types

* Generate prisma clients after migration

* Change ModuleRootDir to ComponentRootDir

* Remove solved todo

* Improve naming

* Remove redundant env variable

* Improve formatting

* Fix errors after merging

* Change local function name

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Rename local function again

* Update changelog

* Fix error type in useQuery

* Rename Component to AppComponent

* Refactor DbGenerator

* Explain Abs paths in SP helpers

* Update e2e tests

* Fix formatting

* Change signature for doesFileExist

* Change signature for SP functions

* Remove redundant do block

* Fix formatting

* Reorder functions

* Rename module to appComponent in functions

* Rename module to component in functions

* Rename telemetry cache function

* Fix formatting

---------

Co-authored-by: Mihovil Ilakovac <mihovil@ilakovac.com>
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2023-02-13 14:31:49 +01:00
Bas Dirks
e4e29eec0b
Add Input type to operations (#989)
* feat: add type variable for operation input argument

* Pass where object by name.

* Change default type of operator input to `never`.

* Update e2e checksums.

* Rename operation Result type to Output, remove redundant default types.

---------

Co-authored-by: Bas Dirks <bas.dirks@bettyblocks.com>
2023-02-10 16:56:53 +01:00
Filip Sodić
71038c277d
Add automatic TypeScript support for operations (#952)
* Support typing backend queries

* Implement types for actions and extract entities

* Automatically generate specific operation types

* Eta reduce functions

* Add CR fixes

* Add type to imports and exports for entities

* Change query extensions back to .js

* Tidy up default arguments for operation types

* Don't throw syntax error when there are no entities

* Update e2e tests

* Fix formatting

* Address CR comments

* Fix typo in comment

* Add duplication comment

* Update e2e tests

* Fix duplication comments

* Update changelog and bump project version

* Update changelog

* Update e2e tests
2023-01-24 15:12:57 +01:00
Filip Sodić
81ffa6c27c
Add manual TypeScript support for Operations (#945)
* Support typing backend queries

* Implement types for actions and extract entities

* Add CR fixes

* Add type to imports and exports for entities

* Change query extensions back to .js

* Tidy up default arguments for operation types

* Don't throw syntax error when there are no entities

* Update e2e tests

* Fix formatting

* Fix typo in comment

* Update changelog and bump project version
2023-01-24 14:45:35 +01:00
Shayne Czyzewski
e8a142f155
Bump version for 0.8.0 release (#917) 2023-01-02 10:44:24 -05:00
Martin Sosic
67761dcfb6 Updated e2e tests. 2022-12-14 23:53:52 +01:00
shayneczyzewski
a678c41d7e update wasp version in e2e 2022-12-13 19:20:34 +01:00
Martin Sosic
6ba114ecbe Fixed failing Dockerfile (openssl3 + prisma). 2022-12-13 14:41:46 +01:00
Filip Sodić
5efa40f871 Update version to 0.7.1 and edit changelog 2022-12-01 01:24:23 +01:00
Filip Sodić
0433ebbd37
Add TS compile step when running production (#861)
* Fix missing compile step on production start

* Update e2e tests
2022-11-30 18:43:07 +01:00
Filip Sodić
1f7f9005b0
Update Todo app tutorial (#840)
* Update todo app tutorial

* Remove trailing spaces from clocks

* Match MainPage with tutorial

* Add newline to end of action.js

* Fix newline at the end of action.js

* Fix typo in tutorial

* Update web/docs/tutorials/todo-app/creating-new-project.md

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Update web/docs/tutorials/todo-app/creating-new-project.md

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Fix jsx typo in tutorial

* Remove React import from e2e tests

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2022-11-26 19:32:43 +01:00
Filip Sodić
b468f72576
Fix version issue for React-related types (#838)
* Fix react version mismatch

* Update e2e tests
2022-11-26 17:39:11 +01:00