Commit Graph

190 Commits

Author SHA1 Message Date
Dillon Kearns
e1f8f958ae Expose Random.int32. 2023-01-29 16:52:43 -08:00
Dillon Kearns
75be4e121f Update random API and docs. 2023-01-29 16:52:03 -08:00
Dillon Kearns
11b4fc729e Add BackendTask.Time.now. 2023-01-25 15:49:43 -08:00
Dillon Kearns
b989ba624e Update docs. 2023-01-25 15:16:04 -08:00
Dillon Kearns
a864a517ea Add BackendTask.Random API. 2023-01-25 14:33:24 -08:00
Dillon Kearns
bd289211eb Remove unused. 2023-01-23 16:28:55 -08:00
Dillon Kearns
c511d2642f Update docs.json. 2023-01-17 12:09:11 -08:00
Dillon Kearns
8879b3efa6 Rename BackendTask.Custom.get -> BackendTask.Custom.run. 2023-01-17 07:14:03 -08:00
Dillon Kearns
f7825c45c7 Look for BackendTask.Custom definitions in custom-backend-task instead of port-data-source. 2023-01-17 07:08:15 -08:00
Dillon Kearns
ea29d1bbb3 Rename BackendTask.Port -> BackendTask.Custom. 2023-01-17 07:04:18 -08:00
Dillon Kearns
d61ddecca8 Make FatalError opaque. 2023-01-16 21:43:59 -08:00
Dillon Kearns
95a49f6ec9 Remove unused function. 2023-01-16 21:30:26 -08:00
Dillon Kearns
5b19e2dc3e Rename BackendTask.throw -> BackendTask.allowFatal. 2023-01-16 18:24:48 -08:00
Dillon Kearns
60afaee624 Rename Exception -> RecoverableError. 2023-01-16 17:48:46 -08:00
Dillon Kearns
2ddd0c89e8 Use record for parameters in Pages.Generate to make it more manageable to keep track of names. 2023-01-13 15:53:57 -08:00
Dillon Kearns
be32cbd2be Update docs and rename a BackendTask.Port Error variant. 2023-01-13 10:03:39 -08:00
Dillon Kearns
ac366d663c Update Env docs. 2023-01-13 08:52:54 -08:00
Dillon Kearns
ceb0113198 Update docs and add Exception.unwrap helper. 2023-01-10 16:23:15 -08:00
Dillon Kearns
e5bcdf2d6e Rename Exception.Catchable -> Exception.Exception to reduce number of terms. 2023-01-10 11:06:20 -08:00
Dillon Kearns
d68f943967 Update docs. 2023-01-10 10:40:20 -08:00
Dillon Kearns
fd1c27e6b8 Update HTTP API. 2023-01-08 10:50:56 -08:00
Dillon Kearns
8f34381954 Add BackendTask.Http.bytesBody. 2023-01-07 15:26:31 -08:00
Dillon Kearns
ef0f091790 Make BackendTask.Http.get take an Expect, add Http.getJson and Http.post helpers. 2023-01-07 10:38:52 -08:00
Dillon Kearns
2ffea79f0b Merge requestWithOptions into a Maybe Options for BackendTask.Http.Request. 2023-01-07 10:22:10 -08:00
Dillon Kearns
55e94c3970 Update withMetadata to accept a combine function. 2023-01-07 09:56:51 -08:00
Dillon Kearns
2abf10a468 Replace BackendTask.Http.expect*Response helpers with a more composable withMetadata expect builder. 2023-01-06 18:17:36 -08:00
Dillon Kearns
9c07ae57b8 Pass through caching options from request. 2023-01-06 12:53:48 -08:00
Dillon Kearns
b98b5bd7f3 Update docs. 2023-01-06 10:35:10 -08:00
Dillon Kearns
b1afe428e4 Update docs.json. 2023-01-02 11:04:11 -08:00
Dillon Kearns
4146ed1a11 Use raw string instead of TerminalText to let user use whichever ansi package they prefer. 2023-01-01 16:54:36 -08:00
Dillon Kearns
7f23779816 Rename DataSource -> BackendTask. 2023-01-01 14:45:54 -08:00
Dillon Kearns
5d4953a92f Use errors with more formatting. 2023-01-01 14:41:10 -08:00
Dillon Kearns
6bd91eb68e Make DataSource.Port error catchable. 2022-12-31 13:24:00 -08:00
Dillon Kearns
1f109fca7c Add missing doc comment. 2022-12-31 13:19:08 -08:00
Dillon Kearns
ad42776fb2 Update docs. 2022-12-28 19:29:08 -07:00
Dillon Kearns
09e5c389b5 Update docs and fix some errors in elm-pages run. 2022-12-28 19:22:58 -07:00
Dillon Kearns
78f2657c85 Remove exposed phantom variants. 2022-10-07 10:17:33 -07:00
Dillon Kearns
ebb4aa4b96 Update SetCookie docs. 2022-10-07 10:11:12 -07:00
Dillon Kearns
eb398c30e3 Move nested Maybe wrapped in Result to flat Err variant in Session API, and remove obsolete expectSession helper. 2022-10-06 09:50:44 -07:00
Dillon Kearns
b4a603fca8 Change argument order. 2022-10-06 09:35:42 -07:00
Dillon Kearns
7fea8a2853 Remove some obsolete exposed values from Session API, and update docs. 2022-10-06 08:54:25 -07:00
Dillon Kearns
96ad324e4b Make HttpOnly cookies the default (opt in to JS visibile cookies instead of opting out). 2022-10-06 07:56:14 -07:00
Dillon Kearns
fbfcd49721 Separate out SetCookie records from Options so the Options can be passed as standalone value. 2022-10-05 15:30:29 -07:00
Dillon Kearns
1d27e96dfb Update docs. 2022-10-05 08:44:38 -07:00
Dillon Kearns
cddf0ca412 Update docs. 2022-09-15 08:10:01 -07:00
Dillon Kearns
4689157d47 Add missing doc comment. 2022-09-06 11:04:11 -07:00
Dillon Kearns
c5148bb765 Update docs. 2022-08-24 09:49:10 -07:00
Dillon Kearns
2804afccef Move FormData and Method types to package-exposed module. 2022-08-22 08:17:43 -07:00
Dillon Kearns
9f18ef1ef5 Move field status type to package-exposed module. 2022-08-22 08:00:12 -07:00
Dillon Kearns
a0477a0441 Remove redundant functions. 2022-08-03 10:11:41 +02:00