Skip to content

Commit a99a65e

Browse files
authored
Merge branch 'main' into main
2 parents 7c6a138 + 74f04e9 commit a99a65e

29 files changed

+1724
-212
lines changed

.github/workflows/autofix.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permissions:
1414

1515
jobs:
1616
code:
17+
name: 🤖 Autofix code
1718
runs-on: ubuntu-latest
1819

1920
steps:
@@ -24,7 +25,7 @@ jobs:
2425
node-version: lts/*
2526

2627
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
27-
name: Install pnpm
28+
name: 🟧 Install pnpm
2829
with:
2930
cache: true
3031

.github/workflows/ci.yml

Lines changed: 57 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ permissions:
2121

2222
jobs:
2323
lint:
24+
name: 🔠 Lint project
2425
runs-on: ubuntu-latest
2526

2627
steps:
@@ -31,13 +32,58 @@ jobs:
3132
node-version: lts/*
3233

3334
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
34-
name: Install pnpm
35+
name: 🟧 Install pnpm
3536
# pnpm cache skipped deliberately as the project is not actually installed here
3637

3738
- name: 🔠 Lint project
3839
run: node scripts/lint.ts
3940

41+
types:
42+
name: 💪 Type check
43+
runs-on: ubuntu-latest
44+
45+
steps:
46+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
47+
48+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
49+
with:
50+
node-version: lts/*
51+
52+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
53+
name: 🟧 Install pnpm
54+
with:
55+
cache: true
56+
57+
- name: 📦 Install dependencies
58+
run: pnpm install
59+
60+
- name: 💪 Type check
61+
run: pnpm test:types
62+
63+
unit:
64+
name: 🧪 Unit tests
65+
runs-on: ubuntu-latest
66+
67+
steps:
68+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
69+
70+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
71+
with:
72+
node-version: lts/*
73+
74+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
75+
name: 🟧 Install pnpm
76+
with:
77+
cache: true
78+
79+
- name: 📦 Install dependencies
80+
run: pnpm install
81+
82+
- name: 🧪 Unit tests
83+
run: pnpm test:unit --project unit run --coverage
84+
4085
test:
86+
name: 🧪 Component tests
4187
runs-on: ubuntu-latest
4288

4389
steps:
@@ -48,7 +94,7 @@ jobs:
4894
node-version: lts/*
4995

5096
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
51-
name: Install pnpm
97+
name: 🟧 Install pnpm
5298
with:
5399
cache: true
54100

@@ -58,18 +104,16 @@ jobs:
58104
- name: 🌐 Install browser
59105
run: pnpm playwright install chromium-headless-shell
60106

61-
- name: 💪 Type check
62-
run: pnpm test:types
63-
64-
- name: 🧪 Unit and component tests
65-
run: pnpm vite test run --coverage
107+
- name: 🧪 Component tests
108+
run: pnpm vite test --project nuxt run --coverage
66109

67110
- name: Upload coverage reports to Codecov
68111
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
69112
env:
70113
CODECOV_TOKEN: 17b4bed9-d407-4ce2-9c10-2ccd4328a1d9
71114

72115
browser:
116+
name: 🖥️ Browser tests
73117
runs-on: ubuntu-latest
74118
container:
75119
image: mcr.microsoft.com/playwright:v1.58.0-noble
@@ -82,7 +126,7 @@ jobs:
82126
node-version: lts/*
83127

84128
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
85-
name: Install pnpm
129+
name: 🟧 Install pnpm
86130
with:
87131
cache: true
88132

@@ -96,6 +140,7 @@ jobs:
96140
run: pnpm test:browser:prebuilt
97141

98142
a11y:
143+
name: ♿ Accessibility audit
99144
runs-on: ubuntu-latest
100145
strategy:
101146
matrix:
@@ -109,7 +154,7 @@ jobs:
109154
node-version: lts/*
110155

111156
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
112-
name: Install pnpm
157+
name: 🟧 Install pnpm
113158
with:
114159
cache: true
115160

@@ -126,6 +171,7 @@ jobs:
126171
LIGHTHOUSE_COLOR_MODE: ${{ matrix.mode }}
127172

128173
knip:
174+
name: 🧹 Unused code check
129175
runs-on: ubuntu-latest
130176

131177
steps:
@@ -136,12 +182,12 @@ jobs:
136182
node-version: lts/*
137183

138184
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
139-
name: Install pnpm
185+
name: 🟧 Install pnpm
140186
with:
141187
cache: true
142188

143189
- name: 📦 Install dependencies
144190
run: pnpm install
145191

146-
- name: 🔍 Check for unused code
192+
- name: 🧹 Check for unused code
147193
run: pnpm knip

.github/workflows/lunaria.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717

1818
jobs:
1919
lunaria-overview:
20-
name: Generate Lunaria Overview
20+
name: 🌝 Generate Lunaria Overview
2121
runs-on: ubuntu-latest
2222

2323
steps:
@@ -33,7 +33,7 @@ jobs:
3333
node-version: lts/*
3434

3535
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
36-
name: Install pnpm
36+
name: 🟧 Install pnpm
3737
with:
3838
cache: true
3939

.github/workflows/provenance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ permissions:
2020

2121
jobs:
2222
check-provenance:
23+
name: 🔒 Check provenance downgrades
2324
runs-on: ubuntu-slim
2425
steps:
2526
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

.github/workflows/semantic-pull-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
1818
if: github.repository == 'npmx-dev/npmx.dev'
1919
runs-on: ubuntu-slim
20-
name: semantic-pr
20+
name: 🏷️ Validate PR title
2121
steps:
2222
- name: Validate PR title
2323
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1

CODE_OF_CONDUCT.md

Lines changed: 64 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,83 @@
1-
# Contributor Covenant Code of Conduct
1+
# Contributor Covenant 3.0 Code of Conduct
22

3-
## Our pledge
3+
## Our Pledge
44

5-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
5+
We pledge to make our community welcoming, safe, and equitable for all.
66

7-
## Our standards
7+
We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant.
88

9-
Examples of behavior that contributes to creating a positive environment include:
9+
## Encouraged Behaviors
1010

11-
- Using welcoming and inclusive language
12-
- Being respectful of differing viewpoints and experiences
13-
- Gracefully accepting constructive criticism
14-
- Focusing on what is best for the community
15-
- Showing empathy towards other community members
11+
While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language.
1612

17-
Examples of unacceptable behavior by participants include:
13+
With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including:
1814

19-
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
- Trolling, insulting/derogatory comments, and personal or political attacks
21-
- Public or private harassment
22-
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
- Other conduct which could reasonably be considered inappropriate in a professional setting
15+
1. Respecting the **purpose of our community**, our activities, and our ways of gathering.
16+
2. Engaging **kindly and honestly** with others.
17+
3. Respecting **different viewpoints** and experiences.
18+
4. **Taking responsibility** for our actions and contributions.
19+
5. Gracefully giving and accepting **constructive feedback**.
20+
6. Committing to **repairing harm** when it occurs.
21+
7. Behaving in other ways that promote and sustain the **well-being of our community**.
2422

25-
## Our responsibilities
23+
## Restricted Behaviors
2624

27-
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
25+
We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct.
2826

29-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
27+
1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.
28+
2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people.
29+
3. **Stereotyping or discrimination.** Characterizing anyone’s personality or behavior on the basis of immutable identities or traits.
30+
4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community.
31+
5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission.
32+
6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group.
33+
7. Behaving in other ways that **threaten the well-being** of our community.
3034

31-
## Scope
35+
### Other Restrictions
36+
37+
1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions.
38+
2. **Failing to credit sources.** Not properly crediting the sources of content you contribute.
39+
3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.
40+
4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors.
41+
42+
## Reporting an Issue
43+
44+
Tensions can occur between community members even when they are trying their best to collaborate. Not every conflict represents a code of conduct violation, and this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm.
45+
46+
When an incident does occur, it is important to report it promptly. To report a possible violation, contact the project stewards (@danielroe and @patak.dev) by DM in our community chat. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project stewards are obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
3247

33-
This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the project or its community in public spaces. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
48+
Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. They will investigate all reports of code of conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. Community Moderators will keep investigation and enforcement actions as transparent as possible while prioritizing safety and confidentiality. In order to honor these values, enforcement actions are carried out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution.
3449

35-
## Enforcement
50+
## Addressing and Repairing Harm
51+
52+
If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. Depending on the severity of a violation, lower rungs on the ladder may be skipped.
53+
54+
1. Warning
55+
1. Event: A violation involving a single incident or series of incidents.
56+
2. Consequence: A private, written warning from the Community Moderators.
57+
3. Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations.
58+
2. Temporarily Limited Activities
59+
1. Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation.
60+
2. Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members.
61+
3. Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over.
62+
3. Temporary Suspension
63+
1. Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation.
64+
2. Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions.
65+
3. Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted.
66+
4. Permanent Ban
67+
1. Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member.
68+
2. Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior.
69+
3. Repair: There is no possible repair in cases of this severity.
70+
71+
This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community.
72+
73+
## Scope
3674

37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project stewards (`@danielroe` and `@patak.dev`) by DM in our [community chat](https://chat.npmx.dev). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The stewards are obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
75+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
3876

3977
## Attribution
4078

41-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
79+
This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).
4280

43-
[homepage]: https://www.contributor-covenant.org
81+
Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/)
4482

45-
For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq
83+
For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). The enforcement ladder was inspired by the work of [Mozilla’s code of conduct team](https://github.com/mozilla/inclusion).

app/components/Package/Versions.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,18 @@ function getTagVersions(tag: string): VersionDisplay[] {
306306
:title="$t('package.versions.title')"
307307
id="versions"
308308
>
309+
<template #actions>
310+
<a
311+
:href="`https://majors.nullvoxpopuli.com/q?packages=${packageName}`"
312+
target="_blank"
313+
rel="noopener noreferrer"
314+
class="text-fg-subtle hover:text-fg transition-colors duration-200 inline-flex items-center justify-center min-w-6 min-h-6 -m-1 p-1"
315+
:title="$t('package.downloads.community_distribution')"
316+
>
317+
<span class="i-carbon:load-balancer-network w-3.5 h-3.5" aria-hidden="true" />
318+
<span class="sr-only">{{ $t('package.downloads.community_distribution') }}</span>
319+
</a>
320+
</template>
309321
<div class="space-y-0.5 min-w-0">
310322
<!-- Dist-tag rows (limited to MAX_VISIBLE_TAGS) -->
311323
<div v-for="row in visibleTagRows" :key="row.id">

app/components/Readme.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,17 @@ function handleClick(event: MouseEvent) {
432432
433433
.readme :deep(img) {
434434
max-width: 100%;
435-
height: auto;
435+
height: revert-layer;
436+
display: revert-layer;
436437
border-radius: 8px;
437438
margin: 1rem 0;
438439
}
439440
441+
.readme :deep(video) {
442+
height: revert-layer;
443+
display: revert-layer;
444+
}
445+
440446
.readme :deep(hr) {
441447
border: none;
442448
border-top: 1px solid var(--border);

0 commit comments

Comments
 (0)