Socket
Socket
Sign inDemoInstall

@financial-times/o-syntax-highlight

Package Overview
Dependencies
Maintainers
18
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/o-syntax-highlight - npm Package Compare versions

Comparing version 4.0.0-beta.0 to 4.0.0

10

MIGRATION.md
## Migration Guide
### Migrating from v3 to v4
V4 has dropped support for use through Bower. If you have been using Bower, you will need to follow the [bower to npm migration guide](https://origami.ft.com/docs/tutorials/bower-to-npm/).
When using Sass, you will need to add `node_modules` to your `includePath` as well as either:
- Update your code to use the fully qualified package name, i.e.: `@import "@financial-times/o-brand/main"`, or
- Also add `node_modules/@financial-times` to the Sass include path
### Migrating from v2 to v3

@@ -4,0 +14,0 @@

8

package.json
{
"name": "@financial-times/o-syntax-highlight",
"version": "4.0.0-beta.0",
"version": "4.0.0",
"description": "A syntax highlighter for Origami-supported documentation that wraps PrismJs",

@@ -18,3 +18,3 @@ "keywords": [

"start": "npx serve ./demos/local",
"build": "npm_config_yes=true npx \"origami-build-tools@prerelease\" install && npm_config_yes=true npx \"origami-build-tools@prerelease\" demo"
"build": "npm_config_yes=true npx \"origami-build-tools@11\" install && npm_config_yes=true npx \"origami-build-tools@11\" demo"
},

@@ -26,3 +26,3 @@ "devDependencies": {

"remark-lint": "^7.0.1",
"remark-preset-lint-origami-component": "prerelease",
"remark-preset-lint-origami-component": "^2.0.0",
"stylelint": "^13.12.0",

@@ -35,3 +35,3 @@ "stylelint-config-origami-component": "^1.0.4"

"peerDependencies": {
"@financial-times/o-colors": "prerelease"
"@financial-times/o-colors": "^6.0.0"
},

@@ -38,0 +38,0 @@ "engines": {

@@ -156,4 +156,5 @@ # o-syntax-highlight

:---: | :---: | :---: | :---:
✨ active | 3 | N/A | [migrate to v3](MIGRATION.md#migrating-from-v2-to-v3) |
⚠ maintained | 2 | 2.1 | [migrate to v2](MIGRATION.md#migrating-from-v1-to-v2) |
✨ active | 3 | N/A | [migrate to v4](MIGRATION.md#migrating-from-v3-to-v4) |
⚠ maintained | 3 | 3.0 | [migrate to v3](MIGRATION.md#migrating-from-v2-to-v3) |
╳ deprecated | 2 | 2.1 | [migrate to v2](MIGRATION.md#migrating-from-v1-to-v2) |
╳ deprecated | 1 | 1.6.4 | N/A |

@@ -160,0 +161,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc