Commit Graph

323 Commits

Author SHA1 Message Date
Dillon Kearns
3a56c0af9e Add remaining attribute to SetCookie API. 2021-12-23 20:14:15 -08:00
Dillon Kearns
1e25d7aea4 Add additional SetCookie options. 2021-12-23 20:04:49 -08:00
Dillon Kearns
1c746e4c2c Encode Set-Cookie values. 2021-12-23 19:44:52 -08:00
Dillon Kearns
99b35546cf Add starting point for SetCookie API. 2021-12-23 19:25:51 -08:00
Dillon Kearns
27fe73ba15 Remove ApiRoute.int. 2021-12-23 15:14:36 -08:00
Dillon Kearns
e3bab7392c Fix types in test. 2021-12-23 15:14:21 -08:00
Dillon Kearns
6dddcf96d0 Update ApiRoute naming for consistency with Page.elm. 2021-12-23 15:01:38 -08:00
Dillon Kearns
4fedf9ee19 Rename prerender -> preRender. 2021-12-23 13:34:19 -08:00
Dillon Kearns
a7bc4226e9 Add FormData API. 2021-12-22 21:28:39 -08:00
Dillon Kearns
6df0ce9987 Add cookie parser. 2021-12-22 14:42:35 -08:00
Dillon Kearns
fad924d28d Add another test case. 2021-12-21 10:02:01 -08:00
Dillon Kearns
7f2d47c6de Add serverless ApiRoute builder and some examples in pokedex app. 2021-12-21 07:47:47 -08:00
Dillon Kearns
c79d76f473 Include kind in API routes to tell the rendering mode. Generate redirects for serverless API routes. 2021-12-20 13:35:34 -08:00
Dillon Kearns
7eaa94a9e4 Include Pattern information for ApiRoutes. 2021-12-20 11:26:12 -08:00
Dillon Kearns
6327087998 Add symlink to Internal folder so unit tests can depend on copied internal code files in generated folder. 2021-12-11 12:20:08 -08:00
Dillon Kearns
c25f18610c Fix review errors. 2021-10-07 12:11:23 -07:00
Dillon Kearns
99da8d8ebe Delete temporary test harness. 2021-10-07 11:56:09 -07:00
Dillon Kearns
c91b01d5a4 Port over HTML to string helpers from elm-explorations/test. TODO - still need to port the escaping fixes I did to the elm-explorations/test implementation. 2021-10-07 11:34:08 -07:00
Dillon Kearns
0fd02b8b2c Fix tests. 2021-09-27 10:48:49 -07:00
Dillon Kearns
b3dbb7d4d6 Use more precise region for RouteParams rule errors. 2021-08-27 09:35:57 -07:00
Dillon Kearns
27c75fba9b Point unexposed error to more narrow exposing line. 2021-08-27 09:27:04 -07:00
Dillon Kearns
194470aaf4 Handle optional splats in rule. 2021-08-26 14:05:00 -07:00
Dillon Kearns
562a6e39fd Handle Required Splat route params in rule. 2021-08-26 13:52:51 -07:00
Dillon Kearns
81bc444ba0 Handle optional and required route params in rule. 2021-08-26 13:30:44 -07:00
Dillon Kearns
b3e1d7dc3a Don't run Page Module rules except on Page Modules. 2021-08-26 12:51:21 -07:00
Dillon Kearns
83e1aeddb0 Move review rule to Elm package. 2021-08-26 10:27:30 -07:00
Dillon Kearns
0c4f1c3a4d Pass in flag in test. 2021-08-09 19:52:56 -07:00
Dillon Kearns
e218a480a5 Fix test output. 2021-08-09 17:32:54 -07:00
Dillon Kearns
bbe33d4b52 Update examples and tests. 2021-08-01 10:25:38 -07:00
Dillon Kearns
b78f8c008b Rename types in ApiRoute module. 2021-07-30 15:35:11 -07:00
Dillon Kearns
9c1b1196b8 Fix reference in test. 2021-07-30 15:23:36 -07:00
Dillon Kearns
8575d56284 Rename internal module. 2021-07-30 15:13:32 -07:00
Dillon Kearns
2a2872e6fa Update docs and move HTTP body functions out of DataSource and into DataSource.Http. 2021-07-29 15:57:44 -07:00
Dillon Kearns
74bad44b7b Remove log in test case. 2021-07-29 12:37:32 -07:00
Dillon Kearns
820198bbc2 Address review errors. 2021-07-29 10:03:42 -07:00
Dillon Kearns
6261f79c9c Remove obsolete test case since HTTP errors are now sent from NodeJS, not Elm. 2021-07-29 09:40:18 -07:00
Dillon Kearns
e97dc19c77 Fix more tests. 2021-07-29 09:38:46 -07:00
Dillon Kearns
2e9a3b219a Add test helper for checking outgoing requests. 2021-07-29 09:32:51 -07:00
Dillon Kearns
dfe6330abf Use ports for HTTP requests in unit tests. 2021-07-29 09:17:36 -07:00
Dillon Kearns
8ece503f7f elm-review fix. 2021-07-28 09:45:45 -07:00
Dillon Kearns
8ad4444fac Use hashing for a test case. 2021-07-28 09:00:34 -07:00
Dillon Kearns
83128c5112 Update tests for single-item flow (not batched page build runs). 2021-07-28 08:06:05 -07:00
Dillon Kearns
f6afc894a3 Fix some compiler errors. 2021-07-27 10:41:18 -07:00
Dillon Kearns
7ce73cc3e3 elm-review fixes. 2021-07-27 09:39:06 -07:00
Dillon Kearns
1b77273cd9 Remove unused mode flag. 2021-07-07 21:28:58 -07:00
Dillon Kearns
e6c2031737 Rename Page builder functions. 2021-06-24 10:05:16 -07:00
Dillon Kearns
aa0381c13d Fix bug where dev server didn't perform some andThen http requests. 2021-06-23 08:22:14 -07:00
Dillon Kearns
35def235b8 Successfully merge two distilled values when they have the same key and same encoded JSON. 2021-06-18 09:00:54 -07:00
Dillon Kearns
fad00c6186 elm-review fixes. 2021-06-17 11:57:42 -07:00
Dillon Kearns
e63678c490 Send errors on non-unique distill keys. 2021-06-17 11:55:22 -07:00