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