Releases: ngx-prism/core
Releases · ngx-prism/core
v2.0.1
v2.0.0
ngx-prism
instead ofprism-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
- Update
prismjs
to 1.8.4. - Add
demo
to repository. - Fix interpolation.
v1.0.0
-
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
fromprismjs
anymore. -
chore(rollup.config): update browser property in
nodeResolve
tofalse
. -
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
andCons
section.
v0.4.2
- Update documentation.
- Update dev and dependencies.
- Remove parameter from
CallbackType()
. - Add typescript type
CallbackOnChangesType()
. - Change
PrismInterface
property namecodeElementRef
toel
. - Add
OptionsInterface
for highlight. - Flatten html view.
- Remove
prism
property fromPrismService
. PrismService
methodinterpolate()
now accepts any string.onChanges()
method is now in separate classComponentHoodClass
with additionalcallback
parameter.- Add
highlightElement()
method toPrismHoodClass
. - Remove some setters and getters from
PrismHoodClass
.
v0.4.0
- Update dev and dependencies.
- Add
PrismService
to managehighlightElement
.
Feat:
- Add hooks from prismjs to configure.
- To get better performance detection strategy changed to OnPush.
v0.3.5
- Update dev and dependencies.
- Simplify hooks with
highlight()
. - Add typeguards to property
code
andlanguage
.
Fix:
- interpolation is now working.
Test:
- add
interpolation
tests.
v0.3.4
Feat:
- Possibility to interpolate code by using
interpolation
property.
Test:
- interpolation.
v0.3.3
- Add type check of some properties in
PrismComponent
andPrismClass
. - Move demonstration repositorium to
@ngx-prism/demo
.
Fix:
- jsdoc bad description in
PrismClass
.
Docs:
- Update description in
Demonstration
section.
v0.3.1
- 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.