tony-sull
2aa43549e0
[ci] format
2022-06-06 18:41:58 +00:00
Nate Moore
a87ce4412c
Improve HMR handling for styles, persisted islands ( #3492 )
...
* feat: improve HMR handling for styles, persisted islands
* Also using data-persist to keep injected <style>'s during HMR
* Updating E2E tests to validate that .astro HMR doesn't blow away component styles
* chore: add changeset
* copy/paste error when cleaning up tests
* big change - using inline <style> blocks instead of <link>s in dev
* Updating tests that were expecting <link> stylesheets in dev
* updating all E2E tests to use workspace versions for astro deps
* TEMP: adding debug logging to see why the Ubuntu test only fails in CI
* fix: Svelte styles are automatically handled by Vite, we can skip them in dev
* fix: svelte is more interesting, we need Astro to inject styles only until hydration
* avoiding extra HMTL noise by only including the data-astro-injected URL for svelte components
* TEMP: ubuntu CI doesn't like the svelte HMR test...
* disabling the svelte component test on ubuntu for now
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-06-06 18:39:48 +00:00
FredKSchott
f0f6a3332f
[ci] format
2022-06-06 16:49:53 +00:00
Fred K. Schott
5b06398b7b
format: automatically organize imports and removed unused ( #3499 )
...
* add import formatting
* chore: update lockfile
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-06-06 09:47:28 -07:00
matthewp
8bb28b48ee
[ci] format
2022-06-06 16:03:17 +00:00
Matthew Phillips
c22a07db13
Fix use of dynamic imports / Astro.glob with Deno Deploy ( #3532 )
...
* Fix use of dynamic imports / Astro.glob with Deno Deploy
* Adds a changeset
* Mark the markdown package as external
2022-06-06 12:02:13 -04:00
github-actions[bot]
9029c43549
[ci] release ( #3512 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-06 09:40:09 -04:00
bholmesdev
ff6c9490a0
[ci] format
2022-06-06 13:28:30 +00:00
Ben Holmes
85b905495d
Fix: refusing to accept isSelfAccepting
for JSX ( #3521 )
...
* fix: generate client directive scripts from metadata
* chore: changeset
* feat: add all runtime client scripts to optimized deps
* fix: remove hmr.js from optimized deps (monorepo-specific issue)
* Revert "fix: generate client directive scripts from metadata"
This reverts commit 56530a86ef
.
* refactor: move optimizedeps to dev only
* docs: add comment on why optimizdeps
* nit: indentation
2022-06-06 09:27:35 -04:00
matthewp
2dbf2234ae
[ci] format
2022-06-03 17:01:54 +00:00
Fred K. Schott
25fa0f527d
[ci] update lockfile ( #3515 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-03 13:00:47 -04:00
Matthew Phillips
df7c43df63
Allow importing .ts files with .js extension ( #3518 )
...
* Allow importing .ts files with .js extension
* Adds a changeset
* Make it also work in .md files
2022-06-03 13:00:28 -04:00
natemoo-re
d9a67d36dc
[ci] format
2022-06-03 13:54:25 +00:00
Maurer Krisztian
93d0225ade
refactor(config): refactor duplicated default config values ( #3504 )
...
* refactor(config): refactor duplicated default configs
* refactor(config): constant CONSTANT_CASE, remove export
2022-06-03 08:53:38 -05:00
natemoo-re
ae14595407
[ci] format
2022-06-03 13:39:43 +00:00
hippotastic
6c955ca643
Fix Markdown errors missing source filename ( #3514 )
2022-06-03 08:38:57 -05:00
hippotastic
3057801591
Fix: Allow self-closing tags in Markdown ( #3516 )
2022-06-03 08:38:45 -05:00
nokazn
939fe15925
Fix cases for JSX-like expressions in code blocks of headings ( #3502 )
...
* chore: fix typo in remark tests
* test: add test cases for markdown expressions in header
* fix: avoid evaluating JSX-like expressions inside inline code in heading
* fix: generate slug for id including values in backtick blocks
2022-06-03 08:26:39 -04:00
Nate Moore
2fedb97489
Patch Lit server shim to fix sass compatability ( #3511 )
...
* fix(#2623 , #3508 ): patch lit server shim to allow sass compat
* chore: add changeset
2022-06-02 14:45:11 -05:00
github-actions[bot]
a74cf98002
[ci] release ( #3509 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-02 15:31:44 -04:00
Fred K. Schott
88cd7525be
[ci] update lockfile ( #3501 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-02 15:30:46 -04:00
Matthew Phillips
4a23b5aaed
provide import.meta.env.SITE when there are private envs ( #3498 )
...
* provide import.meta.env.SITE when there are private envs
* Adds a changeset
* Handle destructing of import.meta.env.SITE
2022-06-02 13:21:10 -05:00
natemoo-re
c6e7355468
[ci] format
2022-06-02 18:04:50 +00:00
Nate Moore
cf2fb3004e
Pass optimizeDeps.include
to silence build warning ( #3507 )
...
* fix(build): pass `optimizeDeps.include` to silence build warning
* chore: add changeset
2022-06-02 13:03:59 -05:00
Nate Moore
d41540cc77
Fix <link>
tag not being self-closing ( #3506 )
...
* fix(#392 ): ensure link tags are rendered as void elements
* test: ensure html does not include a `</link>` end tag
* chore: add changeset
2022-06-02 13:03:37 -05:00
William Tetlow
207f58d171
fix: alias astro to @types/astro ( #3503 )
...
* fix: alias astro to @types/astro
* fix: handle resolve.alias being array
* chore: add integrations patch to changeset
* chore: remove empty file
2022-06-02 12:54:35 -05:00
github-actions[bot]
67ad33debf
[ci] release ( #3488 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-02 13:42:18 -04:00
bholmesdev
b6b045c3f1
[ci] format
2022-06-02 17:35:51 +00:00
Ben Holmes
2b35650b5d
Fix: newline characters in Solid ( #3505 )
...
* fix: remove source map consumption from babel transform
* refactor: move inputSourceMap to integration option
* tests: add newline ex to test build and dev
* chore: change back to babel.transformAsync
* chore: changeset
2022-06-02 13:35:03 -04:00
natemoo-re
6b54eb460f
[ci] format
2022-06-01 22:33:18 +00:00
Ben Holmes
9c2ba13748
Add console warning on fs.strict=false ( #3464 )
...
* chore: add warning on fs.strict=false
* chore: add changeset
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-06-01 17:32:29 -05:00
Dan Jutan
5c32c7a4c3
Integration Docs: Tailwind ( #3429 )
...
* test commi
* add video
* test video include
* actually close the tag
* try directly pasting the video link
* remove the quote I forgot about
* figured out how to properly upload a video to github
* remove unneeded media directory
* why tailwind
* Installation and Usage
* Troubleshooting
* Add examples section
* Update packages/integrations/tailwind/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/tailwind/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/tailwind/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/tailwind/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* TOC + layout tweaks
* separated, and example re: warning to not use Tailwind with other styling method
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-06-01 17:30:36 -05:00
Matthew Phillips
d588bc4a9c
Update rollup to prevent empty slot bug ( #3496 )
...
* Update rollup to prevent empty slot bug
* Adds a changeset
* Updated lockfile
* provide import.meta.env.SITE when there are private envs
2022-06-01 12:21:32 -04:00
Fred K. Schott
cfb85ee10e
[ci] update lockfile ( #3495 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-01 10:39:32 -05:00
tony-sull
74a034c2cd
[ci] format
2022-05-31 18:13:53 +00:00
Tony Sullivan
10b2589093
Fixing HMR for hoisted scripts ( #3427 )
...
* WIP: the leading /@fs broke script HMR
* Revert "WIP: the leading /@fs broke script HMR"
This reverts commit 84fce366268033261369aed48f909e59e78bf3e4.
* Metadata needs to strip off /@fs from hoisted script URLs
* adding a test for hoisted script HMR support
* removing 2 second timeout on navigation, allow default 30 seconds
* simplifying the hoisted script test sync
* TEMP: bubbling up console logs to track down windows failure
* removing temp logging
* disabling the test on windows for now
* chore: adding changeset
2022-05-31 18:13:05 +00:00
github-actions[bot]
b2f955ec1b
[ci] release ( #3485 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-31 13:40:19 -04:00
natemoo-re
9a31e6f1d5
[ci] format
2022-05-31 17:17:36 +00:00
hippotastic
119ecf8d46
Fix components in markdown regressions ( #3486 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-05-31 12:16:43 -05:00
natemoo-re
e02c72f445
[ci] format
2022-05-31 16:47:13 +00:00
Fred K. Schott
c9d8b10a85
[ci] update lockfile ( #3448 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-31 11:46:13 -05:00
Nate Moore
e9a77d8619
Improve nested and client:only
hydration ( #3455 )
...
* wip: fix nested islands
* fix: improve hydration for dynamic content
* chore: fix bundle-size script for new files
* chore: allow-list client:* directive files
* fix(#3362 ): fix client:only behavior for React, Vue, Solid
* test: add client-only e2e test
* chore: update lockfile
* test: fix e2e tests
* test: add framework nesting e2e tests
* Update packages/astro/src/runtime/client/events.ts
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
* chore: add changeset
* fix(preact): ignore hydrate roots
* chore: remove `ssr` check in integrations
* Revert "chore: remove `ssr` check in integrations"
This reverts commit ba27eaae55
.
* chore: add changeset
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-05-31 11:29:36 -05:00
bholmesdev
40614597cc
[ci] format
2022-05-31 16:09:23 +00:00
Ben Holmes
d145b8689c
Chore: remove rss helper from getStaticPaths
( #3462 )
...
* chore: remove rss() with helpful error message
* docs: add context on "getStaticPaths" removal
* chore: changeset
* deps: remove fast-xml-parser from core!
* chore: update lockfile
2022-05-31 12:08:09 -04:00
Matěj Volf
b795a085f0
Load environment variables in deno SSR ( #3483 )
...
* Properly shim env in Deno
* Add test for loading env vars in Deno
* Add changeset
2022-05-31 11:41:33 -04:00
matthewp
1aeb1d0a00
[ci] format
2022-05-31 15:41:24 +00:00
Matthew Phillips
efccebb964
Set the correct content-type for CSS HMR ( #3459 )
...
* Set the correct content-type for CSS HMR
* Adds a changeset
2022-05-31 11:40:34 -04:00
Matthew Phillips
55820fa784
Lit polyfill - wait to polyfill on DOMContentLoaded ( #3484 )
...
* Lit polyfill - wait to polyfill on DOMContentLoaded
* Adds changeset
2022-05-31 11:40:26 -04:00
matthewp
5e66ffb3a0
[ci] format
2022-05-31 14:12:38 +00:00
Rafid Muhymin Wafi
0ead51ae9c
fixed APIRoute type ( #3365 )
...
* fixed APIRoute type
* fixed EndpointHandler type
2022-05-31 10:10:57 -04:00
github-actions[bot]
16345032aa
[ci] release ( #3479 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-30 13:06:41 -04:00
bholmesdev
d195f583e3
[ci] format
2022-05-30 16:19:39 +00:00
hippotastic
75fa58f13f
Fix using Vite env var names in Markdown ( #3412 ) ( #3471 )
2022-05-30 12:18:43 -04:00
hippotastic
429b65d60b
Fix */
breaking HTML comments in Markdown ( #3477 )
2022-05-30 12:18:33 -04:00
github-actions[bot]
42aa6daa96
[ci] release ( #3463 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-27 18:09:20 -04:00
bholmesdev
9d671d178a
[ci] format
2022-05-27 20:57:04 +00:00
Ben Holmes
47d1a8d59c
Feat: markdown content.raw()
and content.compiled()
helpers ( #3452 )
...
* feat: add rawContent obj with html helper
* refactor: change toString to function call
* test: rawContent helpers
* chore: update MarkdownInstance type
* refactor: parseHtml -> html
* chore: changeset
* fix: remove needless async heading on content version
* fix: fixLineEndings helper on unit tests
* refactor: change api to raw and compiled
* chore: add new type to env.d.ts
* docs: JSdocs for raw and compiled
* refactor: change API AGAIN to rawContent, compiledContent
* chore: update changeset
2022-05-27 16:56:08 -04:00
Fred K. Schott
ffe5cf0312
update typescript ( #3456 )
2022-05-27 14:53:04 -05:00
github-actions[bot]
e6d8670168
[ci] release ( #3453 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-26 14:25:10 -04:00
matthewp
edf2838a66
[ci] format
2022-05-26 18:01:35 +00:00
Matthew Phillips
ac3c60d48d
Fix VITE_ASSET bug ( #3439 )
...
* Fix VITE_ASSET bug
* Updated test that depended on esbuild output
* Fix some more tests
* Fix css config and postcss tests
* Git client only working
* Fix static build test
* Update tailwind tests
* Fix build
* Fix css bundling tests
* Updated some more tests for windows
* Remove tests that are no longer relevant
* Cause it to break
* Fix bug and add explanation
* Adds a changeset
* Inline comments about what the hashing is doing
* Update packages/astro/src/vite-plugin-build-css/index.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update to the lockfile
* Minify css
* Update tailwind tests
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-05-26 14:00:36 -04:00
Nate Moore
2f4ee560dd
Add bundle-size check action ( #3454 )
...
* feat: add scripts action, bundle-size checker
* chore: trigger action
* fix: update prefix logic
2022-05-26 11:49:29 -05:00
matthewp
d92d28317f
[ci] format
2022-05-26 14:20:02 +00:00
Joaquín Sánchez
79b9ebc83a
feat: expose route dist URL on SSG ( #3438 )
...
* feat: expose route dist URL on SSG
* chore: add changeset
* chore: add test for `distURL`
* cleanup: remove console.log from test
2022-05-26 10:19:19 -04:00
github-actions[bot]
8a49ad23bf
[ci] release ( #3446 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-26 06:48:47 -04:00
Ben Holmes
51db2b9b4e
Fix: markdown imports failing ( #3444 )
...
* fix: revert JSX expression hack (temporary!)
* chore: changeset
* fix: skip stray JSX expression test
* Revert "fix: skip stray JSX expression test"
This reverts commit fd3042d003
.
* Revert "fix: revert JSX expression hack (temporary!)"
This reverts commit b78883fca1
.
* fix: add markdown-remark to external deps!
2022-05-25 20:47:28 -04:00
github-actions[bot]
f200ddadbc
[ci] release ( #3435 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-25 10:42:03 -05:00
natemoo-re
cb039219ef
[ci] format
2022-05-24 22:03:29 +00:00
Nate Moore
cfae9760b2
Improve Markdown + Components usage ( #3410 )
...
* feat: use internal MDX tooling for markdown + components
* fix: improve MD + component tests
* chore: add changeset
* fix: make tsc happy
* fix(#3319 ): add regression test for component children
* fix(markdown): support HTML comments in markdown
* fix(#2474 ): ensure namespaced components are properly handled in markdown pages
* fix(#3220 ): ensure html in markdown pages does not have extra surrounding space
* fix(#3264 ): ensure that remark files pass in file information
* fix(#3254 ): enable experimentalStaticExtraction for `.md` pages
* fix: revert parsing change
* fix: remove `markdown.mode` option
2022-05-24 17:02:11 -05:00
Caio Ferrarezi
78e962f744
Add base config option to partytown snippet generation ( #3437 )
...
* fix: add base config option to partytown snippet generation
* add changeset
* fix: handle config.base for partytown
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-24 15:44:40 -05:00
natemoo-re
03b2ef4b67
[ci] format
2022-05-24 19:40:24 +00:00
Nate Moore
4ca60e9344
Ensure hoisted scripts are deduplicated in build ( #3433 )
...
* fix(build): ensure hoisted scripts are deduplicated in build
* chore: add changeset
2022-05-24 14:39:23 -05:00
Nate Moore
62036eefc8
fix: use error
log level since warnings are irrelevant and noisy ( #3436 )
2022-05-24 14:38:39 -05:00
natemoo-re
58b78229c1
[ci] format
2022-05-24 16:59:29 +00:00
Nate Moore
296fff2cff
fix: properly handle scoped class injection with spread attributes ( #3384 )
...
* fix: properly handle scoped class injection when a spread attribute is present
* chore: update lockfile
* chore: revert lockfile
* chore: update compiler
* test: add spread scope test
* test: fix spread scoped test
2022-05-24 11:58:21 -05:00
Fred K. Schott
ccaea99765
[ci] update lockfile ( #3419 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-24 11:43:37 -05:00
Ben Holmes
946630a112
Fix: add "CSS" to noExternal hint ( #3426 )
...
* chore: add "CSS" to noExternal hint
* chore: changeset
2022-05-24 11:43:07 -05:00
Joaquín Sánchez
9ba2c7084a
feat: use Vite's logLevel
on SSR build ( #3431 )
...
Instead using `error` as default value, use the Vite's default `logLevel`: `info`
2022-05-24 11:30:43 -05:00
matthewp
752a108808
[ci] format
2022-05-24 15:35:08 +00:00
Matthew Phillips
463a1c2147
Fix: Relative imports inside of hosited script on windows ( #3423 )
...
* Failing test
* Add some debugging
* Normalize filename to remove @fs prefix
* Adds a changeset
* Break it again
* Fix it
* Update assertion
2022-05-24 11:34:08 -04:00
tony-sull
eb4382a251
[ci] format
2022-05-23 20:53:42 +00:00
Tony Sullivan
0209d6276c
Updates hydration scripts to use absolute paths ( #3422 )
...
* WIP: proof of concept fix to use absolute paths
* correct fix to handle absolute paths and config.base
* adding tests for hydration scripts with config.base
* chore: add changeset
* fix: ensure posix paths are used for Windows compat
2022-05-23 20:52:48 +00:00
Matthew Phillips
28ede84a88
Split up e2e HMR test ( #3425 )
2022-05-23 15:56:38 -04:00
github-actions[bot]
8eec97fdd1
[ci] release ( #3409 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-23 13:26:07 -04:00
tony-sull
d0720ccfb4
[ci] format
2022-05-23 16:57:55 +00:00
Tony Sullivan
ff56f083bc
Adding E2E tests for client hydration and HMR ( #3374 )
...
* adding Tailwind E2E tests with Playwright
* package.json updates
* adding e2e tests to CI workflow
* using e2e for dev tests, mocha for build tests
* refactor: sharing test-utils helpers
* chore: update lockfile
* Adding contributing docs
* Revert "refactor: sharing test-utils helpers"
This reverts commit 48496f43bc99eab30747baf6e83041ba4932e786.
* refactor: simpler solution to resolving e2e test fixtures
* chore: updating lockfile
* refactor: cleaning up how URLs are resolved in e2e tests
* install playwright deps in CI
* ensure playwright deps are installed during CI
* adding a basic HMR test for tailwind styles
* using @e2e for playwright test packages
* adding react hydration and HMR tests
* adding hydration and HMR tests for preact
* adding svelte hydration and HMR tests
* adding solid-js hydration and HMR tests
* adding solid hydration and HMR tests
* adding vue hydration and HMR tests
* adding client:media tests
* fixing Lit hydration and HMR tests
* fixing up the Vue e2e tests
* fixing up svelte tests
* chore: test cleanup
* chore: cleaning up test element IDs
* chore: updating lock file
* chore: update lockfile after merge
* TEMP: disabling React e2e tests
* Revert "TEMP: disabling React e2e tests"
This reverts commit ed1bad9cbc
.
* updating to use the new editFiles helper
* chore: updating lock file
* updating lock file
* updating lockfile
* TEMP: watching for console logs
* TEMP: testing typescript tests
* updating test:e2e scripts for config file
* seems like it didn't find the config file?
* use a fresh dev server for each test
* removing Lit tests for now
* Revert "removing Lit tests for now"
This reverts commit 4970a8093e
.
* updating test config for CI
* WIP: disabling HMR tests to track down why they're unreliable
* TEMP: logging to debug HMR test
* afterEach isn't a global in Playwright
* fix: the test's file reset helper was using a URL not filepath
* one last try, why is the HMR test hanging at cleanup?
* resetting files after tailwind HMR test
* create the onNextChange watcher before editFile is called
* moving the file changed sync into editFile()
* code refactor + Astro Component HMR test
* chore: lint fixes
* adding a test suite for the framework-multiple example app
2022-05-23 16:56:45 +00:00
Pranav Karawale
63c26c1b24
Fix GitHub Issue creation link ( closes #3257 ) ( #3421 )
...
* Add IDs to bug report issue form
* Replace 'body' with correct input id for prefilling form
2022-05-23 11:02:03 -05:00
bholmesdev
62e0efa043
[ci] format
2022-05-20 21:27:42 +00:00
Ben Holmes
4de53eccef
Fix: support FormData
object on fetch body ( #3417 )
...
* refactor: make node-fetch external in rollup build
* deps: make node-fetch standard dep
* refactor: switch to node-fetch pkg ref in fetch.ts
* chore: changeset
* chore: bump webapi to minor change
2022-05-20 17:26:41 -04:00
tony-sull
d296eb63eb
[ci] format
2022-05-20 20:08:13 +00:00
Tony Sullivan
d372d29ef8
Fix: Only trim /1
from the canonical URL for paginate() routes ( #3393 )
...
* only trim /1 from canonical URLs for paginate() routes
* chore: fixing eslint warning
* chore: add changeset
* typo: copy paste error
* adding a test validation error message
* verifying canonical for all three test routes
* TEMP: extra test logging to track down the failure
* TEMP: additional test logging to see what the failing CLI messages are
* TEMP: digging deeper, it's getting stuck on port 3000 is taken
* TEMP: why is it breaking when LOCAL isn't logged?
* TEMP: still digging, strange how consistent this failure is
* finally found it - the new test wasn't closing the dev server...
2022-05-20 20:07:30 +00:00
tony-sull
1f148dbcfd
[ci] format
2022-05-20 19:59:55 +00:00
Tony Sullivan
6373508458
Enforcing routing priority during production builds ( #3407 )
...
* WIP: have a few test failures to track down
* WIP: still a few failures to fix
* WIP: fixes the issue of dynamic routes stepping on static routes
* Resolve route priority before building routes for `getStaticPaths()`
* chore: adding comments explaining why this filter is needed
* chore: adding changeset
* got too fancy with the test suite, these routes weren't valid
* simplifying the test cases
* TEMP: is this test breaking my CI run?
* Revert "TEMP: is this test breaking my CI run?"
This reverts commit 291af2a1b6f075ebfc74002886e43110731b3e1b.
* slots-preact didn't list @astrojs/preact as a dep
* reverting copy/paste error
2022-05-20 19:58:59 +00:00
Matthew Phillips
60d7164015
Upgrade the compiler ( #3416 )
2022-05-20 15:08:50 -04:00
bholmesdev
421eb3b5d4
[ci] format
2022-05-20 19:04:21 +00:00
Ben Holmes
fb5572bebd
Fix: components in imported markdown ( #3398 )
...
* test: add with-components to astro-markdown fixture
* fix: markdown pathname with /@fs prefix
* feat: add loadMetadata helper for md
* feat: fix components in Astro.glob results!
* fix: md import path
* Revert "feat: add loadMetadata helper for md"
This reverts commit 76cf96f4be3d0e19589f84025c0131352d0b6cc8.
* fix: add back $$loadMetadata helper
* feat: add second comp framework to md test
* chore: core/render/dev lint
* chore: changeset
* fix: short circuit if mod doesn't have metadata
* fix: skip mod graph preloading in dev
* refactor: make md metadata check recursive
* refactor: extract metadata helper to util
* fix: remove unecessary mod graph query
* fix: move md import flag to util for deno bundling issue
* fix: remove 'dev' mode from test utils build
* feat: add global hashset for seen metadata
* refactor: flip Promise.all to for await for perf!
* Revert bc I was wrong! "refactor: flip Promise.all to for await for perf!"
This reverts commit da8a6873f5
.
2022-05-20 15:03:21 -04:00
Fred K. Schott
195f3f7eb7
[ci] update lockfile ( #3414 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-20 12:02:10 -05:00
Nate Moore
b26d48d275
Defer head injection until renderPage
( #3408 )
...
* fix(#3195 , #3197 ): only perform head injection for renderPage
* chore: add changeset
2022-05-19 15:21:48 -05:00
github-actions[bot]
4dfd341928
[ci] release ( #3405 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-19 13:35:19 -04:00
Matthew Phillips
a35c89d2ac
Fix react spectrum test lockfile issue
2022-05-19 13:27:08 -04:00
matthewp
435518845f
[ci] format
2022-05-19 17:12:59 +00:00
Matthew Phillips
4007aebc6a
Provide a good error message when loading react spectrum ( #3406 )
...
* Provide a good error message when loading react spectrum
* Adds a changeset
2022-05-19 13:12:04 -04:00
natemoo-re
e9c137cf5f
[ci] format
2022-05-19 15:50:10 +00:00
Nate Moore
d34859d750
Expose file
and url
for Astro files ( #3385 )
...
* feat: update test
* feat: return `file` and `url` for astro files
* chore: add changeset
* fix: use private names $$file and $$url
* test: update markdown test
* chore: update fileId logic to strip query params
2022-05-19 10:49:14 -05:00
Fred K. Schott
a7480452b1
[ci] update lockfile ( #3404 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-19 10:22:27 -05:00
matthewp
e118b8a91d
[ci] format
2022-05-19 12:39:11 +00:00
Matthew Phillips
0c9f770e8a
Include server CSS in the manifest assets ( #3402 )
...
* Include server CSS in the manifest assets
* Adds a changeset
2022-05-19 08:38:27 -04:00
github-actions[bot]
b330c5b72e
[ci] release ( #3400 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-18 21:36:32 +00:00
tony-sull
f1d7d543b0
[ci] format
2022-05-18 20:10:07 +00:00
Tony Sullivan
0d3c673dd9
Fix: Support .html requests in dev ( #3401 )
...
* WIP: this regex should handle .html as well
* much simpler! Just fix the req.url, don't touch the manifest
* only handle .html requests when config.build.format === 'file'
* chore: add changeset
2022-05-18 20:09:23 +00:00
matthewp
43cfd7e769
[ci] format
2022-05-18 19:12:28 +00:00
Matthew Phillips
2939be5f2d
Allow overriding build vite config options ( #3392 )
...
* Allow overriding build vite config options
* Adds a changeset
* Test svelte
* Move plugins down
* Assign after for the client too
* Spread output options on manually
* Remove .only
2022-05-18 15:11:40 -04:00
bholmesdev
54aba7231d
[ci] format
2022-05-18 15:46:22 +00:00
Ben Holmes
1bf12260af
Fix: update "building for SSR" messaging on SSG ( #3399 )
...
* fix: update "building for SSR" messaging on SSG
* chore: changeset
2022-05-18 11:45:23 -04:00
Nate Moore
cf8015eaa2
fix: locale handling for logger ( #3391 )
...
* fix(#3309 ): use system default locale
* fix(#3309 ): use system default locale in create-astro
* test: add locale regression tests
* test: add i18n regression test
2022-05-18 10:45:09 -05:00
Matthew Phillips
6cec1b8ef2
Re-enable error recovery test ( #3396 )
...
* Re-enable error recovery test
* Doing some debugging
* Remove extra debugging
* longer wait
* make it wait even longer just to check
* Wait a very long time
* await the change, and then a little bit
* Give a longer timeout for the error recovery test
* OK, make it *very* long
* Run error tests separately
* Get rid of wait
2022-05-18 11:20:06 -04:00
Nate Moore
1297c10480
Fix tests: remove it.only
( #3394 )
...
* test: remove it.only
* test: skip failure until #3376 is revisited
2022-05-18 08:27:52 -04:00
Tony Sullivan
d8e5dfb977
Matching custom 404 pages using the manifest's route patterns ( #3390 )
...
* matching custom 404 pages using the manifest's route patterns
* windows: still need to use the relative paths for 404 matching
2022-05-17 21:27:06 +00:00
github-actions[bot]
f54072bd3f
[ci] release ( #3378 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-17 11:50:18 -04:00
matthewp
42251f3eb4
[ci] format
2022-05-17 15:46:01 +00:00
Fred K. Schott
d102cab126
[ci] update lockfile ( #3386 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-17 11:44:50 -04:00
Matthew Phillips
4d00473dbd
Error recovery test and more ( #3388 )
...
* Add test to verify errors are recovered from
* Fix nested style components not be added in dev on initial load
* Adds a changeset
2022-05-17 11:43:49 -04:00
Tony Sullivan
387ed0cfa1
Deprecate @astrojs/turbolinks ( #3383 )
...
* deprecating the Turbolinks integration
* chore: add changeset
2022-05-16 18:08:49 -05:00
matthewp
3ceff25959
[ci] format
2022-05-16 18:45:15 +00:00
Sarah Etter
43d922277a
Update out directories for Netlify Functions ( #3381 )
...
* Change out directories for Netlify Functions
* Changeset
* Update test
2022-05-16 14:44:21 -04:00
Matthew Phillips
0259d7658b
Fix for loading markdown pages with spaces in the name ( #3379 )
...
* Fix for loading markdown pages with spaces in the name
* Adds a changeset
2022-05-16 14:44:15 -04:00
Juan Martín Seery
9d01f93b1c
feat(vercel): remove nodeVersion
( #3368 )
...
* Remove `nodeVersion`
* Changeset
2022-05-16 13:34:46 -05:00
Fred K. Schott
9dd16bace5
[ci] update lockfile ( #3363 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-16 13:33:16 -05:00
natemoo-re
58cca31e79
[ci] format
2022-05-16 18:32:54 +00:00
Mark Leung
31b0bc87a4
Add options to partytown integration ( #3380 )
...
* Add options to partytown integration
* Update doc
2022-05-16 13:32:05 -05:00
matthewp
77beab072f
[ci] format
2022-05-16 16:17:25 +00:00
Daniel Vivar
fe61e469b2
test(@astrojs/lit): adding tests ( #3375 )
...
* test(@astrojs/lit): adding tests
* changeset
2022-05-16 12:16:30 -04:00
Sarah Etter
e1294c422b
Netlify outdirectory ( #3377 )
...
* Change dist directory, and functions out directory
* Add changeset
* update docs
* Fix changeset
2022-05-16 11:58:31 -04:00
matthewp
e8007c3b8f
[ci] format
2022-05-16 15:39:02 +00:00
Matthew Phillips
b1230152ff
Support alias use with hydration scripts ( #3376 )
...
* Support alias use with hydration scripts
* Adds a changeset
* Updated lockfile
2022-05-16 11:37:51 -04:00
tony-sull
4f413ad771
[ci] format
2022-05-15 21:48:18 +00:00
Tony Sullivan
2b622b5e0f
Adding E2E testing with Playwright ( #3349 )
...
* adding Tailwind E2E tests with Playwright
* package.json updates
* adding e2e tests to CI workflow
* using e2e for dev tests, mocha for build tests
* refactor: sharing test-utils helpers
* chore: update lockfile
* Adding contributing docs
* Revert "refactor: sharing test-utils helpers"
This reverts commit 48496f43bc99eab30747baf6e83041ba4932e786.
* refactor: simpler solution to resolving e2e test fixtures
* chore: updating lockfile
* refactor: cleaning up how URLs are resolved in e2e tests
* install playwright deps in CI
* trying pnpm playwright install to fix version mismatch
2022-05-15 21:47:28 +00:00
github-actions[bot]
2e414c3e70
[ci] release ( #3356 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-12 16:11:35 -06:00
Juan Martín Seery
945f5c68e8
fix(vercel): added type definitions ( #3355 )
...
* Added missing types
* Changeset
2022-05-12 16:59:07 -05:00
github-actions[bot]
cedb9a2105
[ci] release ( #3334 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-12 14:48:58 -06:00
Juan Martín Seery
4ac792a02d
Serialize route generation ( #3354 )
2022-05-12 14:39:17 -06:00
Rafid Muhymin Wafi
9481a3c08d
Corrected the default value of trailingSlash ( #3353 )
2022-05-12 15:38:48 -05:00
Eloi-Perez
ea104dde91
Add config option customPages ( #3315 )
...
* Add config option customPages
Add config option customPages to be able to add custom URL pages to the sitemap.xml
* add comment to document customPages option
2022-05-12 14:19:58 -06:00
Juan Martín Seery
8685506174
fix: vite types ( #3352 )
...
* Re-export vite types and added them to zod schema
* Removed casted typed
* Changeset
2022-05-12 13:55:29 -03:00
Fred K. Schott
7cd4b1bc12
[ci] update lockfile ( #3287 )
...
* [ci] update lockfile
* chore: fix lockfile
* fix: pin turbo
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-12 11:42:34 -05:00
matthewp
4838c51081
[ci] format
2022-05-12 16:30:41 +00:00
Fred K. Schott
e48aa2fd1e
add error hints ( #3350 )
...
* add error hints
* chore: add changeset
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-12 10:29:59 -06:00
matthewp
8666f22a0f
[ci] format
2022-05-12 16:06:40 +00:00
Ben Holmes
678c2b7523
Fix: React - Use "createRoot" instead of "hydrateRoot" for client:only
( #3337 )
...
* feat: pass "client" directive to clientEntrypoints
* refactor: remove hydration warning suppression react 17
* feat: remove hydration warning suppression react 18
* chore: changeset
* fix: change metadata to options bag
2022-05-12 10:05:55 -06:00
matthewp
13e697fb80
[ci] format
2022-05-12 16:05:06 +00:00
Tony Sullivan
b463ddb3ce
Resolve components by module ID during compilation ( #3300 )
...
* WIP: adding test coverage
* test fixes
* moving the shared lib up a directory to reproduce the bug
* fix: transform with the module ID instead of parsing the filepath
* adding the shared lib to the workspaces list
* fix: client-only assets now get the full URL from vite
* why is this needed for windows?
* WIP: using /@fs to handle windows filepaths
* fix: remove /@fs from hoisted script imports
* nit: removing unused imports
* fix: strip off the path root when mapping client:only styles
* had to reverse the `/@fs` handling to work on windows and unix
* chore: adding comments to explain the fix
* chore: adding changeset
2022-05-12 10:04:01 -06:00
Nate Moore
43e411eed8
Exclude node-fetch
from vite.optimizeDeps ( #3348 )
...
* fix: exclude `node-fetch` from vite.optimizeDeps
* chore: format
2022-05-11 15:26:01 -06:00
Juan Martín Seery
114bf63e11
refactor(vercel): Build Output API v3 ( #3216 )
...
* Removed ignores
* Migration to v3
* More changes
* Remove legacy redirects
* Fail when there is no ENABLE_VC_BUILD
* Fix edge
* Updated readme
* Changeset
* Added static mode
* Updated documentation
* Updated shim
* Made edge work!
* Updated changeset
* Ensure empty dir
* Fixed redirects for dynamic paths
* Removed extra declaration
* Splited imports
* Updated readme
* Fixed some urls
* Deprecated shim!
* [test]: Vercel NFT
* Beautify
* Edge bundle to node 14.19
Vercel runs 14.19.1 (I've checked it manually)
* Re-added shim (#3304 )
* Added `node:` prefix
* Use the same bundling as Deno for Edge
* Remove esbuild
* Fixed shim
* Moved nft
* Updated changeset
* Added note about Edge
* fix typo
* Added support for Node 16 (vercel/vercel#7772 )
2022-05-11 15:10:38 -06:00
Matthew Phillips
46cd8b9eb4
Fix APIRoute type ( #3344 )
...
* Fix APIRoute type
* Adds a changeset
* Update usage of the two API route signatures
2022-05-11 15:07:40 -06:00
Ben Holmes
1a5335ed9a
[create-astro] Finalize developer experience... with gradients 🚀 ( #3313 )
...
* wip: port gradient helpers from sandbox ideas
* feat: wire up rocket gradient 🚀
* feat: wire up rocket gradient on install step
* refactor: update "next steps" wording
* deps: add chalk (for rendering gradient)
* chore: changeset
* chore: clean up sstray template string
2022-05-11 10:38:42 -06:00
Jonas Luebbers
abc5b219bb
Remove try/catch from solid component check ( #3282 )
...
* Remove try/catch from solid component check
* Move try/catch to renderComponent
* Add solid to integrations-playground example
2022-05-11 10:23:34 -06:00
matthewp
380acd23de
[ci] format
2022-05-11 15:25:30 +00:00
Sarah Rainsberger
74510a9607
Update markdown.remark/rehypePlugins defaults for docs ( #3321 )
...
Updating defaults used in the documentation
2022-05-11 09:24:26 -06:00
Nate Moore
ca4e3aa048
fix: allow Astro to pass process.env
variables to import.meta.env
( #3327 )
2022-05-11 09:23:55 -06:00
Fred K. Schott
ce6d798282
Fix peer deps issue in svelte and vue plugins ( #3333 )
...
* fix peer deps issue
* add changeset
* rebuild lockfile
2022-05-11 09:23:32 -06:00
Matthew Phillips
ccea6a0a1a
HMR hoisted scripts ( #3336 )
...
* HMR hoisted scripts
* Add to the dep graph
* Remove example change
* Adds changeset
* Fix markdown test
2022-05-11 09:23:11 -06:00
matthewp
3bb07a01e0
[ci] format
2022-05-11 15:14:43 +00:00
Yuji Sugiura
efe4f1a3ef
Fix GetStaticPathsOptions types ( #3341 )
2022-05-11 09:13:47 -06:00
Pascal Schilp
352fc3166f
Fix/netlify edge redirects ( #3342 )
...
* fix: create redirects file for netlify edge adapter
* chore: changeset
* chore: distinguish between edge/regular
2022-05-11 09:13:23 -06:00
matthewp
9c98ba81e1
[ci] format
2022-05-11 14:54:52 +00:00
Pascal Schilp
3dc68e148e
fix: inject script for ssr mode ( #3339 )
...
* fix: inject script for ssr mode
* chore: changeset
2022-05-11 08:53:53 -06:00
tony-sull
0913afb255
[ci] format
2022-05-10 21:06:25 +00:00
Tony Sullivan
e22f7364ce
Fixes custom 404 pages in astro dev ( #3331 )
...
* Fixing pathname matching for custom 404 pages
* fixes custom 404 routes in dev
* refactor: removing node path dependency
* refactor: using core's path utils
2022-05-10 21:05:30 +00:00
Fred K. Schott
d04928e8f2
rename dts to ts file ( #3332 )
...
* rename dts to ts file
* Create new-carrots-cough.md
* add back missing types
2022-05-10 14:54:01 -06:00
Chris Swithinbank
ee55d492b5
docs: Update server options configuration reference ( #3295 )
...
Based on https://github.com/withastro/docs/pull/422/
Co-Authored-By: Rafid Muhymin Wafi <63650415+RafidMuhymin@users.noreply.github.com>
Co-authored-by: Rafid Muhymin Wafi <63650415+RafidMuhymin@users.noreply.github.com>
2022-05-07 09:56:39 +02:00
[object Object]
2864d09ad4
Fix tailwind integration in markdown files ( #3305 )
...
* Fix tailwind integration in markdown files
* 3 character PR -> 9 character PR
2022-05-06 13:01:04 -04:00
github-actions[bot]
4639a048d7
[ci] release ( #3308 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-06 09:28:57 -04:00
matthewp
adc94076f7
[ci] format
2022-05-06 13:23:09 +00:00
Matthew Phillips
8021998bb6
Add new configKeys prop for telemetry ( #3299 )
...
* Add new configKeys prop for telemetry
This property lets us known which AstroConfig keys are being used, for anonymous telemetry.
* Adds a changeset
* Restructure how the telemetry event is shaped
2022-05-06 09:22:27 -04:00
Tony Sullivan
19e1686b87
Allowing Vite to handle base config for deploying to subpaths ( #3178 )
...
* Revert "Improvements to build and dev when building for subpaths (#3156 )"
This reverts commit 637919c8b6
.
* letting Vite handle base paths
* test updates to expect Astro.request.url to no longer include subpaths
* bringing back the fix for including subpaths in injects scripts and styles
* fixing the static-build test to handle subpaths for injected CSS
* fixing asset import URLs when using base subpaths
* chore: fixing typo in the comments
* Astro needs to manage base in dev to maintain Astro.request.url
* fix: reverting dev routing tests to expect existing behavior
* reverting Astro global test to verify existing behavior
* chore: adding changeset
* test: update static-build tests to verify the subpath is used in asset imports
2022-05-05 22:39:16 +00:00
github-actions[bot]
f67832ebf7
[ci] release ( #3307 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-05 18:21:27 -04:00
Ben Holmes
0efaf110fc
Fix: make RSS canonicalUrl required ( #3301 )
...
* chore: make canonicalUrl required
* docs: explain env variable on required canonicalUrl
* refactor: rename "canonicalUrl" to "site"
* chore: changeset
2022-05-05 18:03:25 -04:00
github-actions[bot]
9b98633cc8
[ci] release ( #3302 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-05 16:27:40 -04:00
Matthew Phillips
3d901ca59d
Revert "refactor: remove serialize-javascript ( #3278 )" ( #3304 )
...
* Revert "refactor: remove serialize-javascript (#3278 )"
This reverts commit 13c1f5ff6b
.
* Adds a changeset
2022-05-05 15:56:29 -04:00
matthewp
b5b95e4fb4
[ci] format
2022-05-05 16:22:41 +00:00
Matthew Phillips
61e1a267a8
Implement the Astro.response RFC ( #3289 )
...
* Implement the Astro.response RFC
* Adds a changeset
* Mark Astro.response.headers as readonly
2022-05-05 12:21:53 -04:00
github-actions[bot]
d0a4064d80
[ci] release ( #3293 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-05 09:56:45 -04:00
matthewp
e087f27a9b
[ci] format
2022-05-04 18:56:21 +00:00
Matthew Phillips
6643a3931d
Conform to API route signature ( #3272 )
...
* Conform to API route signature
* Rename to API route
* Update ssr test
* Update packages/astro/test/fixtures/ssr-dynamic/src/pages/api/products/[id].js
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Adds a changeset
* Make PR review changes
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2022-05-04 14:55:37 -04:00
Fred K. Schott
f697cd2857
readme fix ( #3290 )
2022-05-04 14:24:00 -04:00
github-actions[bot]
9b6a2e2d87
[ci] release ( #3288 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-04 08:59:10 -04:00
matthewp
757790f4e8
[ci] format
2022-05-04 12:28:33 +00:00
Pascal Schilp
e5f6de4edb
feat: expose pages ( #3286 )
...
* feat: expose pages
* chore: changeset
* fix: build
2022-05-04 08:27:51 -04:00
github-actions[bot]
58862fbf76
[ci] release ( #3284 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 17:14:26 -07:00
Fred K. Schott
224c181cbd
deprecate the markdown component in SSR ( #3240 )
2022-05-03 17:08:53 -07:00
Fred K. Schott
860357388f
new readme ( #3237 )
...
* new readme
* New readme plus (#3239 )
* Test light/dark
* More tests
* test
Co-authored-by: JuanM04 <me@juanm04.com>
* style the readme
Co-authored-by: JuanM04 <me@juanm04.com>
2022-05-03 17:06:04 -07:00
Fred K. Schott
1032e450cc
Revert "[ci] release ( #3279 )"
...
This reverts commit 9fb2c4744c
.
2022-05-03 17:04:44 -07:00
github-actions[bot]
9fb2c4744c
[ci] release ( #3279 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 18:33:18 -04:00
Tony Sullivan
9ad8aefdd7
Turbolinks: clean up injected scripts and styles on page navigation ( #3283 )
...
* client hydration scripts should be removed before navigation
* chore: adding a changeset
* also cleanup injected styles on page navigation
2022-05-03 22:30:46 +00:00
bholmesdev
204ff2c223
[ci] format
2022-05-03 22:27:01 +00:00
Ben Holmes
fbfb6190ab
Feat: @astrojs/rss
package! ( #3271 )
...
* feat: introduce @astrojs/rss package!
* feat: add config "site" to env variable
* docs: add @astrojs/rss readme
* chore: changeset
* fix: testing script
* deps: add mocha, chai, chai-promises
* tests: add rss test!
* feat: add canonicalUrl arg
* chore: remove console.log
* fix: remove null check on env (breaks build)
* docs: stray `
* chore: update error message to doc link
* chore: remove getStylesheet
* docs: update stylesheet reference
2022-05-03 18:26:13 -04:00
Juan Martín Seery
e2a037be94
refactor: internalize shorthash ( #3281 )
...
* Shorthash has been internalized
* Remove shorthash
* Optimized shorthash
* Changeset
* Added license
2022-05-03 19:25:35 -03:00
Juan Martín Seery
13c1f5ff6b
refactor: remove serialize-javascript ( #3278 )
...
* Replaced serialize-javascript with devalue
* Changeset
2022-05-03 17:55:12 -03:00
github-actions[bot]
1de48ce4eb
[ci] release ( #3277 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 15:50:21 -04:00
Matthew Phillips
3854acdb7d
Add typescript to match peerDep
2022-05-03 15:42:19 -04:00
Fred K. Schott
6d5ef41b1e
fix cannot exit astro bug ( #3276 )
...
* fix cannot exit astro bug
* Create loud-tigers-draw.md
2022-05-03 15:29:34 -04:00
Matthew Phillips
8f8f05c1b9
Revert "Consolidate inline hydration scripts into one ( #3244 )" ( #3275 )
...
* Revert "Consolidate inline hydration scripts into one (#3244 )"
This reverts commit 48a35e6042
.
* Fix types
* Adds changeset
2022-05-03 15:18:17 -04:00
matthewp
5aec49e5e8
[ci] format
2022-05-03 14:56:07 +00:00
Pascal Schilp
adada1ba01
Feat/ssr manifest ( #3262 )
...
* feat: expose pagesVirtualModuleId
* feat: add astro:build:ssr hook
* fix: missing import for pagesVirtualModuleId
* test: fix tests
* refactor: move exports to index.ts
* chore: changeset
2022-05-03 10:55:25 -04:00
github-actions[bot]
8b17d3ebcf
[ci] release ( #3243 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 09:16:57 -04:00
matthewp
f7335c76a7
[ci] format
2022-05-03 13:08:46 +00:00
Matthew Phillips
f76038ac7d
Telemetry ( #3256 )
...
* feat: add @astrojs/telemetry
* feat: add telemetry events, add queueing system
* feat(telemetry): record CLI events
* chore: add note
* feat: support generic TELEMETRY_DISABLED env var
* Fix test script
* shim telemetry in tests
* Shim telemetry in other commands
* Stub telemetry in the memory leak test
* Disable telemetry in smoke tests
* Adds a changeset
* Run the formatter
* few updates
* Include config keys
* Add shallow viteKeys array:
:
* Add vite keys and tests
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-03 09:07:28 -04:00
Matthew Phillips
48a35e6042
Consolidate inline hydration scripts into one ( #3244 )
...
* Consolidate inline hydration scripts into one
* Adds changeset
* Update custom element test
* Provide a better name for tracking if we have added a hydration script
2022-05-03 09:07:16 -04:00
Juan Martín Seery
de123b28b3
refactor(markdown): removed rehype-slug
in favor of our own implementation ( #3234 )
...
* Moved types arround
* Removed `rehype-slug` in favor of our own implementation
* Changeset
* Removed rehype-slug from examples
* Remove rehype-slug from tests
* Updated reference
* rehypeCollectHeaders is a function again
* Reverted rehype-slug removes
* Re-added rehype-slug to reference
2022-04-29 21:07:09 -03:00
github-actions[bot]
9984f8ea24
[ci] release ( #3242 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 22:30:12 +00:00
tony-sull
527a3634d4
[ci] format
2022-04-29 21:16:50 +00:00
Tony Sullivan
d25dc4c448
Fixes variable definitions in <style define:vars> ( #3241 )
...
* adding SSRResult.styles back to the rendered head
* adding test for define:vars in static build
* chore: adding changeset
2022-04-29 21:15:56 +00:00
github-actions[bot]
f244b1c6e4
[ci] release ( #3238 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 15:16:18 -04:00
Ben Holmes
c8f5fa35c4
Feat: [create astro] git step ( #3227 )
...
* feat: add git init step
* fix: update unit tests
* feat: simplify next steps for copy pasteability
* docs: add clarifying comment on test stdin spoofing
* docs: remove "empty" from git repo message
* fix: update git step text for test
* fix: remove redundant --dryrun flag
* refactor: simplify next steps with &&
* chore: changeset
2022-04-29 11:45:43 -04:00
github-actions[bot]
ed7aba2e8b
[ci] release ( #3229 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 09:31:47 -04:00
Rafid Muhymin Wafi
ae7fc463b5
removed unnecessary space from warning
2022-04-28 17:31:22 +06:00
bholmesdev
e2f7ef8b44
[ci] format
2022-04-28 00:59:36 +00:00
Ben Holmes
b7cd695884
Feat: [create astro] replace component selector with "astro add" ( #3223 )
...
* feat: remove component framework selector
* feat: update templates to use "basics"
* feat: add "astro add" cli step
* tests: astro add step
* fix: reset env for pnpm tests
* fix: update install step test
* chore: remove "frameworks" step from tests
* deps: remove node-fetch from create-astro
* chore: changeset
* fix: use "preferLocal" for astro add command
* refactor: remove POSTPROCESS_FILES
* feat: add --yes flag to simplify astro add
* feat: bring back minimal option as "completely empty"
2022-04-27 20:58:18 -04:00
github-actions[bot]
7937852395
[ci] release ( #3215 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-27 16:23:53 -04:00
Juan Martín Seery
3d6e382b58
fix: replaced deprecated String.substr with String.slice ( #3224 )
2022-04-27 15:43:43 -03:00
Juan Martín Seery
41c70ae503
chore: remove deprecation message when using cheerio's default export ( #3225 )
2022-04-27 15:43:31 -03:00
Ben Holmes
00fc1326ed
Refactor/clean create astro logs ( #3212 )
...
* refactor: simplify dir error log to avoid wrapped text
* refactor: remove redundant "issue" callout
* chore: changeset
* chore: update tests for new dir log
2022-04-26 20:38:31 -04:00
Nate Moore
15d9408678
Update @proload/core
( #3211 )
...
* chore: bump proload
* chore: update @proload/core
2022-04-26 17:26:01 -05:00
Nate Moore
9028450663
Revert "fix: replace serialize-javascript & random-bytes with custom internal modules"
...
This reverts commit f0d22b9332
.
2022-04-26 18:12:17 -04:00
okikio
cbd9e6222e
[ci] format
2022-04-26 21:53:43 +00:00
Okiki
f0d22b9332
fix: replace serialize-javascript & random-bytes with custom internal modules
...
serialize-javascript relies on random-bytes and random-bytes relies on nodes crypto module, unfortunately the crypto module isn't available on the browser, so it breaks the repl. When one tries to upgrade the repl to the latest version of Astro, the browser complains about the missing crypto module. The changes shouldn't affect the behaviour of Astro in any meaning full way.
2022-04-26 21:52:35 +00:00
github-actions[bot]
8d8433ee50
[ci] release ( #3182 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-26 16:49:09 -04:00
matthewp
f0f938ce7d
[ci] format
2022-04-26 20:01:23 +00:00
Juan Martín Seery
eaad17694f
fix(vercel): trailingSlash
fix for non-html pages ( #3185 )
...
* fix(vercel): `trailingSlash` fix for non-html pages
* Changeset
2022-04-26 16:00:26 -04:00
Matthew Phillips
22cb4b7b32
Prevent watcher from running during the build ( #3207 )
...
* Prevent watcher from running during the build
* Adds a changeset
2022-04-26 15:59:31 -04:00
Erika
fdd607c575
Add missing is:raw in AstroBuiltinAttributes ( #3209 )
2022-04-26 15:26:20 -04:00
Ben Holmes
7a61977db1
Feat: support astro add
without npm installing ( #3183 )
...
* deps: update to latest proload
* feat: avoid parsing config on resolveConfigUrl
* chore: changeset
* fix: bump proload
* fix: bump proload
* fix: bump proload
* fix: bump proload
* fix: bump proload
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-26 14:35:44 -04:00
Erika
e4bb2767d5
Add Astro attributes to svg elements ( #3205 )
2022-04-26 11:29:25 -04:00
bholmesdev
9927e0f120
[ci] format
2022-04-26 15:25:23 +00:00
Ben Holmes
38e5e9e982
Feat: create astro
add install step ( #3190 )
...
* feat: add instlal step with pkg manager detection
* feat: add package emoji for style points
* feat: update next steps to match pkg manager
* refactor: extract some create-astro test utils
* refactor: extract promp msgs to utils
* chore: add install step tests
* chore: changeset
* fix: remove directory test skip
* fix: unset env variables after install step test
* deps: add execa to create-astro
* refactor: use execa for install step
* chore: remove old comment
* fix: rework install step test for node 14?
* chore: remove "politely stolen" footnote
* temp: show stdout dialog
* feat: remove debugging logs, add dryrun flag for testing
* chore: more stray logs
* fix: remove rmdir
2022-04-26 11:24:24 -04:00
Juan Martín Seery
1a86e77c37
fix(markdown): file.url fixes ( #3198 )
...
* fix(markdown): file.url fixes
* Added tests
* Changed the default of `base` from `./` to `/`
* Make the url work with subpath
* Changeset
* Forgot to change this comparison
2022-04-25 13:38:46 -03:00
Fred K. Schott
ac5665c161
add vite to license
2022-04-24 16:42:39 -07:00
Juan Martín Seery
205d1f07f1
feat(markdown): Improved types ( #3191 )
...
* feat(markdown): Improved types
* More MarkdownMetadata
2022-04-24 16:13:33 -07:00
Ben Holmes
2b702d6aba
Fix: astro add
generating config outside project root ( #3186 )
...
* fix: astro.config generated outside project dir
* chore: changeset
2022-04-22 15:17:16 -04:00
Ben Holmes
eda4979997
feat: remove online editor configs ( #3175 )
2022-04-22 15:01:16 -04:00
tony-sull
7ccda57c1d
[ci] format
2022-04-22 18:00:08 +00:00
Tony Sullivan
ce9a61e9fc
Support custom svelte compiler options in @astrojs/svelte ( #3181 )
...
* updating svelte integration to allow custom user config
* test: adding a test to verify that svelte options are piped through the integration
* updating the README with docs on overridding svelte options
* chore: adding changeset
* fix: copy/paste bug in test validation
* removing temporary debug scripts
2022-04-22 17:59:20 +00:00
matthewp
738fb958c3
[ci] format
2022-04-22 14:04:54 +00:00
Fred K. Schott
bd76716c88
[ci] update lockfile ( #3162 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-22 10:04:01 -04:00
Juan Martín Seery
725c44a762
feat(vercel): Support trailingSlash
( #3176 )
2022-04-22 10:03:53 -04:00
Matthew Phillips
19667c45f3
Netlify Edge: forward requests for static assets ( #3170 )
...
* Netlify Edge: forward requests for static assets
* Adds a changeset
* Don't run edge tests, yet
2022-04-22 10:03:25 -04:00
Fred K. Schott
9c0fc6877a
Update Vercel adapter readme
2022-04-21 14:31:45 -07:00
Fred K. Schott
0b432c087a
Update README.md
2022-04-21 14:24:09 -07:00
github-actions[bot]
f3586cff41
[ci] release ( #3173 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 16:00:18 -05:00
natemoo-re
84b863df6a
[ci] format
2022-04-21 20:38:07 +00:00
github-actions[bot]
84939b2ff2
[ci] release ( #3172 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 15:37:18 -05:00
Ben Holmes
7c49194ca2
Feat: [create astro] add directory prompt ( #3168 )
...
* wip: add prompt for directory with validation
* feat: wire up dir response to cwd
* feat: improve error handling on non-empty dirs
* fix: update test helpers to execaSync
* chore: add .skipped to old tests for clarity
* deps: add mocha and chai to create-astro
* feat: add directory step test with fixture
* feat: update turbo to run create-astro tests again 🥳
* chore: changeset
2022-04-21 16:36:48 -04:00
Nate Moore
908fffb5ec
chore: upgrade compiler ( #3171 )
2022-04-21 15:26:14 -05:00
natemoo-re
b6f14c3b14
[ci] format
2022-04-21 20:13:54 +00:00
Nate Moore
70263cf748
fix(preact): use updateConfig hook ( #3166 )
2022-04-21 15:13:09 -05:00
Nate Moore
f73d33cb18
chore(webapi): fix types ( #3167 )
2022-04-21 14:54:26 -04:00
github-actions[bot]
bd66527e7d
[ci] release ( #3169 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 14:08:37 -04:00
matthewp
c4203ce0fc
[ci] format
2022-04-21 18:03:47 +00:00
Tony Sullivan
637919c8b6
Improvements to build and dev when building for subpaths ( #3156 )
...
* `astro build` should include the `base` provided in astro config
* test: updating build test to expect the base path in links/scripts
* ignore the default "base" value when building links/scripts
* fix: handling config that provides a base but no site
* fix: config.site was being ignored since it's a URL not a string
* hack: handle base path in dev for /public assets
* fix: dev redirect needs to ignore base default of ./
* fix: extra safety checks for the base path redirect
* refactor: simplifying it to remove the regex
* one last safety check - only redirect GET and use a 302 status
* fix: lost the leading slash when redirecting
* nit: adding comments to the test explaining how base is verified
* Remove extra console.log
* Adds a changeset
Co-authored-by: unknown <matthew@skypack.dev>
2022-04-21 14:03:05 -04:00
github-actions[bot]
0406bdc35b
[ci] release ( #3165 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 12:19:52 -04:00
matthewp
8768f23f95
[ci] format
2022-04-21 16:11:09 +00:00
Matthew Phillips
ae9ac5cbdc
Fixes using React.lazy and Suspense ( #3160 )
...
* Revert "Revert "Fixes using React.lazy and Suspense""
This reverts commit e621c2f7d3
.
* Adds a changeset
* Fix ts errors
* Remove netlify metadata folder
2022-04-21 12:10:06 -04:00
github-actions[bot]
3cdc5f1bfb
[ci] release ( #3161 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 11:34:03 -04:00
matthewp
9fcac8e551
[ci] format
2022-04-21 15:13:24 +00:00
Matthew Phillips
e85b16e2b3
Make 'lit' always be bundled in SSR ( #3164 )
...
* Make 'lit' always be bundled in SSR
* Adds a changeset
2022-04-21 11:12:21 -04:00
natemoo-re
becdf3e923
[ci] format
2022-04-20 21:47:20 +00:00
Nate Moore
37a7a8347c
Improved HMR ( #3138 )
...
* WIP: improved HMR
* fix(hmr): improve hmr filtering to avoid full reloads
* chore: add changeset
2022-04-20 16:46:40 -05:00
Matthew Phillips
e621c2f7d3
Revert "Fixes using React.lazy and Suspense"
...
This reverts commit 700d4f9649
.
2022-04-20 17:17:36 -04:00
unknown
700d4f9649
Fixes using React.lazy and Suspense
2022-04-20 17:17:11 -04:00
Matthew Phillips
12f6b60998
Add test to verify Lit works in SSR ( #3158 )
2022-04-20 14:16:04 -04:00
Matthew Phillips
eea9090ed5
Netlify adapter, add --build flag in the readme ( #3157 )
2022-04-20 12:25:22 -04:00
Fred K. Schott
00b8343844
[ci] update lockfile ( #3153 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-20 09:42:31 -04:00
github-actions[bot]
fce98d5552
[ci] release ( #3151 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 22:45:07 -07:00
bholmesdev
d538c9237d
[ci] format
2022-04-19 20:38:02 +00:00
Ben Holmes
9ba1f4f825
Fix: markdown JSX expression inconsistencies ( #3152 )
...
* fix: remove micromark-extension-mdx-expression to unbreak JSX expressions
* chore: changeset
* deps: update lockfile
* tests: jsx expressions in markdown
2022-04-19 16:37:11 -04:00
natemoo-re
b3a423849b
[ci] format
2022-04-19 18:38:14 +00:00
hippotastic
5e28b79095
Fix location of SolidJS pre-hydration code ( #3140 )
...
* Run before hydration instead of inlining a script after each component
2022-04-19 13:37:27 -05:00
bholmesdev
cfa11eecbf
[ci] format
2022-04-19 17:53:03 +00:00
Ben Holmes
0247b54270
Refactor: remove all legacy build logic from codebase ( #3141 )
...
* refactor: remove legacy build flag
* refactor: remove legacy style maps
* chore: changeset
* refactor: nuke vite-plugin-build-html
* deps: remove parse5
* tests: restore user provided doctype support!
* deps: remove @web/parse5-utils
* deps: change srcset-parse to dev dep
* chore: remove unused utils
* refactor: remove unused style mapping
* unrelated fix: add .test to astro-markdown-css
* refactor: remove unused astro-style with test update
* chore: remove unused buildTime var
2022-04-19 13:52:15 -04:00
github-actions[bot]
9e00f6d546
[ci] release ( #3149 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 13:30:27 -04:00
matthewp
0f984473cf
[ci] format
2022-04-19 17:14:44 +00:00
Matthew Phillips
05cf1a5067
Adjustments for Netlify Edge Functions ( #3150 )
...
* Adjustments for Netlify Edge Functions
* Adds a changeset
2022-04-19 13:13:52 -04:00
Tony Sullivan
44e294c9cb
Support custom vue compiler options in @astrojs/vue ( #3143 )
...
* adds support for passing options to @vitejs/plugin-vue
* updating vue integration README with options details
* adding a tests for custom vue compiler options
* chore: adding changeset
2022-04-19 16:31:32 +00:00
Matthew Phillips
550c7d0a94
Ignore test folder in Netlify
2022-04-19 11:45:19 -04:00
github-actions[bot]
95d0db5a44
[ci] release ( #3120 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 11:30:34 -04:00
matthewp
13b1bdd972
[ci] format
2022-04-19 15:23:07 +00:00
Matthew Phillips
4cf54c60aa
Netlify Edge function support ( #3148 )
...
* Netlify Edge function support
* Update readme with edge function information
* Adds a changeset
* Disable running edge function test in CI for now
2022-04-19 11:22:15 -04:00
Fred K. Schott
385046aaa7
improve legacy config warning message ( #3142 )
2022-04-19 10:08:44 +00:00
FredKSchott
0682832a54
[ci] format
2022-04-19 05:37:33 +00:00
Fred K. Schott
ef198ff835
handle diff symbols in shiki ( #3108 )
...
* handle diff symbols in shiki
* Create violet-cups-glow.md
2022-04-18 22:36:42 -07:00
Juan Martín Seery
4ac3797344
feat(vercel): added warning when ENABLE_FILE_SYSTEM_API=1
is missing ( #3139 )
...
* Added warning in buildtime
* Updated readme
* Changeset
2022-04-18 19:19:46 -03:00
Ben Holmes
facf8016e2
Fix: show correct error log on 5xx error ( #3137 )
...
* fix: show correct error log on 5xx error
* chore: changeset
2022-04-18 18:12:30 -04:00
bholmesdev
efa6f7d662
[ci] format
2022-04-18 19:45:37 +00:00
Ben Holmes
44bacd2011
Fix: component styles within imported markdown files ( #3116 )
...
* fix: replace markdown path prefix with suffix flag
* fix: avoid non-encoded colons for flag
* fix: remove needless ?
* fix: dev server load order
* fix: production build crawl dynamic imports
* fix: remove unused virtual_module_id const
* fix: remove unsafe "!" on getmodbyid
* fix: remove needless @id path check
* fix: add list of SSR-able file extensions
* docs: virtual_mod_id change
* fix: support id prefix on resolved ids
* fix: switch to ?mdImport flag to resolve glob imports
* tests: imported md styles for dev and build
* chore: changeset
2022-04-18 15:44:42 -04:00
tony-sull
dfa1042f2b
[ci] format
2022-04-18 16:31:07 +00:00
Tony Sullivan
394ab90547
Perf: reuse Shiki highlighters per theme/lang ( #3130 )
...
* reuse Shiki highlighters per theme/lang
* chore: adding changeset
2022-04-18 16:30:19 +00:00
matthewp
089ce68f08
[ci] format
2022-04-15 21:02:19 +00:00
Matthew Phillips
e5383cd357
Handle static file serving in Deno adapter's start command ( #3121 )
...
* Handle static file serving in Deno adapter's start command
* Adds a changeset
* Ignore a .ts imort
2022-04-15 17:01:33 -04:00
Juan Martín Seery
b0ba22c5ff
fix(vercel): CJS bundle fix ( #3051 )
...
* fix(vercel): CJS bundle fix
* Changeset
2022-04-15 15:58:57 -04:00
natemoo-re
abcee7c957
[ci] format
2022-04-15 19:16:54 +00:00
Tony Sullivan
e0f838ca39
Fix/numeric path params ( #3087 )
...
* adding support for numeric params in getStaticPaths()
* chore: adding changeset
* ignore undefined params in type validation
2022-04-15 14:16:11 -05:00
github-actions[bot]
c1336ae41c
[ci] release ( #3114 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-14 15:28:42 -04:00
matthewp
0f071a9723
[ci] format
2022-04-14 16:20:04 +00:00
Matthew Phillips
1687009f31
Add client:only CSS to their pages ( #3113 )
...
* Add client:only CSS to their pages
* Adds a changeset
* Use viteID for windows
2022-04-14 12:19:03 -04:00
github-actions[bot]
254048dc82
[ci] release ( #3103 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-14 15:10:29 +00:00
matthewp
c6551289ee
[ci] format
2022-04-14 13:52:56 +00:00
Matthew Phillips
4ac0d5d4e7
Support the Markdown component in SSR ( #3036 )
...
* Support the Markdown component in SSR
* Adds a changeset
* Support runtime markdown in Node.js
* Remove option from test adapter
2022-04-14 09:51:53 -04:00
Nate Moore
a391f5dc07
chore: add build:ci script to integrations ( #3104 )
2022-04-13 13:31:50 -04:00
tony-sull
1c8524505e
[ci] format
2022-04-13 15:05:59 +00:00
Tony Sullivan
254a8f3749
Fixing bug that could lose Tailwind's default presets ( #3099 )
...
* fixing bug that could lose Tailwind's default presets
* updating integration README
* chore: adding changeset
* test: fixing the tailwind tests
2022-04-13 15:05:00 +00:00
github-actions[bot]
b23f6b1596
[ci] release ( #3101 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-13 08:55:32 -04:00
matthewp
16e0ada70f
[ci] format
2022-04-13 12:45:17 +00:00
Matthew Phillips
5acf77dd22
Re-enable custom element test and fix "undefined" child ( #3095 )
...
* Re-enable custom element test and fix "undefined" child
* Remove outdated comment
* Adds a changeset
2022-04-13 08:44:22 -04:00
github-actions[bot]
21926278ba
[ci] release ( #3090 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-12 20:15:14 -07:00
Fred K. Schott
d33e177817
handle delete resrved word ( #3078 )
2022-04-12 19:57:05 -07:00
FredKSchott
1bfdf43dca
[ci] format
2022-04-13 02:54:49 +00:00
Fred K. Schott
81e210e03c
fix build base bug ( #3068 )
...
* fix ssr url search params bug
* fix build base bug
* safer slash removal
2022-04-12 19:54:07 -07:00
Ben Holmes
564caf24c2
Fix: React hydration failure ( #3094 )
...
* fix: react hydration failure
* chore: changeset
2022-04-12 17:00:52 -04:00
matthewp
6d0b0597bd
[ci] format
2022-04-12 20:50:59 +00:00
Matthew Phillips
a5caf08e24
Allow setting multiple cookies in Netlify adapter ( #3092 )
...
* Allow setting multiple cookies in Netlify adapter
* Adds a changeset
* Set the response status code
* Add a comment on why this is needed
2022-04-12 16:50:10 -04:00
Juan Martín Seery
f665d1a250
fix(vercel): support dynamic paths ( #3081 )
...
* fix(vercel): support dynamic paths
* Changeset
2022-04-12 10:02:59 -04:00
github-actions[bot]
0966a432a8
[ci] release ( #3080 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-11 19:59:32 -07:00
Juan Martín Seery
b835e285de
feat: markdown config typechecking ( #2970 )
...
* Added schemas to markdown plugin
* Added new schemas to main package
* Changesets
* typeraw
* Explaination about the weird type hack
* Added markdown.mode to config
* Added comment
* Formatted
* Moved validation to `astro` and added RemarkPlugin ad RehypePlugin
* Removed the ability to have a custom markdown renderer internally
* Fixed plugin type
* Removed unused renderMarkdownWithFrontmatter
* Added missing dependency
* Dynamically import astro markdown
* Cache import
2022-04-11 16:01:12 -07:00
FredKSchott
11766acec9
[ci] format
2022-04-11 22:58:13 +00:00
Fred K. Schott
5b3464a803
fix ssr url search params bug ( #3066 )
2022-04-11 15:57:18 -07:00
Juan Martín Seery
3d96315545
chore: updated turborepo ( #3039 )
...
* chore: updated turborepo
* Revert changes to turbo.json
* Simplified test command
* tests should run serially
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-04-11 15:55:28 -07:00
hippotastic
9f248b0563
Make Netlify adapter actually append redirects ( #3079 )
2022-04-11 12:30:47 -07:00
Fred K. Schott
771127ea29
remove unused renderers ( #3063 )
2022-04-11 11:19:41 -07:00
github-actions[bot]
791a524411
[ci] release ( #3064 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 21:13:11 -07:00
FredKSchott
83d83a7b04
[ci] format
2022-04-11 03:30:44 +00:00
Fred K. Schott
83613120a9
fix up changelogs
2022-04-10 20:29:51 -07:00
github-actions[bot]
21c74e572c
[ci] release ( #3061 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 20:15:02 -07:00
Fred K. Schott
2bb6a06ebb
revert release
2022-04-10 20:11:34 -07:00
Fred K. Schott
35346c118d
Update astro changelog
2022-04-10 20:03:16 -07:00
FredKSchott
e2e28ca23e
[ci] format
2022-04-11 03:02:11 +00:00
github-actions[bot]
46f02d9cf4
[ci] release ( #3060 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 20:01:00 -07:00
Fred K. Schott
77c0be5b26
update lockfile ( #3059 )
2022-04-10 19:12:30 -07:00
Juan Martín Seery
1907255ca2
chore: webapi test now use chai ( #3048 )
2022-04-10 18:29:46 -07:00
Fred K. Schott
47f20a189f
update test names containing spaces
2022-04-10 18:26:52 -07:00
FredKSchott
0c8b2193b2
[ci] format
2022-04-11 01:24:06 +00:00
Steve Lee
7b0fbd731e
Fix SSR static build public file copying. fixes #3016 ( #3037 )
...
* Fix SSR static build public file copying
* chore: update lockfile
* remove dirname and use URL constructor
* Cleanup test and actually test what it says it tests
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-10 18:23:17 -07:00
Fred K. Schott
c05a544acd
update tailwind integration readme
2022-04-10 18:12:34 -07:00
FredKSchott
39e0a7d757
[ci] format
2022-04-10 21:35:37 +00:00
Fred K. Schott
fbc32cf655
remove site requirement from netlify adapter ( #3041 )
...
* remove site requirement from netlify adapter
* update readme
2022-04-10 14:34:49 -07:00
Fred K. Schott
d63dcd505a
add missing self type ( #3042 )
2022-04-10 14:34:40 -07:00
Juan Martín Seery
982f64f69a
chore: updated esbuild ( #3028 )
...
* chore: updated esbuild
* Changeset
2022-04-10 14:33:10 -07:00
Erika
d1f292199c
Update JSDoc comments that get shown in editor ( #2999 )
2022-04-07 17:08:27 -04:00
matthewp
cde2c44184
[ci] format
2022-04-07 19:23:39 +00:00
github-actions[bot]
a5aea2ce56
[ci] release (beta) ( #3023 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-07 15:22:47 -04:00
matthewp
7ada6280f2
[ci] format
2022-04-07 19:18:48 +00:00
Matthew Phillips
4b0f27d9ff
Fixes adding set-cookie headers multiple times ( #3026 )
...
* Fixes adding set-cookie headers multiple times
* Adds a changeset
2022-04-07 15:18:08 -04:00
matthewp
c3b083f286
[ci] format
2022-04-07 19:17:47 +00:00
Matthew Phillips
7e9d82d75e
Warn when trying to access headers in SSG mode ( #3021 )
...
* Warn when trying to access headers in SSG mode
* Adds a changeset
* Warn when accessing headers at all + a test
2022-04-07 15:17:05 -04:00
tony-sull
42e0e0fa5c
[ci] format
2022-04-07 18:27:20 +00:00
Tony Sullivan
c773dcde31
Exclude any ?raw or ?url css imports when adding asset links ( #3020 )
...
* exclude any ?raw css imports when adding css asset links
* ?url imports should be ignored as well
* chore: adding changeset
2022-04-07 18:26:26 +00:00
matthewp
c757427fca
[ci] format
2022-04-07 17:23:16 +00:00
Matthew Phillips
8c04ff1f0b
Allow an adapter to export default ( #3022 )
...
* Allow an adapter to export default
* Adds a changeset
2022-04-07 13:21:56 -04:00
natemoo-re
5b51d81889
[ci] format
2022-04-06 21:41:37 +00:00
github-actions[bot]
1d0c1d8977
[ci] release (beta) ( #3007 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-06 16:40:46 -05:00
natemoo-re
aa8fb4af51
[ci] format
2022-04-06 21:38:53 +00:00
Nate Moore
25cc9218f8
fix( #2987 ): relative config handling with --config
flag ( #3001 )
...
* fix(#2987 ): relative config handling with `--config` flag
* test: fix tests
* fix: improve config test for failure case
* fix: test on windows?
* fix: test on windows?
2022-04-06 16:37:49 -05:00
matthewp
340cc1c8e4
[ci] format
2022-04-06 20:22:36 +00:00
Matthew Phillips
c6f8bce7c3
Fix Netlify adapter and dynamic routes ( #3011 )
...
* Fix Netlify adapter and dynamic routes
* Changeset
2022-04-06 16:21:46 -04:00
Juan Martín Seery
8bd49c9536
fix(integrations): astro:build:done
dir now matches SSR client output ( #3008 )
...
* `dir` now matches client output
* Updated integrations
* Changeset
2022-04-06 16:20:58 -04:00
Ryan Carniato
13b782f421
fix: Nested hydration with Solid ( #3003 )
...
* fix: solid nested hydration
* Create ten-rice-unite.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-04-06 14:42:01 -05:00
natemoo-re
debdf11b19
[ci] format
2022-04-06 17:19:49 +00:00
Peter Singh
d0777ad3af
Astro add docs ( #2958 )
...
* So This works 😎
* need to add to the cli next
* Renamed Files and Export
Applied creditation to where I found the
'inspiration' for this application.
* applied `astro docs` to cli
* Trying to add to CLI,
Not working 🤷♂️
* Converted into async method,
* 🎆 🎆 It works!!! 🥳 🎉 🥳
Embarrasing as it is I totally missed the part where logic was to be in.
* Moved `docs` cmd to `supportedCommands`
* refactor: cleanup docs command
* chore: add changeset
* chore: rename browser to open
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-06 12:19:05 -05:00
Juan Martín Seery
b5ed099eaf
fix: @astrojs/vercel bug fixes ( #3000 )
...
* Fixed outDir
* Updated server out
* changeset
* Renamed out to tmp
2022-04-06 14:15:46 -03:00
matthewp
e8aaedcac8
[ci] format
2022-04-06 17:08:05 +00:00
github-actions[bot]
013150e2de
[ci] release (beta) ( #3005 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-06 13:06:36 -04:00
Matthew Phillips
68e1e2dd31
Fixes dynamic API routes in SSR ( #3006 )
...
* Fixes dynamic API routes in SSR
* Adds a changeset
2022-04-06 13:01:22 -04:00
tony-sull
3bf5d84016
[ci] format
2022-04-06 15:34:09 +00:00
Tony Sullivan
9724d844b3
fix( #2981 ): keeps astro preview
server alive ( #3004 )
...
* fix(#2981 ): keeps server alive
* chore: adding changeset
* keep alive until the 'close' or 'error' event fires
2022-04-06 15:33:07 +00:00
Nate Moore
ba90ef53d3
Update readme.md
2022-04-06 10:27:16 -05:00
matthewp
cf92954e5a
[ci] format
2022-04-05 19:29:23 +00:00
github-actions[bot]
48d01049b0
[ci] release (beta) ( #2997 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-05 15:28:29 -04:00
Ben Holmes
77aa3a5c50
Docs: netlify adapter site requirement ( #2996 )
...
* feat: human-readable error on bad site or base
* fix: human-readable error should have 1 config option
* docs: update README
* chore: changeset
* docs: mention localhost for testing via netlify CLI
2022-04-05 11:25:48 -04:00
FredKSchott
b3f55f235a
[ci] format
2022-04-05 01:08:00 +00:00
github-actions[bot]
4e021f70e1
[ci] release (beta) ( #2992 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 18:07:09 -07:00
FredKSchott
a85ea0772c
[ci] format
2022-04-05 01:02:20 +00:00
Fred K. Schott
8425347cd5
fix markdown mode default ( #2991 )
...
* fix markdown mode default
* Update config.ts
2022-04-04 18:01:31 -07:00
FredKSchott
c51ce91365
[ci] format
2022-04-04 22:21:00 +00:00
github-actions[bot]
ac34a5a03a
[ci] release (beta) ( #2989 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 15:19:57 -07:00
Erika
1bc73c86fd
Add missing entry in files field in package.json ( #2988 )
2022-04-04 12:07:57 -07:00
natemoo-re
6c0c0679d8
[ci] format
2022-04-04 16:36:30 +00:00
github-actions[bot]
a68885c0d6
[ci] release (beta) ( #2986 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 11:35:25 -05:00
Princesseuh
9e01f4475c
[ci] format
2022-04-04 16:27:03 +00:00
Erika
47e0539cce
Add JSX definitions to main repo ( #2985 )
2022-04-04 12:26:15 -04:00
FredKSchott
c2ed6fe360
[ci] format
2022-04-04 06:26:31 +00:00
github-actions[bot]
2552db0d09
[ci] release ( #2975 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-03 23:25:00 -07:00
Fred K. Schott
efc63bfd0f
fix outdir default type docs
2022-04-03 23:19:27 -07:00
Nate Moore
3f0bc5af57
fix: edge case with slotted children ( #2978 )
2022-04-03 23:18:07 -07:00
Tony Sullivan
dff89a0fa3
Merge branch 'main' of github.com:withastro/astro
2022-04-03 20:42:41 +02:00
Juan Martín Seery
824458790a
fix(cli): prevent CLI from hanging ( #2974 )
...
* fix(cli): prevent hanging CLI
* Changeset
2022-04-03 14:32:39 -03:00
Juan Martín Seery
ad3c391696
fix(markdown): escape when mode == 'md' ( #2971 )
...
* Fix rehype escape
* Changeset
2022-04-03 14:32:12 -03:00
Tony Sullivan
75919537be
Fixing the new config defaults (docs only) ( #2973 )
...
* updating the default listed in config jsdocs
* chore: adding changeset
* outDir had the wrong default listed as well
* chore: updating changeset description
2022-04-03 17:05:30 +00:00
JuanM04
bf2199e1df
New astro config
2022-04-02 18:59:03 -03:00
JuanM04
ccce433994
Formatted
2022-04-02 18:56:13 -03:00
JuanM04
a377ac1efc
Merge branch 'main' into feat/vercel-adapter
2022-04-02 18:53:00 -03:00
Fred K. Schott
1335797903
update prettier width ( #2968 )
2022-04-02 14:15:41 -06:00
FredKSchott
d63213f119
[ci] format
2022-04-02 19:50:17 +00:00
github-actions[bot]
7fe149ae43
[ci] release ( #2969 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:49:27 -06:00
Fred K. Schott
e425f896b6
Revert "[ci] release ( #2925 )"
...
This reverts commit 48c9b142cc
.
2022-04-02 13:46:25 -06:00
FredKSchott
d047baad11
[ci] format
2022-04-02 19:41:44 +00:00
github-actions[bot]
48c9b142cc
[ci] release ( #2925 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:40:46 -06:00
Fred K. Schott
3483cc2285
exit prerelease mode ( #2967 )
2022-04-02 13:37:28 -06:00
FredKSchott
bae719505d
[ci] format
2022-04-02 18:30:48 +00:00
Nate Moore
17c02925c5
Migrate to new config ( #2962 )
...
* wip: config migration
* fix: formatting
* refactor: projectRoot -> root
* refactor: pageUrlFormat -> format
* refactor: buildOptions.site -> site
* refactor: public -> publicDir
* refactor: dist -> outDir
* refactor: styleOptions -> style
* fix: some dist tests -> outDir
* refactor: remove legacyBuild (with TODOs)
* refactor: more legacyBuild cleanup
* refactor: server host and port
* fix: remove experimentalStaticBuild CLI flag
* refactor: src -> srcDir
* refactor: devOptions.trailing -> trailing
* refactor: remove sitemap + related flags
* refactor: experimentalSSR -> experimental.ssr
* fix: last devOptions
* refactor: drafts -> markdown.drafts
* fix: TS error on port as const
* refactor: remove pages
* refactor: more --project-root updates
* refactor: markdownOptions -> markdown
* fix: remaining type errors
* feat: update AstroUserConfig
* refactor: update CLI flag mapper + server mapper
* fix: loadFixture projectRoot
* fix: merge CLI flags before validating / transforming
* wip: attempt to fix bad createRouteManifest config
* refactor: combine config.base and config.site
* fix: skip route manifest test for now
* fix: site and base handling
* refactor: update failing config testes
* fix: build failure
* feat: update config types with migration help
* chore: update types
* fix(deno): update deno fixture
* chore: remove config migration logic
* chore: remove logLevel
* chore: clean-up config types
* chore: update config warning
* chore: add changeset
* Sitemap Integration (#2965 )
* feat: add sitemap filter config option
* feat: add canonicalURL sitemap config option
* docs: update sitemap README
* fix: update for new config
* fix: filter not being applied
* chore: changeset
Co-authored-by: bholmesdev <hey@bholmes.dev>
* fred pass
* fix: Astro.resolve typo
* fix: public => publicDir
Co-authored-by: bholmesdev <hey@bholmes.dev>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-04-02 12:29:59 -06:00
natemoo-re
76f6643ddd
[ci] format
2022-04-02 17:35:42 +00:00
Nate Moore
d55658f061
Implement new default script
behavior, style is:global
( #2961 )
...
* feat: implement RFC0016
* chore: update to latest compiler
* chore: update compiler
* test: fix script tests
* test: update public tests
* feat: throw a warning when referencing scripts in `public/` without `is:inline`
2022-04-02 12:34:25 -05:00
matthewp
84f23d677a
[ci] format
2022-04-01 17:33:12 +00:00
Matthew Phillips
b4ad11b569
Add tests for using buildConfig ( #2960 )
2022-04-01 13:32:22 -04:00
Juan Martín Seery
645e1f2ac9
Fixed flag override ( #2956 )
2022-04-01 09:09:24 -05:00
Tony Sullivan
226822cbbf
Allows projects to opt out of the base Tailwind styles ( #2959 )
...
* adding an option to opt-out of the Tailwind base styles
* chore: adding changeset description
2022-04-01 13:45:43 +00:00
Nate Moore
80e6e759e2
Update compiler ( #2957 )
...
* chore: update compiler
* chore: add changeset
2022-03-31 22:33:07 -05:00
JuanM04
2c260760b4
Merge branch 'main' into feat/vercel-adapter
2022-03-31 20:43:57 -03:00
JuanM04
60c5823ae1
Added some comments
2022-03-31 15:37:33 -03:00
JuanM04
56cb78bd40
Reverted config hook changes
2022-03-31 15:31:56 -03:00
JuanM04
c2f4dd44e3
Removed extra code
2022-03-31 15:14:04 -03:00
JuanM04
437e08e5ca
Updated readme
2022-03-31 15:12:43 -03:00
natemoo-re
cccc6034ae
[ci] format
2022-03-31 18:12:16 +00:00
JuanM04
764467a21d
Merge branch 'main' into feat/vercel-adapter
2022-03-31 15:11:56 -03:00
Nate Moore
d81b6d9ebc
Add function-based slot support to Astro.slots.render()
( #2954 )
...
* feat(slots): add function-based slot support to Astro.slots.render()
* test(slots): add render tests
2022-03-31 13:11:26 -05:00
matthewp
50af480c7d
[ci] format
2022-03-31 18:04:57 +00:00
Matthew Phillips
cebdc85428
SSR - copy public folder when there is no client JS ( #2955 )
...
* SSR - copy public folder when there is no client JS
* Changest
* Use isBuildingToSSR
Co-authored-by: JuanM04 <me@juanm04.com>
2022-03-31 14:04:09 -04:00
natemoo-re
e044d99696
[ci] format
2022-03-31 17:59:39 +00:00
Nate Moore
93e431967f
chore: add code comment
2022-03-31 12:58:51 -05:00
Juan Martín Seery
d10c3dea21
fix: --experimental-ssr
fixes ( #2937 )
...
* Replaced `--experimental-ssr` with `isBuildingToSSR`
* changest
* Improved `isBuildingToSSR` a bit
* Added `isBuildingToSSR` to more places!!1!
* Added `@deprecated` tag
* Replaced missing experimentalSsr
* Added failing test
* Removed test
* Re-added experimental ssr flag
* Fixed typo
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
* Fixed deno tests
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-03-31 13:58:03 -04:00
matthewp
355c966f80
[ci] format
2022-03-31 17:02:05 +00:00
Fred K. Schott
3a4dc9e0a7
React 18 monorepo upgrade ( #2948 )
...
* First pass at supporting React 18 in @astrojs/react
* Try marking React 18’s `react-dom/client` as external
* Try a different approach to importing different React versions
* Allow resolving JSON modules
* Revert "Allow resolving JSON modules"
This reverts commit 5279b7249c
.
* Try the separate client entrypoint approach from #2946
* Clean up diff
* Trying to see something
* Just keep swimming… 🐠
* update to support react 18
* update React to React 18 across the board
Co-authored-by: delucis <swithinbank@gmail.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-03-31 13:01:05 -04:00
matthewp
bdb9ba1c34
[ci] format
2022-03-31 16:52:34 +00:00
Fred K. Schott
57f48b2701
Add support for React 18 in @astrojs/react ( #2947 )
...
* First pass at supporting React 18 in @astrojs/react
* Try marking React 18’s `react-dom/client` as external
* Try a different approach to importing different React versions
* Allow resolving JSON modules
* Revert "Allow resolving JSON modules"
This reverts commit 5279b7249c
.
* Try the separate client entrypoint approach from #2946
* Clean up diff
* Trying to see something
* Just keep swimming… 🐠
* update to support react 18
* add changeset
* add docs
Co-authored-by: delucis <swithinbank@gmail.com>
2022-03-31 12:51:29 -04:00
JuanM04
e890b528c4
Build to CommonJS
2022-03-30 23:08:39 -03:00
JuanM04
09e8b8e502
Updated hooks
2022-03-30 21:51:37 -03:00
JuanM04
20c3969a43
Merge branch 'main' into feat/vercel-adapter
2022-03-30 21:50:41 -03:00
matthewp
52d7fec248
[ci] format
2022-03-30 19:56:27 +00:00
Matthew Phillips
c989f106f9
Allow components to return a Response ( #2944 )
...
* Allow components to return a Response
* Changeset
2022-03-30 15:55:22 -04:00
matthewp
6a1a40eef8
[ci] format
2022-03-30 12:43:13 +00:00
Matthew Phillips
13b271bc7d
Deno adapter ( #2934 )
...
* Bundle everything, commit 1
* Get everything working
* Remove dependency on readable-stream
* Adds a changeset
* Fix ts errors
* Use the node logger in tests
* Callback the logger when done writing
* Fix test helper to await the callback
* Use serialize-javascript again
* Remove dead code
* Rename hook
* Oops
2022-03-30 08:42:19 -04:00
JuanM04
8c65f13327
Updated readme
2022-03-29 23:11:27 -03:00
JuanM04
fc2dc973f2
Reverted changes in core/build
2022-03-29 23:06:06 -03:00
JuanM04
0555099619
Removed changes no longer necessary
2022-03-29 23:04:53 -03:00
JuanM04
697ff4dfb4
Rework - now it's all SSR
2022-03-29 23:01:37 -03:00
JuanM04
1278d39b86
Added readonly config to more hooks
2022-03-29 19:02:56 -03:00
Fred K. Schott
fff83bb5c2
remove docs jsdoc tag from adapter ( #2927 )
2022-03-29 16:03:45 -05:00
matthewp
c24e5c9687
[ci] format
2022-03-29 20:59:59 +00:00
Matthew Phillips
f048cdff70
Fixes API route compat with Node 14 ( #2936 )
...
* Fixes API route compat with Node 14
* Changeset
2022-03-29 16:59:06 -04:00
JuanM04
7e5f6f1cbb
Merge branch 'main' into feat/vercel-adapter
2022-03-29 17:36:10 -03:00
Fred K. Schott
23b8ee2738
[ci] update lockfile ( #2930 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-29 08:59:46 -07:00
matthewp
9fa013b4fa
[ci] format
2022-03-29 12:19:10 +00:00
Matthew Phillips
ecbcc8c42c
Make it deployable to Netlify ( #2931 )
2022-03-29 08:18:11 -04:00
matthewp
f0275298bd
[ci] format
2022-03-29 11:36:02 +00:00
Matthew Phillips
ecc6a4833f
Implement the Astro.request RFC ( #2913 )
...
* Implement the Astro.request RFC
* Disable console warnings eslint
* Use our logger
* Adds a changeset
* Fix tests that depend on params, canonicalURL, URL
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-29 07:35:03 -04:00
FredKSchott
1e3550d5ac
[ci] format
2022-03-29 00:17:02 +00:00
Fred K. Schott
4299ab303b
New Markdown API ( #2862 )
...
* Implement new markdown plugin with deferred markdown rendering
* feat: switch from `getContent()` fn to `<Content />` API
* update types
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* update types
* Create forty-coins-attend.md
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-28 17:16:06 -07:00
FredKSchott
7d29feace1
[ci] format
2022-03-28 23:56:17 +00:00
Fred K. Schott
f70207082a
Restyle error messages ( #2902 )
...
* clean up error logging in astro
* update from ben feedback
* Update packages/astro/src/core/build/generate.ts
Co-authored-by: Ben Holmes <hey@bholmes.dev>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2022-03-28 16:55:36 -07:00
FredKSchott
ab9e3d5988
[ci] format
2022-03-28 23:52:58 +00:00
github-actions[bot]
425139f912
[ci] release ( #2923 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-28 16:52:04 -07:00
Fred K. Schott
9904c4c89d
[ci] update lockfile ( #2900 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-28 15:47:17 -07:00
JuanM04
d6f0d5cf3c
Merge branch 'main' into feat/vercel-adapter
2022-03-28 19:44:29 -03:00
Chris Swithinbank
22b1432e3e
Fix typing of integrations
array in user config ( #2907 )
...
* Fix type of `integrations` in config
As per [docs](https://docs.astro.build/en/reference/integrations-reference/#combining-plugins ), an integration can return an array of `AstroIntegration` objects to support bundling a collection of integrations as a preset. This change reflects that usages in the typing for the user config object.
* Add changeset
2022-03-28 17:07:07 -05:00
natemoo-re
9b7e419989
[ci] format
2022-03-28 22:06:23 +00:00
Rafid Muhymin Wafi
30d0fcedbb
Corrected package name in warning message ( #2911 )
...
* fixed typo in warning message
* added missing type
2022-03-28 17:05:40 -05:00
JuanM04
a878a5cb77
Updated some types + added webapi
2022-03-28 17:55:03 -03:00
matthewp
6667c41f00
[ci] format
2022-03-28 20:53:24 +00:00
github-actions[bot]
8b7220f5e4
[ci] release ( #2919 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-28 16:52:23 -04:00
matthewp
5c9312620d
[ci] format
2022-03-28 20:49:06 +00:00
Matthew Phillips
77354c89bd
Prevent CSS from being added to pages not using it ( #2918 )
...
* Prevent CSS from being added to pages not using it
* Adds a changeset
* Add clarification when the CSS is appended to the pageData
* Move addStyles up a level
2022-03-28 16:48:06 -04:00
JuanM04
f946687bea
Build API Routes
2022-03-28 15:13:14 -03:00
JuanM04
d4cff2333d
Basic Filesystem API
2022-03-28 10:05:55 -03:00
FredKSchott
a812586b58
[ci] format
2022-03-26 00:17:33 +00:00
github-actions[bot]
273919328a
[ci] release ( #2896 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-25 17:16:33 -07:00
FredKSchott
8b1b4315b8
[ci] format
2022-03-26 00:12:26 +00:00
Fred K. Schott
f268451268
small tailwind example config fix ( #2893 )
...
* fix tailwind config example
* Create shaggy-bulldogs-beam.md
2022-03-25 17:11:45 -07:00
Fred K. Schott
9d6e0b5dba
add experimental integrations flag ( #2894 )
2022-03-25 17:11:36 -07:00
natemoo-re
068e3b4dee
[ci] format
2022-03-25 23:04:57 +00:00
github-actions[bot]
779b5dd37c
[ci] release ( #2892 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-25 18:03:58 -05:00
Nate Moore
a0d67b1d25
Fix missing execa
dependency ( #2891 )
...
* fix: update dependencies
* chore: add changeset
2022-03-25 18:01:13 -05:00
Zade Viggers
71c12b9047
Correct package name in solid intergration readme ( #2889 )
...
* Correct package name in solid intergration readme
* Create polite-mirrors-fix.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-25 17:54:18 -05:00
natemoo-re
192d703563
[ci] format
2022-03-25 22:01:50 +00:00
github-actions[bot]
109693bb05
[ci] release ( #2884 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-25 17:00:49 -05:00
Nate Moore
29723ddcd8
Exit pre
mode ( #2888 )
...
* chore: update docs link
* chore: exit pre
2022-03-25 16:54:11 -05:00
Ben Holmes
6b004363f9
Docs: remaining integration READMEs ( #2885 )
...
* docs: partytown README
* docs: sitemap README
* docs: tailwind README
* docs: turbolinks README
* chore: changeset
* update: make partytown 10% less fun
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* docs: add summaries for each integration
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-25 17:45:34 -04:00
natemoo-re
145e418edd
[ci] format
2022-03-25 21:27:41 +00:00
Nate Moore
72ef7ae64a
feat(cli): scaffold out astro add
command ( #2849 )
...
* feat(cli): scaffold out `astro add` command
* added first babel transforms
* Format output
* Added changes confirmation
* Error flow
* Add dependencies
* feat(cli): astro add cleanup pass
* feat: add support for tailwind
* chore: update lockfile
* fix: types
* chore: rever @proload/core bump
* chore: add changeset
* chore: rollback dep update
* Added spinners
* chore: remove extra deps
* Removed extra argument
* Use `execa` instead of `exec`
* Changed how lines are trimmed within diffLines
* refactor: move add to core
* refactor: remove old add entrypoint
* refactor: simplify wording
* feat: improve diff
* feat: improve diff and logging, add interactive prompt when no args passed
* Formatted files
* Added --yes
* feat: improve logging for install command
* Fixed execa
* Added help message to add
* refactor: extract consts to own file
* feat: remove implicit projectRoot behavior
* feat: improve error handling, existing integrations
* fix(tailwind): ensure existing tailwind config is not overwritten
* refactor: prefer cwd to projectRoot flag
* chore: add refactor notes
* refactor: throw createPrettyError > implicit bail
* refactor: cleanup language
* feat(cli): prompt user before generating tailwind config
* fix(cli): update config generation to use cwd
* fix: resolve root from cwd
* chore: update changelog
Co-authored-by: JuanM04 <me@juanm04.com>
2022-03-25 16:26:55 -05:00
bholmesdev
07a64be4d3
[ci] format
2022-03-25 21:14:21 +00:00
Ben Holmes
046bf7281f
refactor: move Prism comp to default exp ( #2887 )
2022-03-25 17:13:28 -04:00
Ben Holmes
7c39389a3f
Docs: READMEs for component framework integrations ( #2880 )
...
* docs: add base integration readme temp for Vue
* docs: copy integration temp across renderers
* feat: add get started with components section
* feat: adapt comp integration docs for lit
* nit: THERES TWO WAYS SPECIFICALLY
* nit: there's more edits wait "there are" dangit
2022-03-25 12:15:38 -04:00
matthewp
4edccae534
[ci] format
2022-03-25 16:08:51 +00:00
Matthew Phillips
80034c6cbc
Netlify adapter ( #2879 )
...
* Netlify adapter
* Remove package.json export that doesnt exist
* Fix out path
* Make netlifyFunctions the default
* Make the dist configurable
* Add an export for the functions
* Append of the file exists
2022-03-25 12:08:02 -04:00
natemoo-re
1e5ea20694
[ci] format
2022-03-24 22:38:47 +00:00
github-actions[bot]
c78d7a46c9
[ci] release (next) ( #2860 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-24 17:37:49 -05:00
Ben Holmes
2db97f10dc
Refactor: move prism to @astrojs/prism/components
( #2878 )
...
* feat: add `<Prism/>` to @astrojs/prism/components
* feat: remove `<Prism/>` from astro/components
* refactor: point to index.mjs in import
* refactor: change exp to @astrojs/prism/component
* refactor: remove unecessary index.js
* chore: changeset
2022-03-24 17:48:07 -04:00
matthewp
f5b48bc0ae
[ci] format
2022-03-24 21:09:40 +00:00
Matthew Phillips
e4025d1f53
Build to a single file ( #2873 )
...
* Build to a single file
* Updates based on initial code review
* Adds a changeset
* Use the default export for cjs module
* Await generatePages
* Prevent timing from causing module to not import
* Fix shared CSS
* Properly handle windows ids
* Dont shadow
* Fix ts errors
* Remove console.log
2022-03-24 17:08:36 -04:00
natemoo-re
e2885df50b
[ci] format
2022-03-24 20:11:31 +00:00
Fred K. Schott
1026345715
[ci] update lockfile ( #2854 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-24 15:10:43 -05:00
Nate Moore
671727ba83
fix( #2846 ): handle destructured private env usage during SSR ( #2861 )
...
* fix(#2846 ): handle destructured private env usage during SSR
* test: add destructured env vars test
* fix: support destructured env vars
* fix: only inline referenced vars
2022-03-24 15:10:08 -05:00
natemoo-re
eb4ac82acf
[ci] format
2022-03-24 19:44:54 +00:00
Nate Moore
a49f0490c0
test: update error test for vite@2.9.x ( #2877 )
...
* test: update error test for vite@2.9.x
* chore: add link to old tests
2022-03-24 14:44:08 -05:00
FredKSchott
bababd8461
[ci] format
2022-03-24 19:32:18 +00:00
Fred K. Schott
5029382a8c
fix markdown page script injection ( #2871 )
2022-03-24 12:30:54 -07:00
Ben Holmes
1061d6477a
Feat: improve production build logging ( #2857 )
...
* feat: log setup, vite, and route gen steps
* refactor: add back "build" + timestamp for consistency
* feat: improve ms increase logs to match old debug output
* feat: add log for server assets
* chore: remove redundant debug logs
* feat: add logs for ssr steps
* fix: hide per-page log for ssr builds
* fix: hide "index.html" from debug log in SSR
* feat: add log for "collecting page data" step
* feat: add timeout logs for longer data imports
* chore: add changeset
* remove (includes setup + teardown)
* refactor: add newline to separate ssr from client build
* fix: move "gen static routes" heading to pages
* fix: only show client build ms when triggered
* fix: remove dup render loop
* chore: remove unused static-build imports
2022-03-24 15:23:37 -04:00
Fred K. Schott
5571227718
fix adblock issue ( #2875 )
2022-03-24 11:20:34 -07:00
Fred K. Schott
d763ec183e
fix shiki perf issue ( #2870 )
2022-03-24 09:49:54 -07:00
Ben Holmes
098f6f6b06
Fix: is self accepting
pt 2 module graph boogaloo ( #2872 )
...
* fix: isSelfAccepting Preact error
* refactor: add .js ext to preact entrypoints for consistency
* chore: changeset
* fix: remove ./client and ./server from preact pkg exp
2022-03-24 12:28:50 -04:00
matthewp
99414f76cf
[ci] format
2022-03-24 11:27:15 +00:00
Matthew Phillips
5e52814d97
Adapters v0 ( #2855 )
...
* Adapter v0
* Finalizing adapters
* Update the lockfile
* Add the default adapter after config setup is called
* Create the default adapter in config:done
* Fix lint error
* Remove unused callConfigSetup
* remove unused export
* Use a test adapter to test SSR
* Adds a changeset
* Updated based on feedback
* Updated the lockfile
* Only throw if set to a different adapter
* Clean up outdated comments
* Move the adapter to an config option
* Make adapter optional
* Update the docs/changeset to reflect config API change
* Clarify regular Node usage
2022-03-24 07:26:25 -04:00
Nate Moore
5c96145527
add build:ci command which skips tsc
( #2869 )
2022-03-23 19:46:16 -05:00
Nate Moore
374c3edcf2
chore: add build:ci command
2022-03-23 16:23:25 -05:00
Nate Moore
99518c8d52
Pin rollup
to same version as vite
( #2863 )
...
* chore: pin rollup to same version as Vite
* fix: improve implicit types
* fix: revert rollup change
2022-03-23 15:57:53 -05:00
RafidMuhymin
29f420bb0e
[ci] format
2022-03-23 15:48:26 +00:00
Rafid Muhymin Wafi
52e75475ae
Updated markdownOptions config type ( #2826 )
...
* Updated markdownOptions config type
* removed rehype-toc
2022-03-23 21:47:43 +06:00
Fred K. Schott
8ec3d0da19
audit file urls ( #2853 )
2022-03-22 16:49:27 -05:00
natemoo-re
1cab405460
[ci] format
2022-03-22 21:28:14 +00:00
Nate Moore
c781b12f87
fix: ensure private API is not enumerable ( #2859 )
2022-03-22 16:27:35 -05:00
Tony Sullivan
5869e015d4
marking Astro.resolve() as deprecated ( #2856 )
2022-03-22 14:15:36 -04:00
FredKSchott
1378a9ed7c
[ci] format
2022-03-22 03:28:33 +00:00
github-actions[bot]
d082689385
[ci] release (next) ( #2851 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-21 20:27:46 -07:00
Ben Holmes
96372e6beb
Fix: isSelfAccepting
? More like isBanishedToTheShadowRealm
( #2852 )
...
* fix: restore renderer caching strategy
* fix: restore old URL constructor for HMR
* docs: comment why we need the rendererCache
* refactor: remove needless "else"
* chore: changeset
2022-03-21 20:14:58 -07:00
Ben Holmes
5315c3f7bc
Feat: support tailwind config files ( #2831 )
...
* feat: support custom tailwind config files
* fix: make config options optional
* feat: use existing utilities to resolve config path
* deps: add @proload/core to tailwind integration
* deps: update pnpm lock
* chore: clarify config docs
* refactor: extract user config fetch to helper
* refactor: rename function and function options
* refactor: throw error on bad custom config path
* deps: move @proload/core to regular deps
* chore: add changeset
* fix: apply astro preset when user config exists
* fix: use resolveConfig to preserve defaults
2022-03-21 17:27:32 -04:00
Fred K. Schott
981e2a839b
add injected scripts to markdown pages ( #2848 )
...
* add injected scripts to markdown pages
* Create twenty-kiwis-tease.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-21 13:05:11 -07:00
Tony Sullivan
3b621f7a61
chore: integration keywords ( #2847 )
...
* updating integration package keywords
* adding a changeset
2022-03-21 19:31:15 +00:00
Juan Martín Seery
1fdb63b5d0
feat(create-astro): add peer dependencies to package.json ( #2843 )
...
* Install dependencies automatically
* Added spinners
* Updated lockfile
* changeset
* Sort dependencies
* Reverted autoinstall
* Updated changeset
2022-03-21 12:33:31 -05:00
Juan Martín Seery
41110ebe72
chore: remove @astrojs/parser
( #2845 )
...
* Removed parser from astro
* Removed parser files
* Updated changeset config
* Removed from license
2022-03-21 12:30:23 -05:00
Fred K. Schott
0c5378b8cf
[ci] update lockfile ( #2841 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-21 10:32:25 -05:00
FredKSchott
fd7ab4e11c
[ci] format
2022-03-21 04:03:05 +00:00
Fred K. Schott
078b6cde6c
[ci] release (next) ( #2838 )
...
This reverts commit 935e6fa0c8
.
2022-03-20 21:02:08 -07:00
Fred K. Schott
935e6fa0c8
Revert "[ci] release (next) ( #2838 )"
...
This reverts commit 5df8d68094
.
2022-03-20 21:01:42 -07:00
github-actions[bot]
5df8d68094
[ci] release (next) ( #2838 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-19 10:34:59 -07:00
Nate Moore
77ebab8bb2
chore: fix missing postcss-load-config
dependency ( #2835 )
2022-03-18 19:02:42 -07:00
natemoo-re
d812fbda97
[ci] format
2022-03-18 23:23:25 +00:00
github-actions[bot]
b5a8418f82
[ci] release (next) ( #2812 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-18 18:20:21 -05:00
Nate Moore
7954541291
Update Compiler with new CSS Parser ( #2833 )
...
* chore: update compiler
* Update eighty-trees-thank.md
* test: update css test
2022-03-18 18:16:32 -05:00
Nate Moore
910cae3b95
fix(windows): fix build script on windows ( #2830 )
2022-03-18 17:44:59 -05:00
Fred K. Schott
6386c14d00
Astro Integration System ( #2820 )
...
* update examples
* add initial integrations
* update tests
* update astro
* update ci
* get final tests working
* update injectelement todo
* update ben code review
* respond to final code review feedback
2022-03-18 15:35:45 -07:00
bholmesdev
0f376a7c52
[ci] format
2022-03-18 21:30:38 +00:00
Ben Holmes
0a3d3e51a6
Feat: change to shiki default md renderer ( #2824 )
...
* feat: change Shiki to default
* refactor: update blog styles for shiki
* feat: update examples/docs styles for Shiki
* refactor: remove Prism-ish examples/docs styles
* refactor: simplify rules with `all: unset`
* refactor: remove Prism styles
* refactor: examples/with-md remove Prism-specific line-highlight
* chore: add changeset
* chore: update changeset versions
* refactor: update syntax highlight test for scoped styles
* fix: apply scoped style class to pre and span lines
* feat: test that scoped styles cascade to shiki code
* refactor: pass scopedClassName explicitly
2022-03-18 17:29:51 -04:00
Hlynur Sveinbjornsson
1cd7184ca6
Fix island deduplication ignoring props. ( #2825 )
...
* Fix island deduplication ignoring props.
Re-resolves an issue initially patched in https://github.com/withastro/astro/pull/846 but seemingly lost in the 0.21.0 mega-merge (d84bfe719a
).
This change makes the component render step account for all props, even if they don't affect the generated HTML, when deduplicating island mount.
* Fix React component test using different rendered props to test deduplication.
* fix: improve serialization support for non-JSON objects
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-03-18 09:00:14 -04:00
Fred K. Schott
9327b56e82
[ci] update lockfile ( #2822 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-17 13:33:52 -05:00
Nate Moore
915ab92204
test: add tailwind escape test ( #2816 )
2022-03-17 11:09:11 -05:00
matthewp
4cfbd402a4
[ci] format
2022-03-17 12:32:03 +00:00
Matthew Phillips
7b9d042dde
Allow SSR dynamic routes to not implement getStaticPaths ( #2815 )
...
* Allow SSR dynamic routes to not implement getStaticPaths
* Adds a changeset
* Update based on code-review comments
2022-03-17 08:31:01 -04:00
Tony Sullivan
4914e1f70d
Adds tests for tailwind support in dev
and build
( #2809 )
...
* adding basic dev and build tests for TailwindCSS
* adding tests to validate tailwind classes are maintained in HTML output
* fixing indent spacing
* updating lock file
2022-03-16 17:35:49 +00:00
matthewp
279774c48e
[ci] format
2022-03-16 16:17:34 +00:00
Matthew Phillips
4c25a1c2ea
Implements redirects, headers for SSR ( #2798 )
...
* Implements redirects, headers for SSR
* Move away from an explicit Request
* Properly handle endpoint routes in the build
* chore(lint): ESLint fix
* Update based on review comments
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-16 12:16:21 -04:00
Fred K. Schott
498ef59b0e
[ci] update lockfile ( #2810 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-16 09:53:46 -05:00
Nate Moore
5cb7e0366b
fix: mark static build pkg as private
2022-03-15 19:50:25 -05:00
natemoo-re
34bfedc9d8
[ci] format
2022-03-16 00:41:53 +00:00
github-actions[bot]
2b89613539
[ci] release ( #2808 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-15 19:40:27 -05:00
Ben Holmes
79282163e2
fix: Svelte PostCSS config error ( #2807 )
...
* fix: Svelte PostCSS config error
* chore: changeset
2022-03-15 19:32:39 -04:00
Nate Moore
8654e841ff
chore: fix internal package
2022-03-15 17:29:39 -05:00
natemoo-re
267d20d207
[ci] format
2022-03-15 22:17:54 +00:00
github-actions[bot]
b36d16eb8f
[ci] release ( #2802 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-15 17:06:40 -05:00
Nate Moore
86419d9ed7
Ignore test fixture for changesets ( #2804 )
...
* test: move fixtures to `@test/` scope
* chore: ignore `@test/` scope
* chore: add changeset
* test: renamed missed package
* chore: delete test file
* fix: @test package references
* fix: @test package references
2022-03-15 16:17:23 -05:00
Fred K. Schott
6eb494796e
update HTML escape logic ( #2793 )
2022-03-15 15:33:55 -05:00
Nate Moore
2b76ee8d75
Export defineConfig helper ( #2803 )
...
* feat: add astro/config entrypoint
* chore: update examples to use `defineConfig` util
* chore: prettier fix
* chore: add changeset
2022-03-15 15:27:17 -05:00
Ben Holmes
2d95541b52
Fix missing style imports on initial load ( #2791 )
...
* fix: missing style imports on initial load
* chore: changeset
* fix: update comment on using URL map
* fix: use getModulesByFile to match on ID properly
* refactor: use imperative loop for performance
* fix: update scan from each matching mod
* fix: update scan from importedMod loop
* fix: avoid scanning all related mods
2022-03-15 15:02:29 -04:00
Fred K. Schott
11fb3745dd
[windows:ci] handle CLI output in a cross-compat way ( #2801 )
...
* handle readline in a cross-compat way
* Create modern-feet-lay.md
2022-03-15 10:30:25 -07:00
matthewp
fc50fbb47a
[ci] format
2022-03-15 16:05:38 +00:00
github-actions[bot]
973d398074
[ci] release ( #2786 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-15 11:40:51 -04:00
Matthew Phillips
58d8686e94
Fix for allowing space in folder name ( #2797 )
...
* Fix for allowing space in folder name
* Adds a changeset
* Prepend a forward slash, for windows
2022-03-15 11:26:46 -04:00
matthewp
1325fe90fc
[ci] format
2022-03-15 12:38:13 +00:00
Fred K. Schott
c36527f46d
fix flakey windows tests ( #2795 )
2022-03-15 08:37:29 -04:00
natemoo-re
2b52c72b5d
[ci] format
2022-03-14 23:20:37 +00:00
Nate Moore
6b34840d3d
Fix set:html
behavior with null
( #2790 )
...
* feat: improve set:html behavior for null/undefined
* chore: add changeset
* refactor: improve set:html and set:text documentation
* test: improve set:html tests
* refactor: better types for server API
2022-03-14 18:19:53 -05:00
FredKSchott
75f4c17e4c
[ci] format
2022-03-14 17:24:30 +00:00
Fred K. Schott
2314eba9a4
[ci] update lockfile ( #2773 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-14 10:23:35 -07:00
Fred K. Schott
b4d34e2d2c
improve build perf ( #2772 )
2022-03-14 10:23:05 -07:00
Ben Holmes
2c4fd919fa
Fix: Astro.props missing properties ( #2785 )
...
* Fix: Astro.props missing properties
* chore: add changeset
2022-03-14 13:03:44 -04:00
natemoo-re
d1a7f6a1c5
[ci] format
2022-03-11 22:48:55 +00:00
github-actions[bot]
30e78a0bd8
[ci] release ( #2770 )
...
* [ci] update lockfile (#2763 )
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* chore: exit prerelease mode
* [ci] release
* chore: update lockfile
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-11 16:47:57 -06:00
Fred K. Schott
1634172ff9
[ci] update lockfile ( #2763 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-11 16:38:28 -06:00
Matthew Phillips
49c0d9970f
Fix dev resolution of client modules on Windows ( #2768 )
...
* Fix dev resolution of client modules on Windows
* Adds a changeset
2022-03-11 17:28:48 -05:00
bholmesdev
d4dbfe8974
[ci] format
2022-03-11 22:26:21 +00:00
Ben Holmes
77b9c95352
Feat: expose server on local network with new --host flag ( #2760 )
...
* feat: update config to support bool --hostname
* fix: show localhost for --hostname=true
* feat: address logging feature parity w/ Vite
* chore: update type docs
* refactor: extract local, network prefs to variable
* feat: add --host to --help output
* feat: deprecate --hostname, add --host
* feat: add --host tests
* feat: update preview to support new flags
* fix: show --host in dev server log
* feat: update config tests for --host flag
* chore: test lint
* chore: update lock with new fixture
* chore: add changeset
* refactor: add more details to JSdocs
* fix: update path tests
* feat: only expose when --host is not local
* fix: make flag --help less verbose
* fix: address @types comments
* fix: lint
* chore: remove unused import
* fix: use host flag for config test
* fix: ensure local logs come before network
* refactor: switch up that network logging one last time!
* feat: update unit tests
* chore: remove debugging block
* fix: only parse network logs if network is present
2022-03-11 17:25:26 -05:00
Nate Moore
2bb2c2f7d1
Update compiler ( #2767 )
...
* chore: update compiler
* chore: add changeset
2022-03-11 16:20:20 -06:00
bholmesdev
4c975dc4da
[ci] format
2022-03-11 16:57:36 +00:00
Fred K. Schott
6ce97b1ebe
fix sitemapFilter docs ( #2762 )
2022-03-11 11:56:54 -05:00
natemoo-re
3a6ef130dd
[ci] format
2022-03-10 23:36:11 +00:00
github-actions[bot]
e032e89a64
[ci] release (next) ( #2754 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-10 17:31:45 -06:00
natemoo-re
a940354b38
[ci] format
2022-03-10 23:26:18 +00:00
Nate Moore
499fb6a335
CLI: add prerelease warning ( #2758 )
...
* feat(cli): add prerelease and outdated warnings
* refactor: cleanup getLatestVersion code
* refactor: simplify isPrerelease logic
* chore: add changeset
* fix: do not require devStart for preview
* refactor: extract prerelase/outdated into own templates
* feat: remove upgrade warning
* feat: make prerelease less scary
* chore: update prerelease wording
* chore: update feedback copy
2022-03-10 17:25:06 -06:00
Fred K. Schott
da826a6ba4
Update util.ts ( #2761 )
2022-03-10 15:17:24 -08:00
Nate Moore
5f55af9cce
fix( #2753 ): unescape define:vars
( #2756 )
...
* fix(#2753 ): unescape `define:vars`
* test: add directives suite
* chore: update lockfile
2022-03-10 14:36:07 -06:00
natemoo-re
7b18d4c226
[ci] format
2022-03-10 20:15:34 +00:00
Nate Moore
10843aba63
Add sitemap filter option ( #2755 )
...
* Add filter for sitemap
* chore: add changeset
* fix: types
* docs: add sitemapFilter docs
Co-authored-by: David Rothmann <david@rothmann.it>
2022-03-10 14:14:45 -06:00
Fred K. Schott
602bf2f181
fix eperm ci issue on windows ( #2757 )
2022-03-10 13:40:27 -06:00
Ben Holmes
a14075e2a4
Feat: show 404 when getStaticPaths
doesn't match URL ( #2743 )
...
* WIP: return 404 for unmatched getStaticPaths route
* feat: regex on static paths to 404 in dev
* Revert "WIP: return 404 for unmatched getStaticPaths route"
This reverts commit 9c395a2586ca40d44c3ab18edc7ffbc1c4660ed8.
* feat: call getParamsAndProps pre-ssr to catch errs
* fix: remove unused cache regex check
* fix: revert getPattern changes
* fix: remove unused preload props
* fix: log 404 for custom 404 pages
* refactor: rename fixture for clarity
* feat: add getStaticPaths status code tests
* fix: pas rootRelativeUrl to handle subpaths
* fix: update dev-routing tests from 500 -> 404
* refactor: make error handling more explicit
* lint: use typescript no shadow to fix enum issue
* chore: add changeset
* refactor: clarify test names
* refactor: remove variable reassignment
* fix: update dev-routing tests 500 > 404
* refactor: update test file structure
* Fix: revert to old logging
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Chore: use `const enum` instead
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* chore: format
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-10 13:02:37 -05:00
natemoo-re
7f99d0de9e
[ci] format
2022-03-10 17:54:39 +00:00
Fred K. Schott
3d56123f25
Refactor fs utils, fix flakey windows tests ( #2749 )
...
* cleanup our fs util usage
* fix fs url support for node v14
* update to fix windows
* making sure the dir exists before calling readdirSync
* chore: remove debug code
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-03-10 11:53:59 -06:00
natemoo-re
5d7a92b563
[ci] format
2022-03-10 15:56:29 +00:00
Fred K. Schott
79fc320480
update deps: esbuild, typescript ( #2750 )
...
* update dep: typescript
* update dep: esbuild
* update types
* update types
* update dep: es-module-lexer
* update tests
2022-03-10 09:55:40 -06:00
FredKSchott
c5c445f94b
[ci] format
2022-03-10 01:13:16 +00:00
github-actions[bot]
6ead80db47
[ci] release (next) ( #2734 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-09 19:01:26 -06:00
natemoo-re
518331f560
[ci] format
2022-03-10 00:10:48 +00:00
Nate Moore
ae8d925666
Improve Astro.slots
API ( #2695 )
...
* feat: update Astro.slots API
* fix: migrate Markdown to public `Astro.slots.render` API
* chore: update internal AstroGlobal types
* chore: add changeset
* Update clean-bottles-drive.md
* refactor(test): update slot tests to new syntax
2022-03-09 18:09:48 -06:00
natemoo-re
2acfef741f
[ci] format
2022-03-09 23:38:46 +00:00
Nate Moore
e8d4e56803
Improve logger (deduping, new help and version) ( #2737 )
...
* feat: improve logger by removing repeat messages
* feat(hmr): only send HMR updates when files change
* feat: improve hmr formatting
* feat(logger): improve welcome formatting
* feat(logger): improve hmr formatting
* chore(test): update cli test output
* feat(logger): improve logging output
* feat(logger): improve help/version flags
* chore: remove checksum checks
* fix(test): update cli tests
* refactor(test): cleanup astro dev cli tests
* chore: add changeset
* chore(test): skip doctype test
2022-03-09 17:37:59 -06:00
natemoo-re
8c0a8fee32
[ci] format
2022-03-09 23:03:26 +00:00
Nate Moore
05b66bd68b
Escape HTML by default ( #2747 )
...
* feat: escape HTML by default
* feat(test): add escaping test
2022-03-09 17:02:25 -06:00
natemoo-re
658a92915d
[ci] format
2022-03-09 22:39:48 +00:00
Fred K. Schott
2906110c04
Update tests for legacy build ( #2746 )
...
* move fast-build example into a test fixture for legacy build
* update tests for legacy build
2022-03-09 16:38:46 -06:00
natemoo-re
43a5c06a93
[ci] format
2022-03-09 21:45:28 +00:00
Nate Moore
72c2c86e9d
merge next
into main
( #2705 )
...
* Unflag the static build (#2652 )
* Unflag the static build
* Only set legacyBuild to false if experimentalSSR is true
* Use legacy build when we have to
* Put a few more tests into legacy mode
* Last two
* Make astro-basic use the legacy build
* Adds a changeset
* Mark the lit test as legacy
* Update yarn lock
* Update based on feedback
* Add --legacy-build flag
* Move astro-basic test to use static build (#2682 )
* Move some tests over to the static build (#2677 )
* Move some tests over to the static build
* Fix assets tests
* Fix the assets tests
* Fix for the client:only components
* Moves asset tests to the static build
* Move postcss test over to static build
* Bring back legacy build for astro-basic test
* Move astro-basic test to use static build
* Migrate more tests to the static build (#2693 )
* fix: disable HMR during build (#2684 )
* Migrate more tests to the static build
* Only prepend links in non-legacy mode
* Add the 0-css tests
* Convert all CSS tests to the static build
* Migrate Astro global tests
* Remove .only
* Fix static build tests
* Migrate a few more
* More tests
* Move the lit test back to legacy
* Increase the test timeout
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Improve `head` injection behavior (#2436 )
* feat: add renderHead util to server
* feat: remove `layouts` from config, Vite plugin
* fix: improve head injection during rendering
* chore: update compiler
* fix: do not escape links
* chore: enter `pre` mode
* Replace `send` with `sirv` (#2713 )
* remove send
* Create thick-ravens-chew.md
* I feel like I'm going to screw something up
* working finally!
* rewrite req.url
* Add tiny bit of doc
* Update .gitignore
Co-authored-by: Evan Boehs <evan@boehs.org>
* Move remaining tests to the static build (#2712 )
* Move lit test to the static build
* Migrate astro-env plugin to work in the static build
* Do not remove vite:define
* Adds a changeset
* Add a warning when passing the --experimental-static-build flag (#2718 )
* Add a warning when passing the --experimental-static-build flag
* Disable the lint warning
* [ci] release (next) (#2721 )
* [ci] release (next)
* chore: update changeset
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
* 404 page (#2719 )
* Fix: build to 404.html in the static build
* Adds a changeset
* fix pnpm install missing peer deps
* fix svelte version in workspace
* fix lockfile
* fix(webapi): add dev script
* improve preview reliability (#2739 )
* improve preview reliability - fix broken tests
* shamefully hoist to unblock
* remove lit from test running
* chore: update lockfile
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Evan Boehs <evan@boehs.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-09 15:44:26 -06:00
Matthew Phillips
c139829b10
Fixes windows test flakiness ( #2744 )
...
* Fixes windows test flakiness
* Tighten up the try/catch
2022-03-09 15:44:12 -06:00
Fred K. Schott
240d88aefe
fix format ( #2736 )
2022-03-08 15:20:04 -08:00
Ben Holmes
0ae96bb749
Fix/2177/log missing local network ip ( #2732 )
...
* feat: show "localhost" for local network IPs
* refactor: remove timestamps from addr logs
* fix: hide timestamp on null types
* feat: add emoji OS helper
* feat: make logs 100% nicer
* refactor: extract isLocalHost to util
* feat: update preview logs to match
* chore: add changeset
* fix: pull pkg version from package.json
* refactor: remove 👉 guys
* fix: devStart return type
* feat: inject process.env.PACKAGE_VERSION at build time
* feat: update unit test for hostname checks
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-03-08 17:11:18 -05:00
Fred K. Schott
6bf124fb2f
remove a bad dev warning from static-build ( #2733 )
2022-03-08 14:03:33 -08:00
Nate Moore
d08ddaf5b9
Move from yarn to pnpm ( #2455 )
...
* chore: `yarn` => `pnpm`
* docs: `yarn` => `pnpm`
* chore(ci): yarn => pnpm
* chore(ci): update pnpm cache path
* fix: add missing deps
* fix: add missing deps
* test: add package.json to all test fixtures
* chore: improve hoisting behavior
* chore: move turbo into package.json
* chore: update npmrc
* fix: add missing `debug` dependency
* chore: remove prepare script
* test: fix new tests
* fix: fully resolve renderer paths and `astro/internal` path
* chore: update lockfile
* chore: remove log
* fix: resolve renderers in vite-plugin-jsx
* fix: prefer public-hoist-pattern to shamefully-hoist
* chore: ignore @babel/core peer warning
* chore: update dependencies
* test: add autoprefixer as explicit dep
* chore: update `.npmrc` file in examples
* chore: update dependencies
* fix: resolve renderer dependencies in static build
* fix: static build renderer resolution
* chore: fix smoke tests
* chore: hoist autoprefixer
* chore: update lockfile
* attempt: use full file:// path on Windows
* attempt: use astro/internal
* attempt: optimize astro/internal
* attempt: expose ./internal.js
* chore: add missing package.json files
* attempt: resolve astro/internal path
* chore: tidy package.json
* chore: update lockfile
* chore: update deps
* chore: update deps
* chore: yarn -> pnpm
* attempt: explicit /@fs urls
* attempt: explicit /@fs urls
* chore: update all examples for pnpm
* chore: fix hoisting for with-vite-plugin-pwa
* chore(ci): fix sharp install
* chore: update with-vite-plugin-pwa example
* fix: pin vite-plugin-pwa to 0.11.11
* fix: add workbox-window to vite-plugin-pwa deps
* refactor: use pnpm update --recursive
Co-authored-by: JuanM04 <me@juanm04.com>
* chore: yarn => pnpm
* chore: yarn => pnpm
* fix: update smoke test to skip examples which don't work in static build
* update lockfile
* chore: update .npmrc files
* chore: update lockfile
* fix: smoke script
* chore: update .npmrc file
* fix: return to shamefully-hoist (shamefully)
* chore: update lockfile
* fix(smoke): ignore scripts for smoke tests
* fix: update example to disable renderers
* chore: bump version
* chore(ci): fix smoke tests
* attempt: disable --frozen-lockfile for smoke tests
* chore: update smoke test
* chore: fix rebase issue
* chore: update lockfile
* fix: smoke tests
* fix(ci): run external smoke tests first
* fix(ci): run syntax
* chore: update lockfile
* fix(ci): ensure submodules are up-to-date
* fix(ci): ensure submodules are up-to-date
* chore: update lockfile
* chore: update for webapi
* chore: silence node:* warnings
* chore: update deps
* fix(ci): persist generated webapi assets
* fix(ci): webapi build script
* chore(ci): remove custom node caching
* chore: keep turbo.json
* chore: update turbo, ignore create-astro
* chore: update deps
* fix(ci): test command
* chore(ci): update test script
Co-authored-by: JuanM04 <me@juanm04.com>
2022-03-08 15:46:11 -06:00
natemoo-re
63adaeec34
[ci] yarn format
2022-03-07 21:37:50 +00:00
Nate Moore
f18ee36dc0
Add @astrojs/webapi
package ( #2729 )
...
* chore: add @astrojs/webapi
* chore: update package.json
* fix: update file case
* fix: remove lowercase file
* chore: update tests to use mocha
* chore: update LICENSE
2022-03-07 15:36:22 -06:00
natemoo-re
e02438ce1f
[ci] yarn format
2022-03-04 21:30:35 +00:00
github-actions[bot]
a6ee42fa17
[ci] release ( #2724 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-04 15:29:27 -06:00
Nate Moore
0d37f8e0a5
chore: revert #2715 ( #2722 )
2022-03-04 15:25:59 -06:00
natemoo-re
1a7dfb1426
[ci] yarn format
2022-03-04 17:29:53 +00:00
github-actions[bot]
88ccb2d696
[ci] release ( #2720 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-04 11:28:59 -06:00
natemoo-re
a286a75cc4
[ci] yarn format
2022-03-04 17:20:00 +00:00
Nate Moore
5f91e007cb
Remove postcss-load-config
warning for Svelte users ( #2715 )
...
* chore: update dependencies
* fix(svelte): use experimental vite preprocessor rather than svelte-preprocess
* chore: add changeset
2022-03-04 11:18:55 -06:00
natemoo-re
1fd5106364
[ci] yarn format
2022-03-03 17:54:01 +00:00
github-actions[bot]
92447974f2
[ci] release ( #2714 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-03 11:52:40 -06:00
Juan Martín Seery
b2c37385f9
chore: changed data-astro-raw
to is:raw
( #2706 )
...
* chore: changed `data-astro-raw` to `is:raw`
* changesets
2022-03-03 11:34:36 -06:00
Erika
519a5d84d1
Add .d.ts file to astro package for language-tools consumption ( #2711 )
...
* Add .d.ts file for user and language-server consumption
* Update according to feedback
2022-03-03 11:34:04 -06:00
Matthew Phillips
5b1d700134
Remove the after in the Lit test ( #2710 )
2022-03-03 10:01:30 -05:00
natemoo-re
955c4df5b6
[ci] yarn format
2022-03-02 22:25:22 +00:00
github-actions[bot]
4f924b8cea
[ci] release ( #2692 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-02 16:23:55 -06:00
Fred K. Schott
91765d79b1
Improve build perf ( #2697 )
...
* improve md perf
* chore: add changesets
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-03-02 16:09:18 -06:00
Juan Martín Seery
caf9135c48
fix: upgraded vite ( #2678 )
...
* fix: upgraded vite
* chore: changeset
* Upgraded to vite v2.8.6
* Updated changeset
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-03-02 15:51:13 -06:00
Fred K. Schott
e24a7896f3
fix bad descirption jsdoc tag, post-merge
2022-03-02 12:15:01 -08:00
FredKSchott
a719a74733
[ci] yarn format
2022-03-02 20:11:12 +00:00
Fred K. Schott
f957e46724
Add detailed type annotations to AstroUserConfig ( #2698 )
...
* add detailed type definitions
* final cleanup
2022-03-02 12:09:08 -08:00
Fred K. Schott
d9263c8427
fix vite version ( #2694 )
2022-03-01 09:31:15 -08:00
Nate Moore
c7bbb11289
fix: disable HMR during build ( #2684 )
2022-03-01 09:13:39 -05:00
natemoo-re
a217c6608d
[ci] yarn format
2022-02-28 22:16:16 +00:00
github-actions[bot]
9cc6f26946
[ci] release ( #2683 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-28 16:15:09 -06:00
Mateus Esdras
8fb1f53e96
fix(runtime): do not render empty Fragment ( #2667 )
...
This commit fixes the bug when returning an empty Fragment which makes
it undefined. This is because unescapeHTML (raw) will create a String object
with an 'undefined' string.
To fix this we need to check if the `children` is null or undefined
before marking a string as raw.
2022-02-28 16:03:28 -06:00
Nate Moore
046af36475
fix(hmr): HMR regression related to .astro updates ( #2681 )
2022-02-28 16:00:09 -06:00
Jonathan Neal
bfaff255f7
Fix HTMLElement expression warning ( #2675 )
2022-02-28 15:03:22 -05:00
natemoo-re
ede96b1b10
[ci] yarn format
2022-02-25 23:29:59 +00:00
github-actions[bot]
c0a6e3e80a
[ci] release ( #2666 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-25 17:29:08 -06:00
natemoo-re
a5a1563094
[ci] yarn format
2022-02-25 23:04:58 +00:00
Fred K. Schott
fca6407318
fix astro scoping of "@import" inside of style tags ( #2656 )
...
* fix astro scoping of "@import" inside of style tags
* Create lovely-lies-dress.md
* Update compile.ts
* fix smoke test
* Update package.json
2022-02-25 17:04:04 -06:00
Nate Moore
0494f74e4e
feat: improve third-party Astro package compatability ( #2665 )
2022-02-25 17:03:05 -06:00
natemoo-re
51b04f39f4
[ci] yarn format
2022-02-24 20:49:48 +00:00
github-actions[bot]
e31246f7ac
[ci] release ( #2641 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-24 14:48:44 -06:00
Fred K. Schott
a0fc5cb5ff
ensure utf8 encoding when serving html ( #2654 )
...
* ensure utf8 encoding on servers
* Create spicy-tomatoes-act.md
* Update spicy-tomatoes-act.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-02-24 14:39:41 -06:00
Javier Cortés
2e5c3b5126
fix(core): Issue #2625 . error with process.env.LANG larger than 5 ( #2645 )
...
* Update logger.ts
Solving #2625
* chore: add changeset
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-02-24 14:38:31 -06:00
Nate Moore
17032cd064
chore: upgrade compiler ( #2653 )
2022-02-24 14:15:29 -06:00
natemoo-re
30106e584f
[ci] yarn format
2022-02-24 19:12:33 +00:00
Nate Moore
5091d788f6
Add fine-grained HMR support ( #2649 )
...
* feat: add fine-grained HMR support
* chore: lint
* chore: lint
* fix: handle hmr with custom event handler
* refactor: cleanup hmr script
2022-02-24 13:11:18 -06:00
Juan Martín Seery
a2128f8e47
Fixed incorrect types and imports ( #2630 )
...
* Fixed incorrect types and imports
* Changeset
2022-02-23 17:14:39 -06:00
Shinobu Hayashi
fe31eca414
Fix(component): align starting position in Markdown slot ( #2631 )
...
* Fix: align markdown starting position in each line
* Chore: add testcase for aligning starting position in each line
* Chore: update the test case on astro-markdown custom language
* Update: remove trimmed only startWith trimmed space
2022-02-23 17:08:17 -06:00
Juan Martín Seery
9b7e2ab251
Fixed shiki import to work with "type": "module" ( #2628 )
...
* Fixed shiki import to work with "type": "module"
* Changeset
* Separated types import
* Add "* as" to type import
2022-02-22 08:46:04 -08:00
tony-sull
664a221a24
[ci] yarn format
2022-02-22 09:54:23 +00:00
Joel Kuzmarski
f165b78ad2
Make Non-HTML Pages work for static build ( #2638 )
...
* Make Non-HTML Pages work for static build
* Check hasOwnProperty instead of length
* Fix typo "> 0"
2022-02-22 09:53:21 +00:00
natemoo-re
38fc7d64a7
[ci] yarn format
2022-02-18 22:34:54 +00:00
github-actions[bot]
1d9f8a57f5
[ci] release ( #2619 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-18 16:33:56 -06:00
natemoo-re
aaa61ff254
[ci] yarn format
2022-02-18 22:07:52 +00:00
Nate Moore
39cbe50085
Expose private .env
variables to import.meta.env
during SSR ( #2612 )
...
* chore(examples): add env-vars example
* feat: improve import.meta.env support
* chore: add changeset
* test: update astro-envs test
* refactor: cleanup code based on feedback
* fix: import.meta guard
* fix: update memory test threshold to 10%
2022-02-18 16:06:56 -06:00
Matthew Phillips
23783648b6
Adds memory leak test in CI ( #2616 )
...
* Add a memory leak test
* Add memory leak smoke test to CI
* Update the latest compiler
* Update yarn.lock
* Remove entries optimization
* Calculate as 5% higher
2022-02-18 14:23:47 -06:00
matthewp
137b08efc2
[ci] yarn format
2022-02-17 16:12:12 +00:00
github-actions[bot]
85eb3141cd
[ci] release (next) ( #2607 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-17 11:11:06 -05:00
Matthew Phillips
96609d4c9e
Static build - fixes path to HMR script ( #2606 )
...
* Static build - fixes path to HMR script
* Changeset
2022-02-17 10:35:01 -05:00
Matthew Phillips
87762410f3
Fix loading of styles in static build ( #2605 )
...
* Fix loading of styles in static build
* Adds a changeset
2022-02-17 10:32:24 -05:00
natemoo-re
b2f34862bf
[ci] yarn format
2022-02-16 23:46:41 +00:00
github-actions[bot]
8dcfc1bb15
[ci] release (next) ( #2600 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-16 17:45:49 -06:00
Nate Moore
929fae684f
chore: upgrade @astrojs/compiler
( #2599 )
2022-02-16 17:33:43 -06:00
matthewp
b238b8c248
[ci] yarn format
2022-02-16 16:33:50 +00:00
github-actions[bot]
097d7777c4
[ci] release (next) ( #2595 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-16 11:32:57 -05:00
Tony Sullivan
40c0e2b3f6
Bug fix: Order of params for routing has to match ( #2593 )
...
* make sure route params are sorted before comparing stringified keys
* including changeset for a patch release
2022-02-16 15:49:03 +00:00
matthewp
b4dcc0f8d3
[ci] yarn format
2022-02-16 15:13:06 +00:00
Matthew Phillips
102161761d
Pass children to client components even if they do not render them ( #2588 )
...
* Pass children to client components even if they do not render them
* Handle when no children are provided
* Adds a changeset
* Use roots directly i guess
* Use an attribute to signal that the template is needed
2022-02-16 10:11:54 -05:00
natemoo-re
19d548f400
[ci] yarn format
2022-02-16 14:50:05 +00:00
github-actions[bot]
ebe7f4d0ae
[ci] release (next) ( #2580 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-16 08:49:12 -06:00
Nate Moore
085468e949
chore: upgrade compiler ( #2594 )
2022-02-16 08:45:15 -06:00
Erika
41d6b39694
Move SASS to devDependencies ( #2572 )
2022-02-15 20:49:14 -05:00
matthewp
911b15588e
[ci] yarn format
2022-02-15 21:56:06 +00:00
Matthew Phillips
ec6f148fc8
Resolve relative imports from hoisted scripts (static build) ( #2581 )
...
* Resolve relative imports from hoisted scripts
* Adds a changeset
* Windows fix
* Set a longer timeout for the Lit test
* blah
* Handle windows properly
* Only if the from is astro
* Windows debugging
* This might fix it
* another try
* use only
* More debugging
* Does this work
* Final cleanup
* Update the lockfile
2022-02-15 16:55:07 -05:00
tony-sull
160c41403b
[ci] yarn format
2022-02-15 17:48:39 +00:00
Tony Sullivan
d6d35bcafc
Support non-HTML pages ( #2586 )
...
* adds support for build non-html pages
* add non-html pages to the static build test suite
* adds getStaticPaths() test for non-html pages
* adds dev server tests for non-html pages
* ading a changeset
* updating changeset description
* testing for building non-html files with async data
* fixing typo in changeset docs
2022-02-15 17:47:42 +00:00
matthewp
f84848226d
[ci] yarn format
2022-02-14 17:50:16 +00:00
Matthew Phillips
ba5e2b5e6c
Flagged SSR support ( #2548 )
...
* Checkpoint, basics are working
* Add the `--experimental-ssr` flag
* Adds the changeset
* Fixes population of getStaticPaths results
* Pass through the imported module
* Route manifest test
* Fix remaining tests
* Fix remaining tests
* Copy server assets over
* Fix types
* Allowing passing in the request to the Node version of App
* Improve the example app
* Gets CI to pass
2022-02-14 12:48:52 -05:00
matthewp
5272be3fa5
[ci] yarn format
2022-02-11 22:12:48 +00:00
github-actions[bot]
9e6f437429
[ci] release (next) ( #2573 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-11 17:12:00 -05:00
Matthew Phillips
34317bc05c
Use noExternal config on 'astro' ( #2570 )
...
* Use noExternal config on 'astro'
* Changeset
2022-02-11 16:22:16 -05:00
matthewp
ba54e014e1
[ci] yarn format
2022-02-11 15:42:45 +00:00
github-actions[bot]
b1afce896a
[ci] release (next) ( #2565 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-11 10:41:47 -05:00
tony-sull
3c682f2668
[ci] yarn format
2022-02-11 14:44:47 +00:00
Matthew Phillips
82544e4134
Fixes pageUrlFormat: 'file' in static build ( #2569 )
...
* Fixes pageUrlFormat: 'file' in static build
* Adds a changeset
2022-02-11 14:43:42 +00:00
Fred K. Schott
78319dfff0
format
2022-02-09 12:34:06 -08:00
github-actions[bot]
3e24341f17
[ci] release (next) ( #2555 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-09 13:18:10 -06:00
Nate Moore
a907a73b8c
chore: upgrade vite and renderer dependencies ( #2563 )
2022-02-09 13:01:17 -06:00
Nate Moore
1abb9ed080
Upgrade Vite to latest ( #2424 )
...
* chore: unvendor vite
* chore: upgrade vue and svelte
* feat(renderer-solid): upgrade for vite@2.7.x
* chore: update yarn.lock
* fix(solid): upgrade solid renderer for vite@2.7.x
* test: improve css test
* chore: upgrade to vite@2.8.0-beta.3
* fix: replace hacky serialization with 'serialize-javascript'
* fix: externalize serialize-javascript
* fix: explicitly add execa@6.x.x to devDependencies
* test(css): skip css?url test
* chore: update vite-plugin-svelte
* fix: ssr option
* chore: update changeset
* chore: remove changeset
* chore: add changeset
* chore: add back missing changeset
* chore: update vite
* chore: update to latest vite
* test: update proload?
* chore: update dependencies
* fix: remove preact from nanostores example
* fix: update static-build-pkg to use `.mjs` extension
* fix: exclude './server.js' from custom-elements test
* chore: remove unused file
2022-02-08 17:38:00 -06:00
github-actions[bot]
cc436b4ce8
[ci] release (next) ( #2554 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-08 16:58:42 -05:00
Matthew Phillips
e81bc3cf14
Prevent the server plugin from running during the build ( #2552 )
...
* Prevent the server plugin from running during the build
* Adds a changeset
* More all before blocks to inside of a describe()
2022-02-08 16:55:22 -05:00
Juan Martín Seery
f0952a8e5b
fix: curly braces inside Shiki ( #2545 )
2022-02-08 00:48:00 -05:00
Don Denton
c88a9951e4
Fix type FetchContentResultBase['url'] ( #2425 )
...
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2022-02-07 15:19:34 -05:00
Tony Sullivan
41b659b12e
adding test coverage for boolean and enum HTML attributes ( #2544 )
2022-02-07 15:14:26 -05:00
Nate Moore
d9ac85ea94
Improve error handling ( #2539 )
...
* feat: improve error handling
* fix: run renderer
2022-02-07 15:11:32 -05:00