jsx-slack

Build JSON object for Slack Block Kit surfaces from JSX

MIT License

Downloads
20.5K
Stars
458
Committers
7
jsx-slack - v6.1.1 Latest Release

Published by yhatt 11 months ago

Fixed

  • Broken ESM build by wrong extension (#308, #309 by @nihalgonsalves)
jsx-slack - v6.1.0

Published by yhatt 11 months ago

Added

Changed

  • Upgrade Node.js and dependent packages (#303)

Fixed

  • Avoid using node_modules directory for pre-bundled external modules in ESM output (#308 by @nihalgonsalves)

Removed

  • Test against Node.js 14 (#303)
jsx-slack - v6.0.0

Published by yhatt over 1 year ago

Breaking

  • URLs in <a> tags have no longer been encoded by encodeURI() implicitly, excluding some characters that have conflicted with Slack's mrkdwn format (#288, #289 by @nholden)

For keeping to get the compatible output with v5, wrap the value of href attribute with encodeURI() explicitly.

 <Mrkdwn>
-  <a href={'https://example.com/?regex=<([^/]+?)>'}>Link</a>
+  <a href={encodeURI('https://example.com/?regex=<([^/]+?)>')}>Link</a>
 </Mrkdwn>

Changed

Removed

  • Removed deprecated types: VoidFunctionComponent, VFC, JSXSlack.FunctionalComponent, JSXSlack.VoidFunctionalComponent, and JSXSlack.Props (#293)
jsx-slack - v5.3.1

Published by yhatt over 1 year ago

Fixed

  • Define types field of conditional exports (#290 by @odanado)

Changed

  • Upgrade Node.js and dependent packages (#291)
jsx-slack - v5.3.0

Published by yhatt almost 2 years ago

Added

  • Add description prop support to <Option> component (#284, #285)
jsx-slack - v5.2.1

Published by yhatt almost 2 years ago

Fixed

  • Improve compatibility with npm support for Deno (#283)
jsx-slack - v5.2.0

Published by yhatt almost 2 years ago

Added

Changed

  • Upgrade dependent packages to the latest version (#281)
jsx-slack - v5.1.0

Published by yhatt over 2 years ago

Added

Fixed

  • Make stable documentation anchor links (#274)
jsx-slack - v5.0.0

Published by yhatt over 2 years ago

Breaking

  • Dropped EoL Node.js 12 support (#271)

  • Removed implicit children prop from FunctionComponent to make compatible types with React 18 (Use PropsWithChildren<P> to include children prop) (#270)

    -JSXSlack.FunctionComponent<P>
    +JSXSlack.FunctionComponent<JSXSlack.PropsWithChildren<P>>
    -JSXSlack.FunctionComponent
    +JSXSlack.FunctionComponent<JSXSlack.PropsWithChildren<{}>>
    

Deprecated

  • VoidFunctionComponent, VFC, FunctionalComponent, VoidFunctionalComponent, and Props type (#270)

    Depreacted Replace to
    VoidFunctionComponent / VFC FunctionComponent / FC
    FunctionalComponent FunctionComponent / FC
    VoidFunctionalComponent FunctionComponent / FC
    Props<P> P

Changed

  • Upgrade Node and dependent packages to the latest version (#271)
jsx-slack - v4.6.1

Published by yhatt over 2 years ago

Fixed

  • Export Fragment in JSX runtime to match to React's runtime (#267, #269)

Changed

  • Upgrade development Node and dependent packages to the latest version (#268)
jsx-slack - v4.6.0

Published by yhatt over 2 years ago

Added

  • accessibilityLabel / aria-label prop for <Button> component (#262, #265)

Changed

  • Upgrade dependent packages to the latest version (#263)
  • Make build size of JSX runtime smaller (#264)
jsx-slack - v4.5.4

Published by yhatt almost 3 years ago

Fixed

  • Fix esm.sh resolution error by adding JSX runtimes with .mjs extension (#260)
jsx-slack - v4.5.3

Published by yhatt almost 3 years ago

Fixed

  • Fix TypeError while rendering lists and hyperlinks with JSX runtime (#258, #259)
jsx-slack - v4.5.2

Published by yhatt almost 3 years ago

Added

  • Add documentation of Deno import maps (#257)

Security

  • Prevent catastrophic backtracking in blockquote escape replacers (GHSA-hp68-xhvj-x6j6: thanks to @hieki)
jsx-slack - v4.5.1

Published by yhatt almost 3 years ago

Fixed

jsx-slack - v4.5.0

Published by yhatt almost 3 years ago

Added

  • autoFocus prop for supported interactive elements (#253, #254)
  • Guide for setting up jsx-slack in Deno (Slack CLI) and esbuild (#245, #252)

Changed

  • Upgrade dependent packages to the latest version (#255)
jsx-slack - v4.4.3

Published by yhatt almost 3 years ago

Fixed

  • Fix Deno's type error by adding manual type assertion for <Blocks> (#245, #251)
jsx-slack - v4.4.2

Published by yhatt almost 3 years ago

Fixed

  • Fix internal type of <Blocks> for making better type support for ESM CDN (#245, #250)
jsx-slack - v4.4.1

Published by yhatt almost 3 years ago

Fixed

  • Avoid using namespace alias and use isomorphic namespace in JSX runtime (#249)
jsx-slack - v4.4.0

Published by yhatt almost 3 years ago

Removed

  • Direct dependencies to hast-util-to-mdast and he (#247)

Changed

  • Upgrade development Node version to v16 LTS (#246)
  • Upgrade dependent packages to the latest version (#246)
  • Setup esbuild transpile and prebundling (#247)
Package Rankings
Top 3.7% on Npmjs.org
Top 6.67% on Proxy.golang.org
Badges
Extracted from project README
CircleCI Codecov npm LICENSE