Skip to content

Commit f879aff

Browse files
committed
feat: [BREAKING] v2
1 parent 09f962b commit f879aff

62 files changed

Lines changed: 3834 additions & 4844 deletions

Some content is hidden

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

.changeset/config.json

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/config@2.1.0/schema.json",
3-
"changelog": [
4-
"@changesets/changelog-github",
5-
{ "repo": "vnphanquang/postcss-color-scheme" }
6-
],
7-
"commit": false,
8-
"fixed": [],
9-
"linked": [],
10-
"access": "public",
11-
"baseBranch": "main",
12-
"updateInternalDependencies": "patch",
13-
"ignore": []
2+
"$schema": "https://unpkg.com/@changesets/config@2.1.0/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "vnphanquang/postcss-color-scheme" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch"
1410
}
15-

.changeset/itchy-hairs-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'postcss-color-scheme': major
3+
---
4+
5+
[BREAKING] drop `:global` variant to avoid ambiguity. User may use `:global` manually. In Svelte 5, for example, you can now declare a `:global` style block, e.g. `:global { .class { @color-scheme dark { /* ... */ } } }`;

.changeset/new-shrimps-type.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'postcss-color-scheme': major
3+
---
4+
5+
[BREAKING] drop `@light` and `@dark` at-rules in favor for a single coherent `@color-scheme` at-rule, i.e `@color-scheme dark { /* ... */ }` or `@color-scheme light { /* ... */ }`

.changeset/spotty-flies-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'postcss-color-scheme': major
3+
---
4+
5+
[BREAKING] drop tailwind plugin. In Tailwind V4, simply add `@import 'postcss-color-scheme/tailwind.css'` to tailwind-aware context to make `light:` and `dark:` variants available for use in markup. See [README.md](https://github.com/vnphanquang/postcss-color-scheme/blob/main/README.md) for more information

.changeset/warm-fans-remember.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'postcss-color-scheme': major
3+
---
4+
5+
[BREAKING] no longer handle nesting now that the standardized [CSS Nesting](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_nesting) has landed (leave up to other transformer to support older browser or not)

.editorconfig

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ root = true
66
charset = utf-8
77
end_of_line = lf
88
insert_final_newline = true
9-
indent_style = space
9+
indent_style = tab
1010
indent_size = 2
1111
trim_trailing_whitespace = true
12+
max_line_length = 100
13+
14+
[*.md]
15+
indent_size = 4
16+
17+
[*.yaml]
18+
indent_size = 2
19+
indent_style = space
20+

.eslintrc.cjs

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

.github/FUNDING.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: vnphanquang
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
name: changesets
1+
name: Changesets
22
on:
33
push:
44
branches:
55
- main
66
paths:
7-
- ".changeset/**"
8-
- ".github/workflows/changeset.yaml"
9-
- "package.json"
7+
- '.changeset/**'
8+
- '.github/workflows/changesets.yaml'
109
workflow_dispatch:
1110

1211
env:
@@ -15,19 +14,24 @@ env:
1514
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
1615
jobs:
1716
Version:
17+
if: github.repository == 'vnphanquang/postcss-color-scheme' # prevents this action from running on forks
18+
permissions:
19+
contents: write # to create release (changesets/action)
20+
id-token: write # OpenID Connect token needed for provenance
21+
pull-requests: write # to create pull request (changesets/action)
1822
timeout-minutes: 5
1923
runs-on: ubuntu-latest
2024
steps:
2125
- name: Checkout repository
22-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2327
with:
2428
fetch-depth: 0
2529
- name: Setup pnpm
26-
uses: pnpm/action-setup@v2
30+
uses: pnpm/action-setup@v4
2731
- name: Setup node
28-
uses: actions/setup-node@v3
32+
uses: actions/setup-node@v4
2933
with:
30-
node-version: 18
34+
node-version: 22
3135
cache: pnpm
3236
- name: Install dependencies
3337
run: pnpm install --ignore-scripts --no-frozen-lockfile
@@ -36,8 +40,8 @@ jobs:
3640
with:
3741
version: pnpm ci:version
3842
publish: pnpm ci:publish
39-
commit: "chore(release): changesets versioning & publication"
40-
title: "Changesets: Versioning & Publication"
43+
commit: 'chore(release): changesets versioning & publication'
44+
title: 'Changesets: Versioning & Publication'
4145
createGithubReleases: true
4246
env:
4347
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codecov.yaml

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

0 commit comments

Comments
 (0)