From 1c2aeb1dfa0ee7981a6a1f4fa1d75a56f25e2a89 Mon Sep 17 00:00:00 2001 From: Martin Tracey Date: Wed, 27 Jan 2021 19:54:50 -0800 Subject: [PATCH 1/2] Upgrade packages. --- package.json | 26 +++++++++++++------------- src/markdown-to-html.pipe.ts | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index bca615a..d3696b4 100644 --- a/package.json +++ b/package.json @@ -35,22 +35,22 @@ }, "homepage": "https://github.com/conclurer/markdown-to-html-pipe#readme", "devDependencies": { - "@angular/compiler": "4.1.3", - "@angular/compiler-cli": "4.1.3", - "@angular/core": "4.1.3", - "@types/tape": "^4.2.27", - "reflect-metadata": "^0.1.8", - "rxjs": "^5.0.0-beta.12", - "tape": "^4.6.0", - "tslint": "^3.14.0", - "typescript": "2.3.4", - "zone.js": "^0.8.4" + "@angular/compiler": "11.1.1", + "@angular/compiler-cli": "11.1.1", + "@angular/core": "^11.1.1", + "@types/tape": "^4.13.0", + "reflect-metadata": "^0.1.13", + "rxjs": "^6.6.3", + "tape": "^5.1.1", + "tslint": "^6.1.3", + "typescript": "4.1.3", + "zone.js": "^0.11.3" }, "peerDependencies": { - "@angular/core": "^2.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + "@angular/core": "^2.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0" }, "dependencies": { - "@types/marked": "^0.0.27", - "marked": "^0.x" + "@types/marked": "^1.2.1", + "marked": "^1.x" } } diff --git a/src/markdown-to-html.pipe.ts b/src/markdown-to-html.pipe.ts index eb5c1a5..05d10a3 100644 --- a/src/markdown-to-html.pipe.ts +++ b/src/markdown-to-html.pipe.ts @@ -6,12 +6,12 @@ import * as marked from 'marked'; }) export class MarkdownToHtmlPipe implements PipeTransform { - public transform(markdown: string, options?: MarkedOptions): string { + public transform(markdown: string, options?: marked.MarkedOptions): string { if (markdown == null) return ''; return marked(markdown, options); } - public static setOptions(options: MarkedOptions): void { + public static setOptions(options: marked.MarkedOptions): void { marked.setOptions(options); } } From 7e78519df761b38214fb00fcdfb7be38c4d80623 Mon Sep 17 00:00:00 2001 From: Martin Tracey Date: Wed, 27 Jan 2021 20:03:38 -0800 Subject: [PATCH 2/2] Version bump --- CHANGELOG.md | 5 +++++ package.json | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ccc6622..7e4cb4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.2.6 + +- Add support for Angular 8, 9, 10 & 11. +- Fixed outdated dependencies. + ## 1.2.5 - Add support for Angular 6 and 7 #13 (thanks to @macjohnny) diff --git a/package.json b/package.json index d3696b4..c14e51e 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "markdown-to-html-pipe", - "version": "1.2.5", + "version": "1.2.6", "description": "Angular Pipe that transforms a markdown string to HTML", "main": "index.js", "scripts": { "test": "npm run lint && npm run build && tape tests/*.js", - "prepublish": "npm run build && npm test", + "prepare": "npm run build && npm test", "build": "ngc", "lint": "tslint -e src/*.d.ts src/**/*.ts tests/**/*.ts index.ts" },