fontsource-forum
Advanced tools
Comparing version 3.1.5 to 4.0.0
@@ -13,2 +13,18 @@ # Changelog | ||
# 4.x Release | ||
## 4.0.x | ||
### BREAKING CHANGES | ||
- Package names have been renamed from `fontsource-<font name>` to the safer, more authentic scoped format `@fontsource/<font name>`. | ||
That means all packages will need to be reinstalled with `yarn add @fontsource/<font name>` or `npm install @fontsource/<font name>` with imports updated to the new package such as `import @fontsource/open-sans/400-italic.css`. [#108](https://github.com/fontsource/fontsource/issues/108) | ||
- `import @fontsource/<font name>/<weight>` now only contains normal style variants of fonts. The `-normal.css` files throughout the respository have been removed. Importing italic variants remain the same via `import @fontsource/<font name>/<weight>-italic.css`. | ||
Please see [#88](https://github.com/fontsource/fontsource/issues/88) for more details. [#112](https://github.com/fontsource/fontsource/pull/112) | ||
### Features | ||
- All non-Google fonts now have weight specific files that match 3.0.x as they previously were only importable via subsets. Simply use as normal with `import @fontsource/<font name>/<weight>.css`. [#92](https://github.com/fontsource/fontsource/issues/92) [#115](https://github.com/fontsource/fontsource/pull/115) | ||
# 3.x Release | ||
@@ -22,2 +38,7 @@ | ||
### Fixes | ||
- Resolve incorrect filename generation for oblique/slnt variable fonts. [#106](https://github.com/fontsource/fontsource/pull/106) [#109](https://github.com/fontsource/fontsource/pull/109) | ||
- Prevent full variant variable CSS files to be generated for fonts that do not have any extra axes. [#110](https://github.com/fontsource/fontsource/pull/110) | ||
## 3.0.x | ||
@@ -24,0 +45,0 @@ |
{ | ||
"name": "fontsource-forum", | ||
"version": "3.1.5", | ||
"version": "4.0.0", | ||
"description": "Forum font in NPM glory.", | ||
@@ -22,3 +22,3 @@ "main": "index.css", | ||
}, | ||
"gitHead": "336b04a5956523a4bdc78092c74823738ea96289" | ||
"gitHead": "90b8dbed49e02f2524c7817c282459c300e78279" | ||
} |
# Fontsource Forum | ||
[![npm version](https://badge.fury.io/js/fontsource-forum.svg)](https://www.npmjs.com/package/fontsource-forum) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/fontsource-forum)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/fontsource-forum)](https://github.com/fontsource/fontsource) [![GitHub stars](https://img.shields.io/github/stars/DecliningLotus/fontsource.svg?style=social&label=Star)](https://github.com/fontsource/fontsource/stargazers) | ||
[![npm (scoped)](https://img.shields.io/npm/v/@fontsource/forum?color=brightgreen)](https://www.npmjs.com/package/@fontsource/forum) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource/forum)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource/forum)](https://github.com/fontsource/fontsource) [![GitHub stars](https://img.shields.io/github/stars/fontsource/fontsource.svg?style=social&label=Star)](https://github.com/fontsource/fontsource/stargazers) | ||
@@ -12,3 +12,3 @@ The CSS and web font files to easily self-host the “Forum” font. Please visit the main [Fontsource monorepo](https://github.com/fontsource/fontsource) to view more details on this package. | ||
```javascript | ||
yarn add fontsource-forum // npm install fontsource-forum | ||
yarn add @fontsource/forum // npm install @fontsource/forum | ||
``` | ||
@@ -19,3 +19,3 @@ | ||
```javascript | ||
import "fontsource-forum" // Defaults to weight 400 with all styles included. | ||
import "@fontsource/forum" // Defaults to weight 400. | ||
``` | ||
@@ -26,4 +26,4 @@ | ||
```javascript | ||
import "fontsource-forum/500.css" // All styles included. | ||
import "fontsource-forum/900-normal.css" // Select either normal or italic. | ||
import "@fontsource/forum/500.css" // Weight 500. | ||
import "@fontsource/forum/900-italic.css" // Italic variant. | ||
``` | ||
@@ -34,4 +34,4 @@ | ||
```scss | ||
@import "~fontsource-forum/index.css"; | ||
@import "~fontsource-forum/300-italic.css"; | ||
@import "~@fontsource/forum/index.css"; // Weight 400. | ||
@import "~@fontsource/forum/300-italic.css"; | ||
``` | ||
@@ -59,5 +59,5 @@ | ||
```javascript | ||
import "fontsource-forum/latin-ext.css" // All weights and styles included. | ||
import "fontsource-forum/cyrillic-ext-500.css" // All styles included. | ||
import "fontsource-forum/greek-900-normal.css" // Select either normal or italic. | ||
import "@fontsource/forum/latin-ext.css" // All weights with normal style included. | ||
import "@fontsource/forum/cyrillic-ext-500.css" // Weight 500 with normal style. | ||
import "@fontsource/forum/greek-900-normal.css" // Italic variant. | ||
``` | ||
@@ -64,0 +64,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
386837
24
174