Socket
Socket
Sign inDemoInstall

fontsource-source-code-pro

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.5 to 4.0.0

21

CHANGELOG.md

@@ -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 @@

4

package.json
{
"name": "fontsource-source-code-pro",
"version": "3.1.5",
"version": "4.0.0",
"description": "Source Code Pro font in NPM glory.",

@@ -22,3 +22,3 @@ "main": "index.css",

},
"gitHead": "336b04a5956523a4bdc78092c74823738ea96289"
"gitHead": "4acbfd49f3dd8e848272c620e200751dbbb5b857"
}
# Fontsource Source Code Pro
[![npm version](https://badge.fury.io/js/fontsource-source-code-pro.svg)](https://www.npmjs.com/package/fontsource-source-code-pro) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/fontsource-source-code-pro)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/fontsource-source-code-pro)](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/source-code-pro?color=brightgreen)](https://www.npmjs.com/package/@fontsource/source-code-pro) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource/source-code-pro)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource/source-code-pro)](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 “Source Code Pro” font. Please visit the main [Fontsource monorepo](https://github.com/fontsource/fontsource) to view more details on this package.

```javascript
yarn add fontsource-source-code-pro // npm install fontsource-source-code-pro
yarn add @fontsource/source-code-pro // npm install @fontsource/source-code-pro
```

@@ -19,3 +19,3 @@

```javascript
import "fontsource-source-code-pro" // Defaults to weight 400 with all styles included.
import "@fontsource/source-code-pro" // Defaults to weight 400.
```

@@ -26,4 +26,4 @@

```javascript
import "fontsource-source-code-pro/500.css" // All styles included.
import "fontsource-source-code-pro/900-normal.css" // Select either normal or italic.
import "@fontsource/source-code-pro/500.css" // Weight 500.
import "@fontsource/source-code-pro/900-italic.css" // Italic variant.
```

@@ -34,4 +34,4 @@

```scss
@import "~fontsource-source-code-pro/index.css";
@import "~fontsource-source-code-pro/300-italic.css";
@import "~@fontsource/source-code-pro/index.css"; // Weight 400.
@import "~@fontsource/source-code-pro/300-italic.css";
```

@@ -59,5 +59,5 @@

```javascript
import "fontsource-source-code-pro/latin-ext.css" // All weights and styles included.
import "fontsource-source-code-pro/cyrillic-ext-500.css" // All styles included.
import "fontsource-source-code-pro/greek-900-normal.css" // Select either normal or italic.
import "@fontsource/source-code-pro/latin-ext.css" // All weights with normal style included.
import "@fontsource/source-code-pro/cyrillic-ext-500.css" // Weight 500 with normal style.
import "@fontsource/source-code-pro/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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc