Skip to content

Releases: ngx-prism/core

v2.0.1

24 Jul 11:36
Compare
Choose a tag to compare

v2.0.0

18 Dec 13:57
Compare
Choose a tag to compare
  • ngx-prism instead of prism-highlight component selector.
  • Initially detached from change detector tree by using @angular-package/change-detection.
  • Instead of ngOnChanges() method setter and getter is in use.

v1.0.1

07 Nov 18:38
Compare
Choose a tag to compare
  • Update prismjs to 1.8.4.
  • Add demo to repository.
  • Fix interpolation.

v1.0.0

03 Nov 16:33
Compare
Choose a tag to compare
  • Update dev and dependencies (angular v5).

  • Add some keywords to package.json.

  • Export only PrismModule.

  • Fix script copyfiles:src to copy only .html files.

  • Do not copy themes from prismjs anymore.

  • chore(rollup.config): update browser property in nodeResolve to false.

  • chore(tsconfig): add option to not preserve white spaces.

  • refactor(PrismModule): add const for common declarations and exports.

  • refactor(PrismService): change the way interpolate is performed.

Documentation.

  • Update Installation Inputs Usage section.
  • Add Important section.
  • Add to Pros and Cons section.

v0.4.2

19 Oct 12:19
Compare
Choose a tag to compare
  • Update documentation.
  • Update dev and dependencies.
  • Remove parameter from CallbackType().
  • Add typescript type CallbackOnChangesType().
  • Change PrismInterface property name codeElementRef to el.
  • Add OptionsInterface for highlight.
  • Flatten html view.
  • Remove prism property from PrismService.
  • PrismService method interpolate() now accepts any string.
  • onChanges() method is now in separate class ComponentHoodClass with additional callback parameter.
  • Add highlightElement() method to PrismHoodClass.
  • Remove some setters and getters from PrismHoodClass.

v0.4.0

02 Oct 15:44
Compare
Choose a tag to compare
  • Update dev and dependencies.
  • Add PrismService to manage highlightElement.

Feat:

  • Add hooks from prismjs to configure.
  • To get better performance detection strategy changed to OnPush.

v0.3.5

21 Sep 14:19
Compare
Choose a tag to compare
  • Update dev and dependencies.
  • Simplify hooks with highlight().
  • Add typeguards to property code and language.

Fix:

  • interpolation is now working.

Test:

  • add interpolation tests.

v0.3.4

18 Sep 09:32
Compare
Choose a tag to compare

Feat:

  • Possibility to interpolate code by using interpolation property.

Test:

  • interpolation.

v0.3.3

14 Sep 18:25
Compare
Choose a tag to compare
  • Add type check of some properties in PrismComponent and PrismClass.
  • Move demonstration repositorium to @ngx-prism/demo.

Fix:

  • jsdoc bad description in PrismClass.

Docs:

  • Update description in Demonstration section.

v0.3.1

14 Sep 15:13
Compare
Choose a tag to compare
  • Add abstract class with methods and inputs.
  • Create seperate file with typescript type.
  • Additional hooks to perform highlight() method on specific demand.

Docs:

  • Add fourth point to the usage with import css examples.
  • Add PrismComponent paragraph with its Input and Lifecycle Hooks description.

Tests:

  • Add some property code tests.

Fix:

  • remove {{code}} from component template.

Demo:

  • Update @ngx-prism/core in demo to the newest version.