Skip to content

Commit 48938cc

Browse files
authored
Merge branch 'main' into feat/changelog-1
2 parents c51b977 + 13ac6c2 commit 48938cc

26 files changed

Lines changed: 3934 additions & 3709 deletions

File tree

.env.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#secure password, can use openssl rand -hex 32
1+
# secure password, can use `openssl rand -hex 32`
22
NUXT_SESSION_PASSWORD=""
33

4-
#HMAC secret for image-proxy and OG image URL signing, can use openssl rand -hex 32
5-
NUXT_IMAGE_PROXY_SECRET=""
4+
# HMAC secret for image-proxy and OG image URL signing, can use `openssl rand -hex 32`
5+
NUXT_IMAGE_PROXY_SECRET=""

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ jobs:
114114
steps:
115115
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
116116

117+
- name: 👑 Fix Git ownership
118+
run: git config --global --add safe.directory /__w/npmx.dev/npmx.dev
119+
117120
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
118121
with:
119122
node-version: lts/*

.github/workflows/close-stale.yml

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

.github/workflows/stale.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Stale Issues and PRs
2+
3+
on:
4+
schedule:
5+
# Run daily at 2 AM UTC
6+
- cron: '0 2 * * *'
7+
workflow_dispatch: # Allow manual trigger
8+
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
13+
jobs:
14+
stale-bugs:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f
18+
with:
19+
days-before-issue-stale: 30
20+
days-before-issue-close: 7
21+
days-before-pr-stale: -1
22+
days-before-pr-close: -1
23+
remove-stale-when-updated: true
24+
only-issue-types: 'bug'
25+
stale-issue-label: 'stale'
26+
close-issue-label: 'stale'
27+
operations-per-run: 500
28+
29+
stale-prs:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f
33+
with:
34+
days-before-issue-stale: -1
35+
days-before-issue-close: -1
36+
days-before-pr-stale: 30
37+
days-before-pr-close: 7
38+
remove-stale-when-updated: true
39+
stale-pr-label: 'stale'
40+
close-pr-label: 'stale'
41+
operations-per-run: 500

.nuxtrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
setups.@nuxt/test-utils="4.0.0"
1+
setups.@nuxt/test-utils="4.0.2"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Ideally, extract utilities into separate files so they can be unit tested. 🙏
348348

349349
### Internal linking
350350

351-
Always use **object syntax with named routes** for internal navigation. This makes links resilient to URL structure changes and provides type safety via `unplugin-vue-router`.
351+
Always use **object syntax with named routes** for internal navigation. This makes links resilient to URL structure changes and provides type safety with the [typedPages Nuxt option](https://nuxt.com/docs/4.x/guide/going-further/experimental-features#typedpages).
352352

353353
```vue
354354
<!-- Good: named route -->

app/composables/npm/useAlgoliaSearch.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ interface AlgoliaHit {
5050
deprecated: boolean | string
5151
isDeprecated: boolean
5252
license: string | null
53+
isSecurityHeld: boolean
5354
}
5455

5556
const ATTRIBUTES_TO_RETRIEVE = [
@@ -67,6 +68,7 @@ const ATTRIBUTES_TO_RETRIEVE = [
6768
'deprecated',
6869
'isDeprecated',
6970
'license',
71+
'isSecurityHeld',
7072
]
7173

7274
const EXISTENCE_CHECK_ATTRS = ['name']
@@ -90,6 +92,7 @@ function hitToSearchResult(hit: AlgoliaHit): NpmSearchResult {
9092
email: owner.email,
9193
}))
9294
: [],
95+
isSecurityHeld: hit.isSecurityHeld,
9396
},
9497
searchScore: 0,
9598
downloads: {

app/composables/useConnector.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export const useConnector = createSharedComposable(function useConnector() {
7878
const route = useRoute()
7979
const router = useRouter()
8080

81-
onMounted(() => {
81+
// onNuxtReady is post-hydration, so `route.query` is populated even if the page was prerendered
82+
onNuxtReady(() => {
8283
const urlToken = route.query.token as string | undefined
8384
const urlPort = route.query.port as string | undefined
8485

0 commit comments

Comments
 (0)