Commit Graph

414 Commits

Author SHA1 Message Date
Shayne Czyzewski
dc036f56cd
Updates CRA from v4 to v5 (#771) 2022-10-19 10:39:45 -04:00
Hari Sankar
76e43b3685
Add information of completion command in wasp help (#256) (#766)
* Add information of completion command in `wasp help` (fix #256)

* Fix syntax error

* Move completion command under GENERAL
2022-10-19 09:46:15 +02:00
Steven Garcia
c018d284a9
Update Wasp CLI bash completion list (#765)
* Update Wasp CLI bash completion list

* Add completion and completion:generate to commands

Co-authored-by: sgarcia <sgarcia@pop-os.localdomain>
2022-10-19 09:44:00 +02:00
Steven Garcia
f6da4f8899
Add user-friendly error when DATABASE_URL envar is not set (#743)
Co-authored-by: sgarcia <sgarcia@pop-os.localdomain>
2022-10-18 11:58:21 +02:00
Ankesh
ac625d964f
Remove trailing slash from Wasp backend URL (#749)
* Add trailing slash note in deploying document

* Remove trailing slash, if present in the wasp backend URL

* e2e-test for trailing slash fix

* e2e test for trailing slash in wasp backend url

* Fix e2e-tests checksums

Co-authored-by: Filip Sodić <filip.sodic@gmail.com>
2022-10-18 01:31:39 +02:00
InfiniteVerma
c6b61ce573
Checks for duplicate FileDraft _dstPath during generation (#733) 2022-10-17 10:59:24 -04:00
Steven Garcia
e2fe5b2402
Fix compiler warnings in tests (#764)
Co-authored-by: sgarcia <sgarcia@pop-os.localdomain>
2022-10-17 01:32:44 +02:00
Filip Sodić
8cd5220293
Remove rudandant aboslute API URLs (#755)
* Remove rudandant aboslute API URLs

* Remove redundant imports from js files

* Update e2e tests
2022-10-14 15:16:35 +02:00
Shayne Czyzewski
8fc6fd1836
Adds support for Dockerfile customization (#732) 2022-10-13 12:46:07 -04:00
Shayne Czyzewski
a84f3547fa
Fixes login issue for uppercase usernames (#751) 2022-10-13 12:04:45 -04:00
Shayne Czyzewski
4cdc06dd13
Warn if .env file found (#746) 2022-10-06 13:23:40 +02:00
Peter Reshetin
3f63340fc1
feat: separate env vars for server and client (#683) 2022-10-06 12:51:28 +02:00
Filip Sodić
b470d50be8
Generalize WriteableMonad (#742)
* Fix unused variable warning (#736)

* Generalize WriteableMonad functions

* Format code and remove redundant imports

* Improve MockWriteableMonad with RankNTypes
2022-10-04 11:05:52 +02:00
Martin Sosic
62c31f26ff Added extra step to our release process in README.md. 2022-09-29 16:16:29 +02:00
Filip Sodić
31391ee2dc Fix unused variable warning (#736) 2022-09-29 16:04:08 +02:00
Martin Sosic
1b65f042b0 Updated wasp version to 0.6.0.0. 2022-09-29 12:06:32 +02:00
Martin Sosic
da9074e093 fixed new-release script to work with release branch. 2022-09-29 12:06:14 +02:00
Martin Sosic
f0dd465c84 Updated ChangeLog. 2022-09-29 11:59:49 +02:00
Filip Sodić
fbf6de0d4d
Fix flickering UI in optimistic updates (#668)
* Fix query cache key generation issue

* Make waspc/todoApp return tasks in consistent order

* Implement basic support for optimistic updates

* Fix query cache key generation issue again

* Add action counter to prevent flickering updates

* Add remove todo to action counter

* Count only optimistically updated cache keys

* Make waspc/todoApp return tasks in consistent order

(cherry picked from commit 57606c74e4)

* Reduce duplication in frontend actions and queries

* Fix formatting

* Fix optimistic updates after merge

* Experimenting

* Hash queries before counting

* Rename parameters in counter

* Add task done toggling to task page

* Fixes after merge

* Fix wrong condition in example todo app

* Simplify counter with react-query's internal hash

* Remove console log and add notes

* Clear up some todos and tidy up

* Fix formatting

* Remove leftover todo

* Fix a bug that caused double action calls

* Simplify query key hashing function

* Revert accidental blog changes

* Revert accidental blog changes

* Apply optimistic updates on each query response

* Clean up code for optimistic updates

* Clean up more code for optimistic updates

* Remove redundant optimistic update tuple list

* Rename query to queryKey

* Return previous data from onMutate

* Move counter into the constructor function

* Move updatesHandler into the constructor function

* Remove debug logs from optimisticUpdatesMap

* Rename and refactor optimistic updates

* Fix typo in comments

* Remove the option to directly specify query key

* Remove flickering fixes for optimistic updates

* Add optimistic updates to Task.js

* First round of code review feedback

* Remove react query's additional options from hook

* Futher review feedback and code docs

* Fix and document error handling for optimistic updates

* Fix formatting and remove comment

* Further document optimistic update mechanisms

* Fix memory leak in updates handler map

* Update optimistic update docs

* Improve comment for useAction

* Further improve comments in actions/index

* Heavily comment actions/index

* Fix capitalization in action/index

* Add types to actions/index

* Fix jsdoc types in actions/index

* Comment testing sleeps

* Comment sleep function in todoApp/ext/actions

* Properly handle type errors in actions/index

* Fix formatting in actions/index

* Rename an argument in actions/index

* Move updateFn change to optimistic update instantiation

* Extract common functionality in actions/index

* Reuse common functionality for optimistic updates

* Fix formatting in actions/index

* Comment the internal action mechanism

* Add jsdoc types to actions/index

* Revise jsdoc in actions/index

* Document makeOptimisticUpdateMutationFn

* Add updateQuery constraints

* Address PR comments

* Update e2e tests

* Mention optimistic updates in cache invalidation

* Further elaborate updateQuery constraints

* Update e2e tests
2022-09-22 00:17:00 +02:00
Filip Sodić
4a94c9851e
Implement optimistic updates
* Remove flickering fixes for optimistic updates

* Add optimistic updates to Task.js

* First round of code review feedback

* Remove react query's additional options from hook

* Futher review feedback and code docs

* Fix and document error handling for optimistic updates

* Further document optimistic update mechanisms

* Update optimistic update docs

* Improve comment for useAction

* Further improve comments in actions/index

* Heavily comment actions/index

* Fix capitalization in action/index

* Add types to actions/index

* Fix jsdoc types in actions/index

* Comment testing sleeps

* Comment sleep function in todoApp/ext/actions

* Properly handle type errors in actions/index

* Fix formatting in actions/index

* Move updateFn change to optimistic update instantiation

* Extract common functionality in actions/index

* Fix formatting in actions/index

* Add jsdoc types to actions/index

* Revise jsdoc in actions/index

* Address PR comments

* Update e2e tests

* Mention optimistic updates in cache invalidation
2022-09-21 17:40:06 +02:00
Shayne Czyzewski
b965dfeb30
Works around sodium-native bug to support Heroku deploys (#729) 2022-09-20 10:51:47 -04:00
Shayne Czyzewski
40041ff42b
[CLI] Prisma migration warning improvements (#682) 2022-09-16 10:12:15 -04:00
Shayne Czyzewski
1a7a04b87c
Updates React to 17, plus some other minor version updates (#720) 2022-09-16 09:55:26 -04:00
Martin Šošić
65648f7bb4
fix (#718) 2022-09-08 15:28:24 +02:00
Martin Šošić
99487ff2f7
waspls is now part of waspc (#716) 2022-09-08 13:56:37 +02:00
Shayne Czyzewski
6cd38b0f94
Adds Google as an authentication method (#669) 2022-09-06 14:35:59 -04:00
Martin Šošić
eb69deb348
Removed duplication between waspls and waspc, made them two packages in the same cabal project (#712) 2022-09-06 14:10:42 +02:00
Prat
51d7f30b97
Add support for kebab-case in project name (#590) (#700)
* Add support for kebab-case in project name (#590)

* clean up kebab case naming (#590)

* clean up code for create new project (#590)

* clean up code for kebab-name project (#590)

Co-authored-by: Prat T <pt2121@users.noreply.github.com>
2022-09-02 11:54:25 +02:00
Filip Sodić
9af898f570
Add missing module prefix to fix the CI build (#707) 2022-08-26 18:09:32 +02:00
Martin Šošić
8cc63a85a5
Make SemanticVersion module more expressive
* First try.

* first version that compiles.

* Added range function.

* fixed tests.

* Fixed order of funcions in the code.

* fix

* Simplify semantic version module

* Change qualified import name for SV

Co-authored-by: Filip Sodić <filip.sodic@fer.hr>
2022-08-26 16:46:55 +02:00
Shayne Czyzewski
bc92b024e1
Renames auth method EmailAndPassword to UsernameAndPassword (#696) 2022-08-24 10:32:46 -04:00
Martin Šošić
75ce7db663
Fix incorrect parsing of escaped strings in Wasp (#699)
* Fixed incorrect handling of escaped strings in parser.

* Refactored Parser golden tests a bit.

* Moved PrettyPrinter for Parser AST to Parser.

* fix
2022-08-23 14:01:00 +02:00
Shayne Czyzewski
d827d05d96
Jobs callback function updates (#676) 2022-08-17 13:53:05 -04:00
Shayne Czyzewski
f06e9894a9
[docs] Updates READMEs with new branching and merging model (#695)
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2022-08-17 11:42:32 -04:00
Craig McIlwrath
0de0855787
Integrate new error resilient parser into waspc (#684)
* Add CST parsing code into waspc

* Implement CST -> AST conversion

* Implement parseExpression & isValidWaspIdentifier

* Implement golden tests for Parser

* Configure CI git checkout to always use LF line endings
2022-08-11 12:26:12 -04:00
h4r1337
3c4f59692b
Updates examples/todoApp (#679)
* Update examples/todoApp - fix #678

* Changed HttpError from 403 to 401

* Updated HttpError from 401 to 404
2022-07-27 15:16:06 -04:00
Martin Sosic
8bae408298 Hide e2e golden files in Github. 2022-07-19 18:16:39 +02:00
Filip Sodić
67562e32cc
Remove undefined values from query keys (#671)
* Remove undefined values from query keys

* Update e2e tests
2022-07-18 14:18:06 +02:00
Martin Sosic
a0299febbc Updated wasp version to 0.5.2.1. 2022-07-14 22:58:33 +02:00
Martin Sosic
496da79f50 Added version 0.5.2.1 to Changelog. 2022-07-14 22:57:51 +02:00
Shayne Czyzewski
d5a9039722
Work around versioned package NPM bug (#661) 2022-07-07 10:37:48 -04:00
Filip Sodić
d1bea1c513
Add task status toggling to task page in todo app (#664)
* Add task done toggling to task page

* Fix wrong condition in example todo app
2022-07-06 23:13:35 +02:00
Shayne Czyzewski
9f7d212b8c
Fix User model name assumption (#660) 2022-07-01 08:18:40 -04:00
Martin Šošić
25a1b991ef
Now waspc assumes all files to be UTF8 regardless of OS'es default locale. (#653) 2022-06-28 19:48:02 +02:00
Martin Šošić
ec032e74e6
Touched-up deployment and related instructions. (#651) 2022-06-28 13:54:55 +02:00
Martin Šošić
12c0e7b1f0
Added ./run cmd + README section for accepting e2e test changes. (#644) 2022-06-23 20:09:21 +02:00
Martin Sosic
90571c0298 Updated wasp version to 0.5.2.0. 2022-06-23 14:19:43 +02:00
Martin Šošić
4f22ea1c08
Updated Prisma to 3.15.2. Fixes #629. (#643) 2022-06-23 14:18:13 +02:00
Martin Sosic
2a1fae3ecd Updated CHANGELOG for v0.5.1.0. 2022-06-17 17:24:19 +02:00
Martin Sosic
a3acc62f74 Updated wasp version to 0.5.1.0. 2022-06-17 17:08:29 +02:00