fontsource-open-sans
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-open-sans", | ||
"version": "3.1.5", | ||
"version": "4.0.0", | ||
"description": "Open Sans font in NPM glory.", | ||
@@ -22,3 +22,3 @@ "main": "index.css", | ||
}, | ||
"gitHead": "336b04a5956523a4bdc78092c74823738ea96289" | ||
"gitHead": "4acbfd49f3dd8e848272c620e200751dbbb5b857" | ||
} |
# Fontsource Open Sans | ||
[](https://www.npmjs.com/package/fontsource-open-sans) [](https://github.com/fontsource/fontsource) [](https://github.com/fontsource/fontsource) [](https://github.com/fontsource/fontsource) [](https://github.com/fontsource/fontsource/stargazers) | ||
[](https://www.npmjs.com/package/@fontsource/open-sans) [](https://github.com/fontsource/fontsource) [](https://github.com/fontsource/fontsource) [](https://github.com/fontsource/fontsource) [](https://github.com/fontsource/fontsource/stargazers) | ||
@@ -12,3 +12,3 @@ The CSS and web font files to easily self-host the “Open Sans” font. Please visit the main [Fontsource monorepo](https://github.com/fontsource/fontsource) to view more details on this package. | ||
```javascript | ||
yarn add fontsource-open-sans // npm install fontsource-open-sans | ||
yarn add @fontsource/open-sans // npm install @fontsource/open-sans | ||
``` | ||
@@ -19,3 +19,3 @@ | ||
```javascript | ||
import "fontsource-open-sans" // Defaults to weight 400 with all styles included. | ||
import "@fontsource/open-sans" // Defaults to weight 400. | ||
``` | ||
@@ -26,4 +26,4 @@ | ||
```javascript | ||
import "fontsource-open-sans/500.css" // All styles included. | ||
import "fontsource-open-sans/900-normal.css" // Select either normal or italic. | ||
import "@fontsource/open-sans/500.css" // Weight 500. | ||
import "@fontsource/open-sans/900-italic.css" // Italic variant. | ||
``` | ||
@@ -34,4 +34,4 @@ | ||
```scss | ||
@import "~fontsource-open-sans/index.css"; | ||
@import "~fontsource-open-sans/300-italic.css"; | ||
@import "~@fontsource/open-sans/index.css"; // Weight 400. | ||
@import "~@fontsource/open-sans/300-italic.css"; | ||
``` | ||
@@ -59,5 +59,5 @@ | ||
```javascript | ||
import "fontsource-open-sans/latin-ext.css" // All weights and styles included. | ||
import "fontsource-open-sans/cyrillic-ext-500.css" // All styles included. | ||
import "fontsource-open-sans/greek-900-normal.css" // Select either normal or italic. | ||
import "@fontsource/open-sans/latin-ext.css" // All weights with normal style included. | ||
import "@fontsource/open-sans/cyrillic-ext-500.css" // Weight 500 with normal style. | ||
import "@fontsource/open-sans/greek-900-normal.css" // Italic variant. | ||
``` | ||
@@ -64,0 +64,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
3055959
243
1975
1