Skip to content

Latest commit

 

History

History
727 lines (438 loc) · 36.7 KB

CHANGELOG.md

File metadata and controls

727 lines (438 loc) · 36.7 KB

Changelog

v9.1.7 (2024-01-18)

Dependency updates. Remove markdown-it-html5-embed and replace it with lib/html5-embed. Update tests.

What's Changed

  • Upgrade markdown-it (and plugins) to ESM (with CJS fallbacks) by @eatyourgreens in #237
  • [Security] Remove markdown-it-html5-embed by @eatyourgreens in #245

Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.6...v9.1.7

v9.1.6 (2023-11-30)

Dependency updates.

What's Changed

  • Bump eslint from 8.53.0 to 8.54.0 by @dependabot in #229
  • Bump jsdom from 22.1.0 to 23.0.0 by @dependabot in #230
  • Bump @babel/cli from 7.23.0 to 7.23.4 by @dependabot in #231

Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.5...v9.1.6

v9.1.5 (2023-11-13)

Dependency updates.

What's Changed

  • Bump @babel/core from 7.23.2 to 7.23.3 by @dependabot in #226
  • Bump @babel/preset-env from 7.23.2 to 7.23.3 by @dependabot in #228
  • Bump @babel/preset-react from 7.22.15 to 7.23.3 by @dependabot in #227

Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.4...v9.1.5

v9.1.4 (2023-11-06)

Dependency updates.

  • Bump eslint-plugin-jsx-a11y from 6.7.1 to 6.8.0 by @dependabot in #220
  • Run CI on Node 20 by @eatyourgreens in #222
  • Bump chai-spies from 1.0.0 to 1.1.0 by @dependabot in #221
  • Bump actions/checkout from 3 to 4 by @dependabot in #224
  • Bump actions/setup-node from 3 to 4 by @dependabot in #225
  • Bump eslint from 8.52.0 to 8.53.0 by @dependabot in #223

Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.3...v9.1.4

v9.1.3 (2023-10-31)

Bugfix: handle null values as empty strings.

Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.2...v9.1.3

v9.1.2 (2023-10-31)

Bugfix: cast all input values to strings.

Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.1...v9.1.2

v9.1.1 (2023-10-31)

  • Optimise Markdown and useMarkdownz by @eatyourgreens in #217

Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.0...v9.1.1

v9.1.0 (2023-10-31)

  • Refactor Markdownz as a functional component.
  • Refactor the Rehype code into utils.getComponentTree.
  • Return a React component tree from the useMarkdownz hook.
// render HTML as JSX
import { utils } from 'markdownz';
const html = '<p>This is a test paragraph, with <a href="https://www.zooniverse.org">a link.</a>';
const reactChildren = utils.getComponentTree({ html });
return <div>{reactChildren}</div>;
import { useMarkdownz } from 'markdownz';

const markdownChildren = useMarkdownz({ content: 'This is some markdown', debug: true });
return <>{markdownChildren}</>;

Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.0.0...v9.1.0

v9.0.0 (2023-10-30)

Remove dangerouslySetInnerHTML. Render the HTML output with rehype-react.

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.5.0...v9.0.0

v8.5.0 (2023-10-30)

Add a useMarkdownz hook.

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.4.1...v8.5.0

v8.4.1 (2023-10-24)

Dependency updates. Upgrade ESLint from 4 to 8.

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.4.0...v8.4.1

v8.4.0 (2023-10-10)

Support tree-shaking with sideEffects: false.

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.3.3...v8.4.0

v8.3.3 (2023-10-10)

Support NodeJS runtimes.

  • Support DOMPurify on Node by @eatyourgreens in #206

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.3.2...v8.3.3

v8.3.2 (2023-10-06)

Allow embedded YouTube iframes.

  • Allow embedded iframes for YouTube content by @eatyourgreens in #203

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.3.1...v8.3.2

v8.3.1 (2023-10-06)

Allow target=_blank on external links, in sanitised HTML.

  • Allow links to open with target=_blank by @eatyourgreens in #202

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.3.0...v8.3.1

v8.3.0 (2023-10-06)

Require markdown-it 13 for all plugins and samitise output HTML by default.

  • [Security] Sanitise HTML and update dependencies by @eatyourgreens in #201

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.2.0...v8.3.0

v8.2.0 (2023-10-04)

Allow (@test-user) to be auto-linked as a username mention.

  • Allow username mentions in brackets by @eatyourgreens in #200

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.1.4...v8.2.0

v8.1.4 (2023-10-02)

