Skip to content

Commit 2a98be7

Browse files
authored
Merge branch 'main' into fix-json-devtools
2 parents f7e7e3e + 7459b2a commit 2a98be7

File tree

670 files changed

+23306
-14475
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

670 files changed

+23306
-14475
lines changed

.changeset/afraid-months-mix.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/breezy-toes-help.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/changelog-github-custom.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ const changelogFunctions: ChangelogFunctions = {
1212
'Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'
1313
);
1414
}
15-
if (dependenciesUpdated.length === 0) return '';
15+
if (dependenciesUpdated.length === 0) {
16+
return '';
17+
}
1618

1719
const changesetLink = `- Updated dependencies [${(
1820
await Promise.all(
1921
changesets.map(async (cs) => {
2022
if (cs.commit) {
21-
let { links } = await getInfo({
23+
const { links } = await getInfo({
2224
repo: options.repo,
2325
commit: cs.commit,
2426
});
@@ -45,12 +47,14 @@ const changelogFunctions: ChangelogFunctions = {
4547

4648
let prFromSummary: number | undefined;
4749
let commitFromSummary: string | undefined;
48-
let usersFromSummary: string[] = [];
50+
const usersFromSummary: string[] = [];
4951

5052
const replacedChangelog = changeset.summary
5153
.replace(/^\s*(?:pr|pull|pull\s+request):\s*#?(\d+)/im, (_, pr) => {
52-
let num = Number(pr);
53-
if (!isNaN(num)) prFromSummary = num;
54+
const num = Number(pr);
55+
if (!isNaN(num)) {
56+
prFromSummary = num;
57+
}
5458
return '';
5559
})
5660
.replace(/^\s*commit:\s*([^\s]+)/im, (_, commit) => {
@@ -91,7 +95,7 @@ const changelogFunctions: ChangelogFunctions = {
9195
}
9296
const commitToFetchFrom = commitFromSummary || changeset.commit;
9397
if (commitToFetchFrom) {
94-
let { links } = await getInfo({
98+
const { links } = await getInfo({
9599
repo: options.repo,
96100
commit: commitToFetchFrom,
97101
});

.changeset/dirty-dolls-heal.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@builder.io/qwik-city': minor
3+
---
4+
5+
FEAT: Added rewrite() to the RequestEvent object. It works like redirect but does not change the URL,
6+
think of it as an internal redirect.
7+
8+
Example usage:
9+
```ts
10+
export const onRequest: RequestHandler = async ({ url, rewrite }) => {
11+
if (url.pathname.includes("/articles/the-best-article-in-the-world")) {
12+
const artistId = db.getArticleByName("the-best-article-in-the-world");
13+
14+
// Url will remain /articles/the-best-article-in-the-world, but under the hood,
15+
// will render /articles/${artistId}
16+
throw rewrite(`/articles/${artistId}`);
17+
}
18+
};
19+
```

.changeset/forty-bats-rule.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/furry-paint-spin.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/gold-colts-change.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@builder.io/qwik': patch
3+
---
4+
5+
FIX: assetsDir and debug:true will no longer break your application.

.changeset/loud-fish-walk.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/maiieul-manual-changeset-2.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/maiieul-manual-changeset.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)