Tony Sullivan
54cd6b8dd1
Fixes a bug in how injectRoute
parses route patterns on Windows ( #3763 )
...
* always remove a leading slash in the `injectRoute` pattern
* chore: add changeset
2022-06-29 09:46:23 -05:00
Erika
40be96d7c8
Improve types for getStaticPaths, fixes dead links ( #3755 )
2022-06-29 09:43:52 -05:00
Sarah Rainsberger
aaf0cd8bfc
Added: reminder to also update docs if create-astro flow or wording is changed ( #3760 )
2022-06-29 11:10:20 -03:00
Fred K. Bot
789dc1fabc
[ci] release ( #3757 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28 11:02:59 -07:00
Fred K. Bot
b0c1ed1513
[ci] release ( #3754 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28 10:49:15 -07:00
Ben Holmes
507cd5c868
Chore: remove complex install step test ( #3756 )
...
* chore: remove complex install step test
* chore: changeset
2022-06-28 13:46:54 -04:00
Fred K. Schott
cabd9dcc80
anonymize non-git project id ( #3753 )
2022-06-28 10:29:24 -07:00
Fred K. Bot
be3c99316a
[ci] release ( #3749 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28 19:00:40 +02:00
Nate Moore
8829cc7ab6
Disable problematic create-astro
test ( #3746 )
...
* chore(test): disable problematic create-astro test
* chore: fix skip
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-28 10:24:54 -05:00
Fred K. Bot
a59a27eb0c
[ci] release ( #3733 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-28 15:11:59 +00:00
natemoo-re
27d8c351bb
[ci] format
2022-06-28 13:40:53 +00:00
Nate Moore
53bf0be280
chore(lint): fix lint issues ( #3743 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-28 08:39:10 -05:00
Fred K. Bot
768c8ed21d
[ci] update lockfile ( #3740 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-28 08:33:13 -05:00
Victor
6360f474fb
Fix Tailwind integration Typescript warning ( #3732 )
...
* Make options optional
* chore: add changeset
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-06-28 07:49:08 -05:00
bholmesdev
efd6548d49
[ci] format
2022-06-27 21:22:26 +00:00
Ben Holmes
4acd245d8f
Refactor: remove Deno shim to esbuild "banner" ( #3734 )
...
* refactor: remove Deno shim to esbuild "banner"
* refactor: move shim to const
* refactor: add shim to netlify edge
* chore: changeset
2022-06-27 17:20:28 -04:00
FredKSchott
701799c6d6
[ci] format
2022-06-27 21:17:40 +00:00
Fred K. Schott
ebd7e7ad81
update telemetry to support more anonymized project id ( #3713 )
...
* update telemetry to support more anonymized project id
* Create strange-laws-kick.md
* respond to nate feedback
2022-06-27 14:16:07 -07:00
Fred K. Schott
4d6d8644e6
SImplify "astro add" by removing confusing multi-select ( #3715 )
...
* wip
* update create-astro for new astro add
* update copy
* update git prompt
* Update packages/astro/src/core/logger/node.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/create-astro/test/install-step.test.js
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* update git prompt
* update test
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-06-27 14:15:51 -07:00
Sarah Rainsberger
0bcc969cd4
removed experimental warning from astro add command ( #3727 )
2022-06-27 13:44:32 -05:00
tony-sull
cb3fcdde6a
[ci] format
2022-06-27 18:28:16 +00:00
Tony Sullivan
79fe09fa30
Adds a prefetch integration for near-instant page navigations ( #3725 )
...
* Adds a basic @astrojs/prefetch integration
* adding tests for custom selectors
* missed in last commit
* Adding a few docs, removing the option for `selectors` to be an element array
* adding an option for the concurrency limit
* fixing test for updated integration options
* Update packages/labs/prefetch/src/client.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* nit: removing the NodeJS.Timer type to allow typescript to infer the return
* updating docs for default selector with ~=
* Skip prefetching on 2G connections, or when data saver is enabled
* refactor: moving to packages/integrations, Astro Labs TBD down the road
* README typo fix
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-06-27 18:26:21 +00:00
FredKSchott
7d0c3f9ecb
[ci] format
2022-06-27 18:12:43 +00:00
Oleksii Tymoshenko
52f75369ef
feat: better behavior for 'undefined' return values from 'serialize… ( #3723 )
...
* feat: better behavior with 'undefined' return values after 'serialize' func
* build: changeset added
2022-06-27 13:02:00 -05:00
github-actions[bot]
0ae1365533
[ci] release ( #3726 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-27 10:40:35 -04:00
matthewp
ab3aa3099b
[ci] format
2022-06-27 14:38:25 +00:00
Matthew Phillips
86635e035b
Inline define:var styles rendered after the head ( #3724 )
...
* Inline define:var styles rendered after the head
* Adds a changeset
* Remove tests that don't work with streaming
2022-06-27 10:36:41 -04:00
Matthew Phillips
c8dda94125
Revert "Inline define:var styles rendered after the head"
...
This reverts commit 65e2b71b80
.
2022-06-27 09:08:40 -04:00
unknown
65e2b71b80
Inline define:var styles rendered after the head
2022-06-27 09:07:48 -04:00
github-actions[bot]
701a3bd698
[ci] release ( #3707 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-24 17:02:11 -04:00
matthewp
f3e01f6c26
[ci] format
2022-06-24 21:00:16 +00:00
Matthew Phillips
b5e3403fa1
Simplified Response#text() implementation ( #3705 )
...
* Simplified Response#text() implementation
* Adds a changeset
* Fix tsignore
2022-06-24 16:58:14 -04:00
Matthew Phillips
b11e3b38eb
Ensure import.meta.env.SSR is true in SSR mode ( #3702 )
...
* Ensure import.meta.env.SSR is true in SSR mode
* Define in the env plugin instead
2022-06-24 16:14:00 -04:00
natemoo-re
5e716e8cd5
[ci] format
2022-06-24 20:13:12 +00:00
Nate Moore
908c2638cb
Add *private* built-in JSX renderer ( #3697 )
...
* feat: add private `addPageExtensions` hook
* feat: experimental JSX support
* chore: remove experimental.jsx option from config
* chore: remove automatic astro JSX runtime detection
* fix: throw warning when client:* directive is used but no client entrypoint is found
* feat: add slot support to renderer
* chore: remove client entrypoint from jsx renderer
* test: add barebones JSX test
* test: add frameworks-in-jsx test
* feat: improve error message when no matching import is found
* feat: support slots
* fix: do not strip `astro-slot` when using JSX renderer
* fix: handle null values in isVNode
* fix: do not transform slots for elements
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-24 15:11:17 -05:00
github-actions[bot]
67b5aa4ca4
[ci] release ( #3701 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-24 16:05:02 -04:00
Matthew Phillips
47c81effa6
Make Astro.redirect use a 302 status code ( #3700 )
...
* Make Astro.redirect use a 302 status code
* Adds a changeset
* Add a package.json
2022-06-24 15:55:06 -04:00
matthewp
69c955b2bf
[ci] format
2022-06-24 19:37:09 +00:00
Matthew Phillips
3daaf510ea
Streaming ( #3696 )
...
* Start of streaming
* New lockfile
* Base should be Uint8Arrays
* Remove the ability to throw from a component
* Add a warning when returning a Response from a non-page component
* Adds a changeset
2022-06-24 15:35:21 -04:00
Richard Cooke
0d667d0e57
fix: @astrojs/clooudflare
404 handling ( #3695 )
2022-06-24 14:30:47 -05:00
github-actions[bot]
6a6047483b
[ci] release ( #3692 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-24 12:55:36 -05:00
dperolio
fd0a24c424
fix run-on sentence ( #3699 )
2022-06-23 20:24:43 -05:00
matthewp
3dc22a2443
[ci] format
2022-06-23 19:39:58 +00:00
Matthew Phillips
fa7ed3f3a9
Remove post-rendering head injection ( #3679 )
...
* Remove post-rendering head injection
* Adds a changeset
* Use a layout component for vue
2022-06-23 15:37:55 -04:00
d-suke
446f8c4f13
Added test for dir parameter in astro:build:done. ( #3649 )
...
* Added test for dir in astro:build:done
* Added changeset
* Change pathname for Windows
* Change changeset generated file summary
* Eliminate testing of branches by os
* Eliminate OS dependence
* Change changeset generated file summary
* Using fileURLToPath
* Cross-platform fixes.
* Use posix for everything.
* Pass an empty string for relative from
* Use path.join for the correct value
* Update packages/astro/test/static-build-dir.test.js
* Update packages/astro/test/static-build-dir.test.js
* Update packages/astro/test/static-build-dir.test.js
* Remove trailing slash
* add toString
* fix syntax error
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-06-23 14:04:10 -05:00
tony-sull
e990b9f42d
[ci] format
2022-06-23 17:30:21 +00:00
Tony Sullivan
c7cb5df450
centralizing test setup with a universal resetAllFiles hook ( #3693 )
2022-06-23 17:28:54 +00:00
bholmesdev
589b840f5a
[ci] format
2022-06-23 15:33:20 +00:00
Ben Holmes
3f8ee70e2b
Fix: document sitemap + SSR use case ( #3689 )
...
* fix: offer suggestion for SSR sitemap users
* docs: add customPages to README
* chore: changeset
2022-06-23 11:31:54 -04:00
natemoo-re
059d00bd5d
[ci] format
2022-06-23 15:12:46 +00:00
Nate Moore
7373d61cdc
Enable named slots in renderers ( #3652 )
...
* feat: pass all slots to renderers
* refactor: pass `slots` as top-level props
* test: add named slot test for frameworks
* fix: nested hydration, slots that are not initially rendered
* test: add nested-recursive e2e test
* fix: render unmatched custom element children
* chore: update lockfile
* fix: unrendered slots for client:only
* fix(lit): ensure lit integration uses new slots API
* chore: add changeset
* chore: add changesets
* fix: lit slots
* feat: convert dash-case or snake_case slots to camelCase for JSX
* feat: remove tmpl special logic
* test: add slot components-in-markdown test
* refactor: prefer Object.entries.map() to for/of loop
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-23 10:10:54 -05:00
github-actions[bot]
19cd962d0b
[ci] release ( #3684 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-23 09:14:17 -04:00
matthewp
16cdfeef81
[ci] format
2022-06-23 13:05:55 +00:00
Matthew Phillips
b36ecb717e
Include partytown scripts in SSR manifest ( #3686 )
...
* Include partytown scripts in SSR manifst
* Adds a changeset
2022-06-23 09:03:43 -04:00
bholmesdev
9133a42831
[ci] format
2022-06-22 23:55:00 +00:00
Ben Holmes
3d554fdbfb
Fix: pass Astro config postcss to Svelte preprocess ( #3685 )
...
* fix: pass Astro config postcss to Svelte preprocess
* test: preset env for nested styles
* chore: changeset
2022-06-22 19:52:32 -04:00
natemoo-re
a3654a7537
[ci] format
2022-06-22 21:15:21 +00:00
Fred K. Schott
921d9a27e2
simplify a complex peer semver used by astro add ( #3633 )
...
* fix peer semver used by astro add
* Create pink-shirts-mix.md
* update with regex over `' '` split
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2022-06-22 16:13:32 -05:00
matthewp
b9f891b8a6
[ci] format
2022-06-22 16:49:59 +00:00
Matthew Phillips
9a813268db
Allow TypeScript in hoisted scripts ( #3665 )
...
* Allow TypeScript in hoisted scripts
* Pass skipSelf
* Fix linting
2022-06-22 12:47:52 -04:00
matthewp
c2dffc1c38
[ci] format
2022-06-22 16:33:56 +00:00
Matthew Phillips
85c33751c2
Allow specifying entryFileNames for client JS ( #3676 )
...
* Allow specifying entryFileNames for client JS
* Adds a changeset
2022-06-22 12:32:17 -04:00
matthewp
c97bdf1a45
[ci] format
2022-06-22 16:21:26 +00:00
github-actions[bot]
8ad146a5d7
[ci] release ( #3683 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-22 12:19:43 -04:00
matthewp
5a41ea1202
[ci] format
2022-06-22 16:04:06 +00:00
Matthew Phillips
aeab890971
Inline small hoisted scripts ( #3658 )
...
* Inline small hoisted scripts
This makes it so that small hoisted scripts get inlined into the page rather than be fetched externally.
* Ensure we don't inline when there are imports
* Fix ts
* Update tests with new url structure
* Adds a changeset
2022-06-22 12:02:42 -04:00
tony-sull
ae7415612e
[ci] format
2022-06-22 16:01:42 +00:00
Tony Sullivan
b8c6dabfb7
Enables eslint on the full repo and adds a rule for no only()
tests ( #3659 )
...
* enabling eslint on the all packages and tests
* enabling for all packages
* TEMP: adding an only() test to verify it fails CI
* using our eslint config and ignore in CI
* removing the temporary .only() test
* update lock file
* lint: fixing new test with a no-shadow warning
* chore: update lock file
2022-06-22 15:59:49 +00:00
bholmesdev
f6400e694e
[ci] format
2022-06-22 15:41:50 +00:00
Ben Holmes
df02fad13e
Add @nanostores/preact
to ALWAYS_NOEXTERNAL ( #3667 )
...
* chore: add nanostores/preact to ALWAYS_NOEXTERNAL
* chore: update comment to reference pR
* chore: changeset
2022-06-22 11:38:59 -04:00
matthewp
fc74dc4a8c
[ci] format
2022-06-22 15:37:47 +00:00
Matthew Phillips
898845402c
Include all client build artifacts in SSRManifest ( #3678 )
...
* Include all client build artifacts in SSRManifest
* Adds a changeset
2022-06-22 11:35:54 -04:00
github-actions[bot]
119283775a
[ci] release ( #3666 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-22 10:05:21 -04:00
hippotastic
ba5ad7855c
Fix react dependencies to improve test reliability ( #3673 )
...
* Fix local react tests by unifying versions
* Add missing dependencies to react tests
* Add changeset
* Fix lockfile
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-06-22 09:11:48 -04:00
hippotastic
ef6282d5d9
Fix import.meta.env
also without trailing dot ( #3675 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-06-22 08:58:20 -04:00
github-actions[bot]
b4db008e53
[ci] release ( #3664 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-21 12:47:04 -04:00
matthewp
0d3a7de527
[ci] format
2022-06-21 16:36:57 +00:00
Matthew Phillips
c20b93c484
Resolve .jsx -> .tsx in hydrated components ( #3663 )
2022-06-21 12:35:11 -04:00
github-actions[bot]
e13ce4d751
[ci] release ( #3662 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-21 11:50:06 -04:00
Matthew Phillips
2ff11df438
Add .js to imports in the sitemap package ( #3661 )
...
* Add .js to imports in the sitemap package
* Adds a smoke test
* Adds a changeset
2022-06-21 11:29:18 -04:00
Yuji Sugiura
7d4699b8f9
Check null for props serialization ( #3657 )
...
* Check null for props serialization
* Add changeset
2022-06-21 10:26:27 -05:00
github-actions[bot]
e67171252c
[ci] release ( #3615 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-06-21 09:43:19 -04:00
matthewp
948f82048b
[ci] format
2022-06-21 12:33:55 +00:00
Matthew Phillips
f5afaf2498
Support re-exporting astro components containing client components ( #3625 )
...
* Support re-exporting astro components containing client components
* Include metadata for markdown too
* Fix ssr, probably
* Inject post-build
* Remove tagName custom element test
* Allows using the constructor for lit elements
* Fix hoisted script scanning
* Pass through plugin context
* Get edge functions working in the edge tests
* Fix types for the edge function integration
* Upgrade the compiler
* Upgrade compiler version
* Better release notes for lit
* Update .changeset/unlucky-hairs-camp.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Properly test that the draft was not rendered
* Prevent from rendering draft posts
* Add a changeset about the build perf improvement.
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-06-21 08:32:05 -04:00
Nate Moore
bb02bca36c
Remove it.only ( #3655 )
...
* chore: remove it.only
* test: fix failing test
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-20 17:40:53 -05:00
natemoo-re
9532d56b50
[ci] format
2022-06-20 19:31:39 +00:00
Oleksii Tymoshenko
facfc4682f
refactor: better typings ( #3634 )
2022-06-20 14:29:53 -05:00
Nate Moore
d9f6dcf6ea
fix: properly catch falsy components ( #3650 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-20 14:14:54 -05:00
tony-sull
0519601b52
[ci] format
2022-06-20 19:10:59 +00:00
Tony Sullivan
48e67fe053
Encode ampersands in markdown code blocks ( #3630 )
...
* encode ampersands in markdown code blocks
* chore: add changeset
* nit: fixing test case description
2022-06-20 19:09:35 +00:00
natemoo-re
509b4f122f
[ci] format
2022-06-20 19:06:53 +00:00
Nate Moore
8e3e4894c9
Add private addPageExtension
hook ( #3628 )
...
* feat: add private `addPageExtensions` hook
* chore: remove renderer binding
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-20 14:05:16 -05:00
tony-sull
9502fbf4a9
[ci] format
2022-06-20 17:14:08 +00:00
Tony Sullivan
80c71c7c56
Fixes rendering of HTML comments inside markdown code blocks ( #3638 )
...
* JS comment wrappers should be removed from HTML comments in code blocks
* chore: add changeset
2022-06-20 17:12:42 +00:00
tony-sull
9b530bdece
[ci] format
2022-06-17 22:36:22 +00:00
Nate Moore
12ec35feff
docs: update incorrect example in changelog ( #3609 )
...
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-06-17 22:34:47 +00:00
hippotastic
6ab749be5c
Add component hydration in .md E2E tests, refactor ( #3610 )
...
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-06-17 22:34:19 +00:00
Tony Sullivan
56937563c3
disabling Netlify Edge Functions tests for now ( #3631 )
2022-06-17 22:12:04 +00:00
hippotastic
05aa72442c
Remove extra newlines around Markdown components ( #3620 )
2022-06-17 11:52:37 -05:00
bholmesdev
8ce5b824ab
[ci] format
2022-06-17 00:32:29 +00:00