Dependency updates.

  • Bump @babel/cli from 7.22.15 to 7.23.0 by @dependabot in #196
  • Bump @babel/core from 7.22.20 to 7.23.0 by @dependabot in #197
  • Bump chai from 4.3.8 to 4.3.10 by @dependabot in #198
  • Bump markdown-it from 13.0.1 to 13.0.2 by @dependabot in #199

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.1.3...v8.1.4

v8.1.3 (2023-09-21)

Split the className, content and tag props out from props that are passed as options to getHtml.

  • Refactor Markdownz props by @eatyourgreens in #195

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.1.2...v8.1.3

v8.1.2 (2023-09-18)

Add debug mode: <Markdownz debug>Some content.</Markdown>.

  • Add debug mode by @eatyourgreens in #194

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.1.1...v8.1.2

v8.1.1 (2023-09-17)

Bugfix for 'React is undefined' in v8.1.0.

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.1.0...v8.1.1

v8.1.0 (2023-09-17)

Export the HTML utilities separately from the React components.

import { utils } from 'markdownz';

const content = `
# A test document

This is a test [with a link](https://www.zooniverse.org).
`
const html = utils.getHTML({ content });
  • Bump @babel/register from 7.22.5 to 7.22.15 by @dependabot in #186
  • Bump @babel/preset-react from 7.22.5 to 7.22.15 by @dependabot in #189
  • Bump @babel/core from 7.22.11 to 7.22.20 by @dependabot in #191
  • Bump @babel/cli from 7.22.10 to 7.22.15 by @dependabot in #187
  • Bump @babel/preset-env from 7.22.10 to 7.22.20 by @dependabot in #192
  • Export HTML utilities by @eatyourgreens in #193

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.0.7...v8.1.0

v8.0.7 (2023-08-29)

  • Bump @babel/cli from 7.22.5 to 7.22.6 by @dependabot in #169
  • Bump @babel/core from 7.22.5 to 7.22.8 by @dependabot in #170
  • Bump @babel/preset-env from 7.22.5 to 7.22.7 by @dependabot in #171
  • Bump @babel/preset-env from 7.22.7 to 7.22.9 by @dependabot in #172
  • Bump @babel/core from 7.22.8 to 7.22.9 by @dependabot in #174
  • Bump @babel/cli from 7.22.6 to 7.22.9 by @dependabot in #173
  • Bump eslint-plugin-react from 7.32.2 to 7.33.0 by @dependabot in #175
  • Bump eslint-plugin-react from 7.33.0 to 7.33.1 by @dependabot in #176
  • Bump @babel/cli from 7.22.9 to 7.22.10 by @dependabot in #178
  • Bump eslint-plugin-import from 2.27.5 to 2.28.0 by @dependabot in #177
  • Bump @babel/preset-env from 7.22.9 to 7.22.10 by @dependabot in #180
  • Bump @babel/core from 7.22.9 to 7.22.10 by @dependabot in #179
  • Bump eslint-plugin-import from 2.28.0 to 2.28.1 by @dependabot in #181
  • Bump eslint-plugin-react from 7.33.1 to 7.33.2 by @dependabot in #182
  • Bump @babel/core from 7.22.10 to 7.22.11 by @dependabot in #183
  • Bump chai from 4.3.7 to 4.3.8 by @dependabot in #184

Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.0.6...v8.0.7

v8.0.6 (2023-07-10)

  • Bump tough-cookie from 4.1.2 to 4.1.3 by @dependabot in #168

v8.0.5 (2023-06-13)

  • Bump jsdom from 22.0.0 to 22.1.0 by @dependabot in #158
  • Bump @babel/preset-env from 7.21.5 to 7.22.2 by @dependabot in #160
  • Bump @babel/preset-react from 7.18.6 to 7.22.3 by @dependabot in #159
  • Bump @babel/core from 7.21.8 to 7.22.1 by @dependabot in #161
  • Bump @babel/cli from 7.21.5 to 7.22.5 by @dependabot in #163
  • Bump @babel/core from 7.22.1 to 7.22.5 by @dependabot in #167
  • Bump @babel/preset-react from 7.22.3 to 7.22.5 by @dependabot in #164
  • Bump @babel/register from 7.21.0 to 7.22.5 by @dependabot in #165
  • Bump @babel/preset-env from 7.22.2 to 7.22.5 by @dependabot in #166

