Skip to content

Commit

Permalink
Merge branch 'main' into yan/fix-npm-desc
Browse files Browse the repository at this point in the history
  • Loading branch information
yanthomasdev authored Mar 9, 2023
2 parents c3bd2cb + 3f6a088 commit e3d0f0c
Show file tree
Hide file tree
Showing 446 changed files with 21,273 additions and 1,588 deletions.
5 changes: 0 additions & 5 deletions .changeset/cool-bags-mix.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/five-coats-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix images defined in content collections schemas not working
5 changes: 5 additions & 0 deletions .changeset/lemon-steaks-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/vercel': patch
---

Add back support for Astro.clientAddress
5 changes: 0 additions & 5 deletions .changeset/lovely-elephants-peel.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/lucky-shoes-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Remove use of createRequire breaking non-Node hosts.
15 changes: 15 additions & 0 deletions .changeset/popular-rules-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'@astrojs/rss': minor
---

Added `trailingSlash` option to control whether or not the emitted URLs should have trailing slashes.

```js
import rss from '@astrojs/rss';

export const get = () => rss({
trailingSlash: false
});
```

By passing `false`, the emitted links won't have trailing slashes.
5 changes: 5 additions & 0 deletions .changeset/tall-taxis-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix `@astrojs/prism` edgecase with strict package managers
5 changes: 5 additions & 0 deletions .changeset/tough-tigers-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Add default `.npmrc` file when adding the Lit integration through `astro add lit` and using `pnpm`.
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/---01-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ body:
placeholder: Mac, Windows, Linux
validations:
required: true
- type: input
id: browser
attributes:
label: What browser are you using?
placeholder: Chrome, Firefox, Safari
validations:
required: true
- type: textarea
id: bug-description
attributes:
Expand Down
Binary file added .github/assets/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
continue-on-error: true
with:
issue-number: ${{ github.event.issue.number }}
message: |
body: |
${{ needs.benchmark.outputs.PR-BENCH }}
${{ needs.benchmark.outputs.MAIN-BENCH }}
Expand Down
19 changes: 11 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,25 @@ pnpm exec changeset

### Running benchmarks

We have benchmarks to keep performance under control. You can run these by running (from the project root):
We have benchmarks to keep performance under control. They are located in the `benchmarks` directory, and it exposes a CLI you can use to run them.

You can run all available benchmarks sequentially by running (from the project root):

```shell
pnpm run benchmark --filter astro
pnpm run benchmark
```

Which will fail if the performance has regressed by **10%** or more.

To update the times cd into the `packages/astro` folder and run the following:
To run a specific benchmark only, you can add the name of the benchmark after the command:

```shell
node test/benchmark/build.bench.js --save
node test/benchmark/dev.bench.js --save
pnpm run benchmark memory
```

Which will update the build and dev benchmarks.
Use `pnpm run benchmark --help` to see all available options.

To run these benchmarks in a PR on GitHub instead of using the CLI, you can comment `!bench`. The benchmarks will run on both the PR branch and the `main` branch, and the results will be posted as a new comment.

To run only a specific benchmark on CI, add its name after the command in your comment, for example, `!bench memory`.

## Code Structure

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![The Astro logo.](assets/social/banner-minimal.png 'The Astro logo.')
![Build the web you want](.github/assets/banner.png 'Build the web you want')

<p align="center">
<br/>
Expand Down
3 changes: 0 additions & 3 deletions assets/brand/file-icon.svg

This file was deleted.

15 changes: 0 additions & 15 deletions assets/brand/icon-32.svg

This file was deleted.

Binary file removed assets/brand/logo-square-black.png
Binary file not shown.
Binary file removed assets/brand/logo-square-white.png
Binary file not shown.
22 changes: 0 additions & 22 deletions assets/brand/logo-white.svg

This file was deleted.

22 changes: 0 additions & 22 deletions assets/brand/logo.svg

This file was deleted.

Binary file removed assets/social/avatar.png
Binary file not shown.
Binary file removed assets/social/banner-minimal.png
Binary file not shown.
Loading

0 comments on commit e3d0f0c

Please sign in to comment.