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
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
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
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
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
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
Juan Martín Seery
dd9ffc317f
chore: pnpm v7 ( #3259 )
2022-05-03 10:31:16 -03: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
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
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
Fred K. Schott
465b3a7970
Update example tsconfig ( #3107 )
2022-04-28 11:42:55 -04: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
Ben Holmes
8f2f4de5dc
Feat: new just the basics template ( #3206 )
...
* feat: new just-the-basics example
* chore: update package name
* chore: update lockfile
* refactor: simplify meta tags
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* refactor: use `system-ui` for base font
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update examples/just-the-basics/src/components/Layout.astro
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* refactor: just-the-basics -> basics (now 10% more basic!)
* refactor: add type checking to layout prop
* nit: change "astro-text" to "text-gradient"
* refactor: simplify CSS grid
* feat: make transition easing 10% fancier
* change to text gradient because people gooootta have opinions huh
* nit: rename CSS class to "instructions"
* refactor: use ul > li for containers
* chore: update lockfile
* feat: style tweaks
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-26 20:37:58 -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
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
Juan Martín Seery
18762d6a0a
Fix lockfile ( #3210 )
2022-04-26 14:48:42 -05: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
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
bd76716c88
[ci] update lockfile ( #3162 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-22 10:04:01 -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
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
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
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
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
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
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
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
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
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
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
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
Chris Swithinbank
9e35758ec3
Roll back to React 17 in docs template ( #3129 )
...
The docs example template includes Algolia’s Docsearch components to provide a search bar but this doesn’t support React 18 yet, so will error when dependencies are being installed.
See https://discord.com/channels/830184174198718474/965413318678425600
2022-04-18 10:09:57 -04: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
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