Commit graph

856 commits

Author SHA1 Message Date
Nate Moore
618a16f59d
Deprecate unescaped HTML inside of expressions (#2489)
* feat: implement automatic escaping

* feat: deprecate automatic escaping

* fix: cast unescapeHTML as string

* fix: slot fallback behavior

* fix: unescaped content

* Update escape.ts

* Update escape.ts

* feat: update internal components to use `set:html`

* chore: update compiler

* chore: update changeset
2022-01-31 16:13:22 -06:00
Matthew Phillips
3d2c184962
Fix define:vars in the static build flag (#2511)
* Fix define:vars in the static build flag

* Adds a changeset

* linting
2022-01-31 16:56:14 -05:00
Jonathan Neal
187d5128af
Fix issue rendering content within HTMLElement (#2506) 2022-01-31 16:50:55 -05:00
matthewp
de9ab4f306 [ci] yarn format 2022-01-31 21:30:29 +00:00
Fred K. Schott
f3dafd33e7
Fix a regression in vite.build() base option (#2502)
* Fixes subpath bugs

* Remove trailing slash appending

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-01-31 16:27:59 -05:00
matthewp
11841d17b7 [ci] yarn format 2022-01-31 21:12:35 +00:00
Astroalex
95b9740431
Add Astro.resolve deprecation warning case for script tags (#2493)
* Adding script.ts util for checking scripts files path

* Adding deprecation message `Astro.resolve()` case for scripts files with suggestions
2022-01-31 16:11:22 -05:00
Fred K. Schott
de9fadbaed
refactor the route cache and other build internals (#2503)
* refactor dev to use vite server

* refactor the route cache and other build internals

* use debug package for debug logs (#2504)

Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2022-01-31 15:05:42 -05:00
Fred K. Schott
d7149f9b2f
refactor dev to use vite server (#2494) 2022-01-31 14:44:40 -05:00
jonathantneal
ff8e18d2ff [ci] yarn format 2022-01-29 01:31:04 +00:00
Fred K. Schott
c9bb1147cb
[MINOR] standardize trailing subpath, fix fetchContent url issue (#2471)
* standardize trailing subpath, and fix fetchcontent issue

* debug windows ci

* improve ci test

* fix windows test issue?

* fix only usage

* end debugging
2022-01-28 20:29:53 -05:00
Matthew Phillips
6bd165f84c
Handle project folders containing a space in the static build (#2486)
* Handle project folders containing a space

* Adds a changeset

* Bump the test package version

* Use server relative paths as entries

* Fix windows

* A hoisted fix

* Correctly handle facadeIds on windows
2022-01-28 20:29:28 -05:00
jonathantneal
b3e0b80ab6 [ci] yarn format 2022-01-29 01:07:23 +00:00
github-actions[bot]
1cac6c974a
[ci] release (#2482)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-28 20:06:07 -05:00
Rafid Muhymin Wafi
dac0692631
Changed vite.build target to esnext (#2487) 2022-01-28 19:56:47 -05:00
jonathantneal
8844bdb920 [ci] yarn format 2022-01-28 23:21:43 +00:00
Jonathan Neal
9f27941b4f
Render Custom Element Tag (#2473)
* Support rendering web components

* nit: remove addition of script
2022-01-28 18:19:55 -05:00
matthewp
0a112e1f56 [ci] yarn format 2022-01-28 22:11:55 +00:00
Matthew Phillips
69d5b70900
Fix use of preprocessors with the static build (#2490)
* Fix use of preprocessors with the static build

* Adds a changeset
2022-01-28 17:10:52 -05:00
natemoo-re
d97d61ec45 [ci] yarn format 2022-01-28 02:38:13 +00:00
Nate Moore
005751a920
Add escapeHTML to astro/internal (#2479)
* feat: add escapeHTML to astro/internal

* Update packages/astro/src/runtime/server/escape.ts

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>

* Update escape.ts

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2022-01-27 20:36:47 -06:00
matthewp
ebaa3f0934 [ci] yarn format 2022-01-27 16:41:21 +00:00
github-actions[bot]
10db1ca75e
[ci] release (#2454)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-27 11:40:08 -05:00
Fred K. Schott
b088d81070
add a new test:match command script (#2470) 2022-01-26 22:05:03 -08:00
Fred K. Schott
c70c4ea211
clean up config loading and flag merging (#2469) 2022-01-25 15:07:51 -08:00
Jonathan Neal
a764264d29
Remove node-fetch (#2462)
* remove node-fetch

* use webapi polyfill like astro
2022-01-25 11:37:06 -05:00
Evan Boehs
894b66e32f
Update package.json (#2463) 2022-01-25 09:54:06 -05:00
Jonathan Neal
4c4c801378
Remove vite-plugin-fetch (#2460)
This plugin is not used in the project
2022-01-25 09:49:17 -05:00
Jonathan Neal
9a0c76a4a5
run lit test separately to prevent error (#2446)
* Run strict tests

* run tests as before without `lit-element.test.js`

* update tests to run lit-element separately

* restore parallel run
2022-01-25 09:21:14 -05:00
Matthew Phillips
462e315956
Fix HMR in static build + @import HMR (#2440)
* Fix HMR in static build + @import HMR

* Changeset

* Add a comment on what cleanUrl is doing

* Running prettier

* Improve comments on how the static build compilation

works differently.
2022-01-24 12:58:10 -05:00
Anima
1d95ff58d9
Set channel link in rss.xml to site index (#2450)
* Set channel link in rss.xml to site index

This is the RSS 2.0 spec and fixes issue with pretty-feed-v3 "View Website" link pointing back to the feed

* tests: edited rss gen test
2022-01-24 11:19:36 -05:00
matthewp
ef85fcc7ab [ci] yarn format 2022-01-24 14:40:29 +00:00
github-actions[bot]
3059cc8e39
[ci] release (#2437)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-24 09:39:26 -05:00
Matthew Phillips
dfe1f8b4e7
Pass user's viteConfig.ssr to the build (#2442)
* Pass user's viteConfig.ssr to the build

* Changeset
2022-01-24 08:55:26 -05:00
natemoo-re
72ac198eb0 [ci] yarn format 2022-01-21 22:40:03 +00:00
Nate Moore
ed0b46f96f
Fix pre-generated RSS URLs (#2443)
* Allow pre-generated urls to be passed in rss feeds

* Fix variable name

* Add isValidURL helper function

* Remove scary RegEx and tidy up code

* add test for using pregenerated urls

* fix: allow rss to be called multiple times

* test: normalize rss feed in test

* chore: add changeset

Co-authored-by: Zade Viggers <74938858+zadeviggers@users.noreply.github.com>
Co-authored-by: zadeviggers <zade.viggers@gmail.com>
2022-01-21 16:38:48 -06:00
Chris Swithinbank
ebe414f05b
Resolve sitemap URLs in relation to full site path (#2423)
* Resolve sitemap URLs in relation to full site path

Fixes #2422

* Test generated sitemap contains base directory in URLs

* Add changeset

* test: Add `clean` helper to loaded fixture API

Adds a method that when called will remove the loaded fixture’s dist directory using `rimraf`.

* test: Clean up between sitemap/RSS tests

* See if letting rimraf retry more helps…

* Add logging to double check nothing’s running in parallel

* Remove logging & double check clean up actually succeeds

* Try using basic Node.js to clean up dist

* Remove logging/checks

* Remove stray unnecessary `async` keyword
2022-01-20 19:27:47 -05:00
jonathantneal
a32eee3900 [ci] yarn format 2022-01-21 00:24:33 +00:00
github-actions[bot]
4c802e25a0
[ci] release (#2433)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-20 19:23:30 -05:00
jonathantneal
f5adc023b2 [ci] yarn format 2022-01-21 00:14:18 +00:00
Matthew Phillips
f2b8372c0c
Supports hoisted scripts in the static build (#2414)
* Supports hoisted scripts in the static build

* Adds a changeset

* Update packages/astro/src/core/build/internal.ts

Co-authored-by: Evan Boehs <evan@boehs.org>

* Update based on feedback

* Fix lint

* Fix getting hoist script for Windows

* Try with the pre compiler

* use compiler 0.8.2

* update compiler version

* update yarn.lock

Co-authored-by: Evan Boehs <evan@boehs.org>
2022-01-20 19:13:05 -05:00
Mikkel Tønder
fda857eb22
Add a verbose flag to create-astro (#2429)
* Add verbose logging to create-astro

* Tell user to use the verbose flag when encountering the MISSING_REF error

* Create changeset

* Add information in README

* Format

* Use switch statement instead of if and if else blocks

* Update packages/create-astro/src/logger.ts

Make if statement easier to read

Co-authored-by: Evan Boehs <evan@boehs.org>

Co-authored-by: Evan Boehs <evan@boehs.org>
2022-01-20 19:00:22 -05:00
Matthew Phillips
9e1bc1752f
Upgrade compiler to latest (#2432)
* Upgrade compiler to latest

* Updates the changeset
2022-01-20 15:37:09 -05:00
jonathantneal
d1b8fa9b04 [ci] yarn format 2022-01-20 15:05:35 +00:00
github-actions[bot]
e3731e5fa8
[ci] release (#2430)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-20 10:04:29 -05:00
Matthew Phillips
3ad236ba01
Pin to the compiler 0.8.1 (#2428)
* Pin to the compiler 0.8.1

* Changeset
2022-01-20 09:49:33 -05:00
jonathantneal
97ebc82fa9 [ci] yarn format 2022-01-20 03:13:50 +00:00
github-actions[bot]
5d79bd7e93
[ci] release (#2420)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-19 22:12:32 -05:00
jonathantneal
18bb39f0d4 [ci] yarn format 2022-01-19 20:36:00 +00:00
Nate Moore
85ad1aab67
feat: add support for styled RSS feeds (#2371) 2022-01-19 15:34:52 -05:00