Skip to content

Commit bb89144

Browse files
authored
Merge pull request #688 from primer/release-12.0.2
Release 12.0.2
2 parents 1bc39a1 + d93019e commit bb89144

File tree

17 files changed

+202
-103
lines changed

17 files changed

+202
-103
lines changed

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# 12.0.2
2+
3+
### :bug: Bug fix
4+
- Restore missing marketing padding utilities [#695](https://github.com/primer/css/pull/695)
5+
6+
### :memo: Documentation
7+
- Explain why `.tooltipped` should be used sparingly [#676](https://github.com/primer/css/pull/676)
8+
- Fix trailing slash errors in Next.js [#681](https://github.com/primer/css/pull/681)
9+
- Add static assets to Now deployments [#687](https://github.com/primer/css/pull/687)
10+
- Shiny new social and README header by @ashygee [#689](https://github.com/primer/css/pull/689)
11+
12+
### :house: Internal
13+
- Remove `postversion` script from `package.json` and update the [PR template](https://github.com/primer/css/blob/master/RELEASING.md#in-this-repo)
14+
- Rename InterUI font to "Inter", per [inter v3.3](https://github.com/rsms/inter/releases/tag/v3.3) [#696](https://github.com/primer/css/pull/696)
15+
16+
#### Committers: 2
17+
- Ash Guillaume ([ashygee](https://github.com/ashygee))
18+
- Shawn Allen ([shawnbot](https://github.com/shawnbot))
19+
120
# 12.0.1
221

322
### :bug: Bug Fix
@@ -8,13 +27,23 @@
827
### :house: Internal
928
- Add `postversion` npm script that commits `package.json` and `package-lock.json` with consistent commit messages (`chore: v<version>`)
1029

30+
#### Committers: 4
31+
- Catherine Bui ([gladwearefriends](https://github.com/gladwearefriends))
32+
- David Graham ([dgraham](https://github.com/dgraham))
33+
- Mu-An Chiou ([muan](https://github.com/muan))
34+
- Shawn Allen ([shawnbot](https://github.com/shawnbot))
35+
1136
# 12.0.0
1237

1338
:rotating_light: **Starting with version 12.0.0, the `primer` package is now known as `@primer/css`**. See [MIGRATING.md](https://github.com/primer/css/tree/master/MIGRATING.md) for more info.
1439

1540
#### :boom: Breaking Change
1641
* [#666](https://github.com/primer/css/pull/666) Reorganize into a single `@primer/css` package ([@shawnbot](https://github.com/shawnbot))
1742

43+
#### Committers: 2
44+
- Shawn Allen ([shawnbot](https://github.com/shawnbot))
45+
- Catherine Bui ([gladwearefriends](https://github.com/gladwearefriends))
46+
1847
# 11.0.0
1948

2049
#### :boom: Breaking Change

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,28 @@
1-
# Primer
2-
[![npm version](https://img.shields.io/npm/v/@primer/css.svg)](https://www.npmjs.org/package/@primer/css)
1+
<p align="center">
2+
<img width="300px" src="./static/readme.png">
3+
</p>
34

4-
Primer CSS is the Sass implementation of [Primer], the design system that powers GitHub.
5+
<h1 align="center">Primer CSS</h1>
6+
7+
<p align="center">The CSS implementation of GitHub's Primer Design System</p>
8+
9+
<p align="center">
10+
<a aria-label="npm package" href="https://www.npmjs.com/package/@primer/css">
11+
<img alt="" src="https://img.shields.io/npm/v/@primer/css.svg">
12+
</a>
13+
<a aria-label="contributors graph" href="https://github.com/primer/css/graphs/contributors">
14+
<img src="https://img.shields.io/github/contributors/primer/css.svg">
15+
</a>
16+
<a aria-label="last commit" href="https://github.com/primer/css/commits/master">
17+
<img alt="" src="https://img.shields.io/github/last-commit/primer/css.svg">
18+
</a>
19+
<a aria-label="join us in spectrum" href="https://spectrum.chat/primer">
20+
<img alt="" src="https://withspectrum.github.io/badge/badge.svg">
21+
</a>
22+
<a aria-label="license" href="https://github.com/primer/css/blob/master/LICENSE">
23+
<img src="https://img.shields.io/github/license/primer/css.svg" alt="">
24+
</a>
25+
</p>
526

627
## Migrating
728
:rotating_light: **If you currently use the `primer` or `primer-`-prefixed npm packages, please read [the migration guide](MIGRATING.md)!**

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
### Ship checklist
4141

4242
- [ ] Update `CHANGELOG.md`
43-
- [ ] Update the version in `package.json` with `npm version <version>`
43+
- [ ] Update the `version` field in `package.json` to match the release version
4444
- [ ] [Create a new release](https://github.com/primer/css/releases/new)
4545
- [ ] [Update github/github](https://github.com/primer/css/blob/master/RELEASING.md#in-githubgithub)
4646
- [ ] Create a new pull request for the next release

docs/landing/HeaderImage.svg

Lines changed: 14 additions & 14 deletions
Loading

docs/redirect.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,16 @@ export default function redirect(uri, status = 303) {
2828
}
2929
}
3030
}
31+
32+
export function redirectTrailingSlash(context, status = 301) {
33+
const {
34+
req: {url},
35+
res
36+
} = context
37+
if (url.endsWith('/')) {
38+
const withoutSlash = url.substr(0, url.length - 1)
39+
res.writeHead(status, {Location: withoutSlash})
40+
res.end()
41+
return true
42+
}
43+
}

fonts/Inter-Medium.woff

161 KB
Binary file not shown.

fonts/Inter-Regular.woff

153 KB
Binary file not shown.

fonts/Inter-UI-Medium.woff

-160 KB
Binary file not shown.

fonts/Inter-UI-Regular.woff

-151 KB
Binary file not shown.

now.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"postcss.config.js",
1212
"pages",
1313
"script",
14-
"src"
14+
"src",
15+
"static"
1516
],
1617
"scale": {
1718
"sfo": {

0 commit comments

Comments
 (0)