Socket
Book a DemoInstallSign in
Socket

ngx-highlightjs

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-highlightjs - npm Package Versions

13456

7.0.1

Diff
m
murhaf
published 7.0.1 •

Changelog

Source

7.0.1

  • Add support for trusted types (CSP), in 125a55b.
m
murhaf
published 7.0.0 •

Changelog

Source

7.0.0

m
murhaf
published 6.1.3 •

Changelog

Source

6.1.3

  • fix typo: Angular async pipe return type is 'string|null' not 'string' as [highlight] expect, closes #209 in 277322f.
m
murhaf
published 6.1.2 •

Changelog

Source

6.1.2

  • fix: check if options is defined in HighlightLoader service, closes #219 in cac55cb.
  • fix: Update deprecated usage of throwError in rxjs 7.
m
murhaf
published 6.1.1 •

Changelog

Source

6.1.1

  • fix: RxJS peerDependency warning when installing the package, closes#205 in 87c8521.
  • fix: Passing empty string to [highlight] input should clear the highlighted content (test cases is added for that), closes #119 in 2d67fb3.
m
murhaf
published 6.1.0 •

Changelog

Source

6.1.0

  • feat: Load highlighting theme dynamically, ability to switch between themes easily, closes #194 in 9422d29.
m
murhaf
published 6.0.0 •

Changelog

Source

6.0.0

  • Upgrade library to Angular 13
m
murhaf
published 5.0.0 •

Changelog

Source

5.0.0

  • Upgrade usage to highlight.js v11, you can find the breaking changes from the official page here.
  • Build the library with partial compilationMode.
  • feat: Add the missing functions from v11 in HighlightJS service.
  • Remove deprecated function in v11, such as initHighlighting(), highlightBlock(), fixMarkup() from HighlightJS service.

Breaking changes

  • refactor: (highlighted) output has been updated to highlight.js v11, the result object has a new interface HighlightAutoResult.
  • refactor: HighlightJS.configure(config) has been updated the config interface to highlight.js v11.
m
murhaf
published 4.1.4 •

Changelog

Source

4.1.4

  • Upgrade to Angular 12
  • Set peer dependency of highlight.js to v10

The library is still compatible with the new version of highlight.js v11 but the highlighting function will be deprecated in their next release

m
murhaf
published 4.1.3 •

Changelog

Source

4.1.3

  • Upgrade to Angular 11
  • Build the library in strict mode

Breaking changes:

  • refactor: Highlight directive => function highlightElement(code: string, languages: string[]): the languages param is not optional anymore.
SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.