Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 12.0.2 #688

Merged
merged 31 commits into from
Feb 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0e97ea6
Explain why .tooltipped should be used sparingly
muan Feb 13, 2019
df00424
Apply suggested copy changes
dgraham Feb 14, 2019
b2048cf
docs: add redirectTrailingSlash helper
shawnbot Feb 19, 2019
3da7c50
docs: add custom _error page w/trailing slash fix
shawnbot Feb 19, 2019
0988e6e
chore: lint
shawnbot Feb 19, 2019
1f89295
docs: do one thing well in redirectTrailingSlash()
shawnbot Feb 19, 2019
5bed002
docs: get props the right way in error handler
shawnbot Feb 19, 2019
ed34ad1
chore: lint
shawnbot Feb 19, 2019
96fc429
add comment to rebuild for Now timeout
shawnbot Feb 19, 2019
efefc3c
deps: bump to @primer/components@10.0.1, sc@4.1.2
shawnbot Feb 19, 2019
80197c7
docs(error): add default statusCode (500)
shawnbot Feb 19, 2019
cdda740
docs: add static/ to "files" in now.json
shawnbot Feb 21, 2019
6b87688
Merge branch 'fix-trailing-slash' into release-12.0.2
shawnbot Feb 21, 2019
2808122
internal: remove postversion script, update release docs
shawnbot Feb 21, 2019
aefa90d
chore: v12.0.2
shawnbot Feb 21, 2019
3dd48ca
Merge remote-tracking branch 'origin/master' into tooltip
shawnbot Feb 21, 2019
91649d4
Merge pull request #676 from primer/tooltip
shawnbot Feb 21, 2019
4d8a533
new header image! :tada:
shawnbot Feb 21, 2019
f4d2cba
docs: make the README flashy, like Components’
shawnbot Feb 21, 2019
7924798
docs: add static/readme.png
shawnbot Feb 21, 2019
75b5cbe
updated README image with current version
ashygee Feb 21, 2019
045941a
Merge pull request #689 from primer/image-updates
shawnbot Feb 21, 2019
ced8730
chore: 12.0.2 changelog
shawnbot Feb 22, 2019
c2bef41
fix(marketing/utilities): add back padding utils
shawnbot Feb 27, 2019
472b2c5
Merge pull request #695 from primer/fix-marketing-utilities
shawnbot Feb 27, 2019
c57c920
update InterUI name to Inter, and update font files
gladwearefriends Feb 27, 2019
562bdf5
Merge branch 'master' into release-12.0.2
shawnbot Feb 27, 2019
ebcb391
Merge remote-tracking branch 'origin/release-12.0.2' into update-inte…
shawnbot Feb 27, 2019
e02c187
chore: update 12.0.2 changelog again
shawnbot Feb 27, 2019
5991168
Merge pull request #696 from primer/update-inter-font
shawnbot Feb 27, 2019
d93019e
chore: bump @primer/components to 11.0.0
shawnbot Feb 27, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Loading
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"postcss.config.js",
"pages",
"script",
"src"
"src",
"static"
],
"scale": {
"sfo": {
Expand Down
Loading