Commit Graph

1253 Commits

Author SHA1 Message Date
Dillon Kearns
91d009e70d Resolve port-data-source functions directly instead of writing them to cache. 2023-01-08 10:29:09 -08:00
Dillon Kearns
766d6b02d7 Rename field. 2023-01-07 15:31:54 -08:00
Dillon Kearns
8f34381954 Add BackendTask.Http.bytesBody. 2023-01-07 15:26:31 -08:00
Dillon Kearns
9c07ae57b8 Pass through caching options from request. 2023-01-06 12:53:48 -08:00
Dillon Kearns
7b4aafa03e Fix renderer code error. 2023-01-06 10:34:57 -08:00
Dillon Kearns
89491a9515 Use HTTP conditional requests, and fix some handling of HTTP error cases for BackendTask error paths (return the error data instead of handling them as build errors). 2023-01-06 10:03:19 -08:00
Dillon Kearns
fef2cbf6a4 Avoid creating unnecessary Elm Dicts by directly using JSON values for CLI Batch data from resolving BackendTask data. 2023-01-03 08:52:20 -08:00
Dillon Kearns
0e4c33e01b Add Exception import when needed. 2023-01-02 11:31:59 -08:00
Dillon Kearns
a2a558992a Handle port-data-source errors in BackendTasks. 2023-01-02 11:02:22 -08:00
Dillon Kearns
7f23779816 Rename DataSource -> BackendTask. 2023-01-01 14:45:54 -08:00
Dillon Kearns
0a9cfa60e6 Use reference to import alias for Exception.fromString. 2022-12-30 17:48:49 -08:00
Dillon Kearns
e5d8ada046 Remove some Debug.todo's. 2022-12-30 17:10:58 -08:00
Dillon Kearns
6c54713f02 Fix test. 2022-12-29 16:38:13 -08:00
Dillon Kearns
09e5c389b5 Update docs and fix some errors in elm-pages run. 2022-12-28 19:22:58 -07:00
Dillon Kearns
c982947c7d Make Throwable/Catchable exceptions. 2022-12-28 18:45:49 -07:00
Dillon Kearns
d78a3ca91d Add initial prototype for error type variable in DataSources. 2022-12-26 10:53:06 -07:00
Dillon Kearns
acd79028a8 Add test harness file for running a renderer. 2022-12-22 09:35:45 -08:00
Dillon Kearns
6bfd23ff02 Pass in reference to request payload directly instead of going through Http DataSource. 2022-12-16 19:41:57 -08:00
Dillon Kearns
7b08b86060 Add code path for skipping write to file system for performing DataSource's. 2022-12-07 11:50:34 -08:00
Dillon Kearns
e229c6d3e9 Bump compatability key. 2022-12-07 10:19:04 -08:00
Dillon Kearns
b0dfe853d6 Handle case where port-data-source module doesn't exist in elm-pages run. 2022-12-07 09:29:57 -08:00
Dillon Kearns
5a392a1757 Ensure that http-response-cache folder exists before running elm-pages run. 2022-12-07 09:27:13 -08:00
Dillon Kearns
fa68be3069 Update dependencies. 2022-11-30 09:38:24 -08:00
Dillon Kearns
2c22cd3d14 Revert dependency upgrade. 2022-11-30 09:11:09 -08:00
Dillon Kearns
088e9b297d Print formatted error in another location. 2022-11-30 09:02:30 -08:00
Dillon Kearns
edbd68abe1 Implement Script.log. 2022-11-23 09:32:02 -08:00
Dillon Kearns
e8f9c566db Bump compatability key. 2022-11-23 09:18:56 -08:00
Dillon Kearns
ba7e0199de Only run elm-codegen if ./codegen/ folder is present. 2022-11-23 09:04:17 -08:00
Dillon Kearns
b7f78559d5 Rename generator functions. 2022-11-22 12:45:40 -08:00
Dillon Kearns
6967822047 Use latest elm-pages run script format for route scaffolding example. 2022-11-22 12:27:53 -08:00
Dillon Kearns
642bbc3398 Change generators to elm-pages run instead of elm-pages codegen, and resolve DataSource's through new generator API. 2022-11-22 11:21:11 -08:00
Dillon Kearns
19fd31793b Update dependencies. 2022-11-15 16:40:02 -08:00
Dillon Kearns
3d12a15c04 Move compatability key file to make sure it's in NPM bundle. 2022-11-15 12:00:40 -08:00
Dillon Kearns
91192ca39a Add script to automate updating compatibility key. 2022-11-15 11:43:18 -08:00
Dillon Kearns
9f6bd8f583 Add Head.nonLoadingNode. 2022-11-15 11:05:30 -08:00
Dillon Kearns
f6450f8b84 Remove warning noise from port-data-source (unless there is a port-data-source file with errors loading). 2022-11-07 11:56:34 +05:30
Dillon Kearns
f10d1c7a0c Add a compatability key to ensure that the Elm and NPM package versions are compatible. 2022-11-07 11:17:47 +05:30
Dillon Kearns
6bf1881de4 Include preload tags by default from Vite processing, and add config hook for customizing preload tags. 2022-11-02 15:14:36 +05:30
Dillon Kearns
7c229cc88a Include new function in default config. 2022-11-02 14:51:02 +05:30
Dillon Kearns
6a06767120 Include optional parameter for htmlToString configuration. 2022-10-29 19:38:19 +05:30
Dillon Kearns
7c9fb152c8 Move some meta tags from elm-pages.config.mjs template to Elm code. 2022-10-29 18:54:03 +05:30
Dillon Kearns
219204b8e9 Remove some extra whitespace. 2022-10-29 18:26:20 +05:30
Dillon Kearns
9fe5ebe1b8 Pull charset into hardcoded value since it isn't configurable and needs to be placed within the first 1024 bytes of the document: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset. 2022-10-29 10:34:02 +05:30
Dillon Kearns
39ec4f20cc Fix import in html template. 2022-10-28 11:46:25 +05:30
Dillon Kearns
cc5c6a07a3 Fix default head tags config function. 2022-10-28 11:29:07 +05:30
Dillon Kearns
0f8cd29c14 Allow for user-customized head tags template that is processed by Vite. 2022-10-28 10:58:36 +05:30
Dillon Kearns
d8ea1a60b3 Merge vite config options from user configuration using a deep merge utility from the svelte-kit codebase. 2022-10-24 15:40:45 -07:00
Dillon Kearns
f4f7d955f5 Remove log statement. 2022-10-14 12:36:08 -07:00
Dillon Kearns
71df2495a0 Support aliased or non aliased imports of DataSource module in codemod. 2022-10-14 11:26:42 -07:00
Dillon Kearns
07a71e9b37 Support aliased and unaliased imports for Server.Request in codemod rule. 2022-10-14 11:20:47 -07:00