v8.0.4 (2023-05-11)

  • Bump jsdom from 21.1.0 to 21.1.1 by @dependabot in #147
  • Bump @babel/core from 7.21.0 to 7.21.3 by @dependabot in #148
  • Bump @twemoji/api from 14.1.0 to 14.1.1 by @dependabot in #149
  • Bump @twemoji/api from 14.1.1 to 14.1.2 by @dependabot in #150
  • Bump @babel/preset-env from 7.20.2 to 7.21.5 by @dependabot in #153
  • Bump @babel/core from 7.21.3 to 7.21.8 by @dependabot in #157
  • Bump @babel/cli from 7.21.0 to 7.21.5 by @dependabot in #155
  • Bump jsdom from 21.1.1 to 22.0.0 by @dependabot in #156

v8.0.3 (2023-03-01)

  • Bump eslint-plugin-import from 2.27.4 to 2.27.5 by @dependabot in #138
  • Bump eslint-plugin-react from 7.32.1 to 7.32.2 by @dependabot in #141
  • Build and test with Node 18 by @eatyourgreens in #142
  • Bump markdown-it-anchor from 8.6.6 to 8.6.7 by @dependabot in #143
  • Bump @babel/core from 7.20.12 to 7.21.0 by @dependabot in #146
  • Bump @babel/register from 7.18.9 to 7.21.0 by @dependabot in #144
  • Bump @babel/cli from 7.20.7 to 7.21.0 by @dependabot in #145

v8.0.2 (2023-01-23)

  • Bump eslint-plugin-import from 2.26.0 to 2.27.4 by @dependabot in #134
  • Bump eslint-plugin-jsx-a11y from 6.6.1 to 6.7.1 by @dependabot in #135
  • Bump jsdom from 21.0.0 to 21.1.0 by @dependabot in #139
  • Bump eslint-plugin-react from 7.31.11 to 7.32.1 by @dependabot in #137
  • Bump twemoji to 14.1.0 by @eatyourgreens in #140

v8.0.1 (2023-01-12)

  • Bump jsdom from 20.0.3 to 21.0.0 by @dependabot in #132
  • use new base url for twemoji by @camallen in #133

v8.0.0 (2023-01-06)

  • Build with Babel 7.
  • Support the new React automatic runtime.
  • Add an ESM build.

v7.10.2 (2023-01-06)

Security

  • npm audit fix.

Merged pull requests:

  • Bump markdown-it-anchor from 8.6.5 to 8.6.6 #130

v7.10.1 (2022-12-15)

Closed issues:

  • Update link to supported emoji #127

v7.10.0 (2022-12-12)

Merged pull requests:

  • Bump markdown-it-anchor from 8.4.1 to 8.6.5 #123
  • Bump react-dom from 15.6.2 to 15.7.0 #124
  • Bump twemoji from 13.1.0 to 14.0.2 #125
  • Bump mocha from 10.1.0 to 10.2.0 #126

v7.9.0 (2022-11-28)

Merged pull requests:

  • Bump react-test-renderer from 15.6.2 to 15.7.0 #118
  • Bump markdown-it from 12.3.2 to 13.0.1 #119
  • Bump eslint-plugin-react from 7.9.1 to 7.31.11 #120
  • Bump jsdom from 16.5.0 to 20.0.3 #121
  • Bump prop-types from 15.7.2 to 15.8.1 #122

v7.8.6 (2022-11-14)

Merged pull requests:

  • Bump markdown-it-emoji from 2.0.0 to 2.0.2 #117
  • Bump eslint-plugin-import from 2.13.0 to 2.26.0 #114
  • Bump react from 15.6.2 to 15.7.0 #113

v7.8.5 (2022-11-13)

Merged pull requests:

  • Bump minimatch and mocha #112

v7.8.4 (2022-11-13)

Merged pull requests:

  • Bump enzyme from 2.8.2 to 3.11.0 #104
  • Bump chai-spies from 0.7.1 to 1.0.0 #105
  • Bump babel-preset-react from 6.16.0 to 6.24.1 #106
  • Bump eslint-plugin-jsx-a11y from 6.0.3 to 6.6.1 #108
  • Bump chai from 3.5.0 to 4.3.7 #109
  • npm audit fix #111

v7.8.3 (2022-10-06)

Merged pull requests:

  • Bump css-what from 2.1.0 to 2.1.3 #103

v7.8.2 (2022-08-16)

Merged pull requests:

  • Fix test setup per jsdom update #101
  • [Security] Bump jsdom from 9.5.0 to 16.5.0 #100

v7.8.1 (2022-01-18)

Merged pull requests:

  • Upgrade outdated dependencies #99

