Skip to content

Commit

Permalink
Merge pull request #688 from primer/release-12.0.2
Browse files Browse the repository at this point in the history
Release 12.0.2
  • Loading branch information
shawnbot committed Feb 28, 2019
2 parents 1bc39a1 + d93019e commit bb89144
Show file tree
Hide file tree
Showing 17 changed files with 202 additions and 103 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,22 @@
# 12.0.2

### :bug: Bug fix
- Restore missing marketing padding utilities [#695](https://github.com/primer/css/pull/695)

### :memo: Documentation
- Explain why `.tooltipped` should be used sparingly [#676](https://github.com/primer/css/pull/676)
- Fix trailing slash errors in Next.js [#681](https://github.com/primer/css/pull/681)
- Add static assets to Now deployments [#687](https://github.com/primer/css/pull/687)
- Shiny new social and README header by @ashygee [#689](https://github.com/primer/css/pull/689)

### :house: Internal
- Remove `postversion` script from `package.json` and update the [PR template](https://github.com/primer/css/blob/master/RELEASING.md#in-this-repo)
- 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)

#### Committers: 2
- Ash Guillaume ([ashygee](https://github.com/ashygee))
- Shawn Allen ([shawnbot](https://github.com/shawnbot))

# 12.0.1

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

#### Committers: 4
- Catherine Bui ([gladwearefriends](https://github.com/gladwearefriends))
- David Graham ([dgraham](https://github.com/dgraham))
- Mu-An Chiou ([muan](https://github.com/muan))
- Shawn Allen ([shawnbot](https://github.com/shawnbot))

# 12.0.0

: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.

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

#### Committers: 2
- Shawn Allen ([shawnbot](https://github.com/shawnbot))
- Catherine Bui ([gladwearefriends](https://github.com/gladwearefriends))

# 11.0.0

#### :boom: Breaking Change
Expand Down
27 changes: 24 additions & 3 deletions README.md
@@ -1,7 +1,28 @@
# Primer
[![npm version](https://img.shields.io/npm/v/@primer/css.svg)](https://www.npmjs.org/package/@primer/css)
<p align="center">
<img width="300px" src="./static/readme.png">
</p>

Primer CSS is the Sass implementation of [Primer], the design system that powers GitHub.
<h1 align="center">Primer CSS</h1>

<p align="center">The CSS implementation of GitHub's Primer Design System</p>

<p align="center">
<a aria-label="npm package" href="https://www.npmjs.com/package/@primer/css">
<img alt="" src="https://img.shields.io/npm/v/@primer/css.svg">
</a>
<a aria-label="contributors graph" href="https://github.com/primer/css/graphs/contributors">
<img src="https://img.shields.io/github/contributors/primer/css.svg">
</a>
<a aria-label="last commit" href="https://github.com/primer/css/commits/master">
<img alt="" src="https://img.shields.io/github/last-commit/primer/css.svg">
</a>
<a aria-label="join us in spectrum" href="https://spectrum.chat/primer">
<img alt="" src="https://withspectrum.github.io/badge/badge.svg">
</a>
<a aria-label="license" href="https://github.com/primer/css/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/primer/css.svg" alt="">
</a>
</p>

## Migrating
:rotating_light: **If you currently use the `primer` or `primer-`-prefixed npm packages, please read [the migration guide](MIGRATING.md)!**
Expand Down
2 changes: 1 addition & 1 deletion RELEASING.md
Expand Up @@ -40,7 +40,7 @@
### Ship checklist

- [ ] Update `CHANGELOG.md`
- [ ] Update the version in `package.json` with `npm version <version>`
- [ ] Update the `version` field in `package.json` to match the release version
- [ ] [Create a new release](https://github.com/primer/css/releases/new)
- [ ] [Update github/github](https://github.com/primer/css/blob/master/RELEASING.md#in-githubgithub)
- [ ] Create a new pull request for the next release
Expand Down
28 changes: 14 additions & 14 deletions docs/landing/HeaderImage.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions docs/redirect.js
Expand Up @@ -28,3 +28,16 @@ export default function redirect(uri, status = 303) {
}
}
}

export function redirectTrailingSlash(context, status = 301) {
const {
req: {url},
res
} = context
if (url.endsWith('/')) {
const withoutSlash = url.substr(0, url.length - 1)
res.writeHead(status, {Location: withoutSlash})
res.end()
return true
}
}
Binary file added fonts/Inter-Medium.woff
Binary file not shown.
Binary file added fonts/Inter-Regular.woff
Binary file not shown.
Binary file removed fonts/Inter-UI-Medium.woff
Binary file not shown.
Binary file removed fonts/Inter-UI-Regular.woff
Binary file not shown.
3 changes: 2 additions & 1 deletion now.json
Expand Up @@ -11,7 +11,8 @@
"postcss.config.js",
"pages",
"script",
"src"
"src",
"static"
],
"scale": {
"sfo": {
Expand Down

0 comments on commit bb89144

Please sign in to comment.