Skip to content

Releases: hashicorp/swingset

v0.15.0-canary-20221208035901

08 Dec 03:59
78bcb9d
Compare
Choose a tag to compare
Pre-release

Minor Changes

v0.15.0-canary-20221115193513

15 Nov 19:35
f03032a
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • #47 13d1aca Thanks @dstaley! - Ignore node_modules folders when resolving components glob

v0.14.1

23 Jun 18:52
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.14.0...v0.14.1

0.14.0

07 Jun 20:15
Compare
Choose a tag to compare

Minor Changes

  • Support custom component categories: 5f255fc
  • Add KnobsComponent example; fix up some bugs & improve JSON parsing: 28b1fe3
  • Add components directory to webpack cache: 4a33473

0.13.0

07 May 15:19
Compare
Choose a tag to compare

Minor Changes

0.12.0

21 Mar 04:01
Compare
Choose a tag to compare

Minor Changes

  • Fix development environment for examples, bump deps: b7ba94c

0.11.0

13 Jan 17:55
Compare
Choose a tag to compare

Minor Changes

  • Feat: pass components to DocsPage: #35
  • Updating search algorithm to includes: #36

v0.10.2

30 Sep 19:23
Compare
Choose a tag to compare
  • Fixes issue in getPeerComponents with updated component data structure (#33)

0.10.0

16 Jun 15:26
Compare
Choose a tag to compare
  • Support access to named exports of the component index file in docs.mdx, not just the default export (#30)

0.9.0

04 Jun 19:43
Compare
Choose a tag to compare
  • Adds support for standalone docs pages, picked up by defining a docsRoot in the plugin options
  • Adds support for an index page, pass index to swingsetOptions
  • Each component now has its own route, instead of rendering being driven by a query parameter

Here's what the implementation looks like now:

// in /pages/[[...swingset]].jsx
import createPage from 'swingset/page'
import { createStaticProps, createStaticPath } from 'swingset/server'

export default createPage()
export const getStaticPaths = createStaticPaths()
export const getStaticProps = createStaticProps({
  /* mdxOptions = {} */
})