v7.8.0 (2022-01-18)

Security fixes:

  • [Security] Bump markdown-it from 8.4.1 to 12.3.2 #98

v7.7.2 (2021-06-09)

Full Changelog

Security fixes:

Merged pull requests:

v7.7.1 (2019-07-22)

Full Changelog

Implemented enhancements:

  • Update plugin to filter out support user account #82
  • Add support to the restricted names list #83 (srallen)

v7.7.0 (2019-07-17)

Full Changelog

Closed issues:

  • Add @support to markdownz help #80

Merged pull requests:

v7.6.6 (2019-07-11)

Full Changelog

Security fixes:

v7.6.5 (2019-06-04)

Full Changelog

Security fixes:

v7.6.4 (2018-11-05)

Full Changelog

Merged pull requests:

v7.6.3 (2018-07-27)

Full Changelog

Merged pull requests:

v7.6.2 (2018-06-27)

Full Changelog

Merged pull requests:

v7.6.1 (2018-06-21)

Full Changelog

Closed issues:

  • Add new plugin to support HTML5 audio and video #60

Merged pull requests:

v7.6.0 (2018-05-17)

Full Changelog

Merged pull requests:

v7.5.0 (2018-03-09)

Full Changelog

Closed issues:

  • Add support for HTML5 audio and video #65
  • Footnote text is not displayed #64

Merged pull requests:

v7.4.2 (2018-02-21)

Full Changelog

Merged pull requests:

v7.4.1 (2018-01-19)

Full Changelog

Merged pull requests:

v7.4.0 (2018-01-19)

Full Changelog

v7.3.1 (2017-08-17)

Full Changelog

Merged pull requests:

  • Fixed list rendering in help component. #59 (srallen)

v7.3.0 (2017-08-07)

Full Changelog

Closed issues:

  • [RFC] Add MarkdownHelp component to Markdownz #57

Merged pull requests:

v7.2.1 (2017-06-19)

Full Changelog

Merged pull requests:

  • Remove cruft deps and update markdown-it-imsize #56 (srallen)

v7.2.0 (2017-05-18)

Full Changelog

Merged pull requests:

  • Use callback for refs and use enzyme #54 (srallen)

v7.1.0 (2017-05-15)

Full Changelog

Closed issues:

  • transpile to es5 and point package.json to use it #32
  • Bundle size gets large when included #9

Merged pull requests:

v5.0.0 (2016-11-22)

Full Changelog

Closed issues:

  • babelify peer dependency #35

Merged pull requests:

v4.1.5 (2016-09-22)

Full Changelog

4.1.5 (2016-09-22)

Full Changelog

Implemented enhancements:

Closed issues:

  • (Moved to "Panoptes-Front-End") #41
  • Example image is broken #33
  • Tests fail under Firefox/IE #26
  • Add rel="nofollow" to external links? #22

Merged pull requests:

v3.0.3 (2015-10-09)

Full Changelog

v3.0.2 (2015-10-09)

Full Changelog

v3.0.1 (2015-09-28)

Full Changelog

Merged pull requests:

  • Fix markdown insert heading syntax to use ## #21 (aweiksnar)

v3.0.0 (2015-09-25)

Full Changelog

Merged pull requests:

v2.5.1 (2015-09-22)

Full Changelog

v2.5.0 (2015-09-22)

Full Changelog

Merged pull requests:

v2.4.0 (2015-09-22)

Full Changelog

Merged pull requests:

  • Add #hashtag delimiter test cases, ignore urls #17 (aweiksnar)

v2.3.0 (2015-09-22)

Full Changelog

Merged pull requests:

v2.2.0 (2015-09-11)

Full Changelog

Merged pull requests:

  • Adds a list of restricted usernames that won't generate links #16 (parrish)

v2.1.0 (2015-09-02)

Full Changelog

Closed issues:

  • Incorrect matches #11

Merged pull requests:

v2.0.1 (2015-08-20)

Full Changelog

Merged pull requests:

v2.0.0 (2015-08-20)

Full Changelog

Closed issues:

  • React Router Warnings #8

Merged pull requests:

v1.0.4 (2015-08-12)

Full Changelog

Merged pull requests:

v1.0.3 (2015-08-06)

Full Changelog

Merged pull requests:

v1.0.2 (2015-08-04)

Full Changelog

v1.0.1 (2015-08-04)

Full Changelog

Merged pull requests:

* This Changelog was automatically generated by [github_changelog_generator] (https://github.com/github-changelog-generator/github-changelog-generator)