Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mdx-js/mdx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.16.1
Choose a base ref
...
head repository: mdx-js/mdx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.16.2
Choose a head ref
  • 2 commits
  • 7 files changed
  • 2 contributors

Commits on Nov 20, 2018

  1. super before this access (#320)

    * super before this access
    
    * update snapshots
    ChristopherBiscardi authored and silvenon committed Nov 20, 2018
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    398ee4c View commit details
  2. v0.16.2

    silvenon committed Nov 20, 2018
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ce5b2f8 View commit details
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "3.4.0",
"version": "0.16.1",
"version": "0.16.2",
"packages": [
"packages/*"
],
4 changes: 2 additions & 2 deletions packages/loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/loader",
"version": "0.16.1",
"version": "0.16.2",
"description": "Loader for MDX",
"license": "MIT",
"keywords": [
@@ -27,7 +27,7 @@
"index.js"
],
"dependencies": {
"@mdx-js/mdx": "^0.16.1",
"@mdx-js/mdx": "^0.16.2",
"@mdx-js/tag": "^0.16.1",
"loader-utils": "^1.1.0"
},
3 changes: 2 additions & 1 deletion packages/mdx/mdx-hast-to-jsx.js
Original file line number Diff line number Diff line change
@@ -103,7 +103,8 @@ function toJSX(node, parentNode = {}, options = {}) {
`${
skipExport ? '' : 'export default'
} class MDXContent extends React.Component {
constructor() {
constructor(props) {
super(props)
this.layout = ${layout}
}
render() {
2 changes: 1 addition & 1 deletion packages/mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/mdx",
"version": "0.16.1",
"version": "0.16.2",
"description": "Parse MDX and transpile to JSX",
"license": "MIT",
"keywords": [
3 changes: 2 additions & 1 deletion packages/mdx/test/index.test.js
Original file line number Diff line number Diff line change
@@ -48,7 +48,8 @@ it('Should match sample blog post snapshot', async () => {

expect(prettier.format(result, {parser: 'babylon'})).toMatchInlineSnapshot(`
"export default class MDXContent extends React.Component {
constructor() {
constructor(props) {
super(props);
this.layout = undefined;
}
render() {
4 changes: 2 additions & 2 deletions packages/parcel-plugin-mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/parcel-plugin-mdx",
"version": "0.16.1",
"version": "0.16.2",
"description": "Parcel plugin for MDX",
"license": "MIT",
"keywords": [
@@ -27,7 +27,7 @@
"src"
],
"dependencies": {
"@mdx-js/mdx": "^0.16.1",
"@mdx-js/mdx": "^0.16.2",
"parcel-bundler": "^1.4.1"
},
"peerDependencies": {
4 changes: 2 additions & 2 deletions packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdx-js/runtime",
"version": "0.16.1",
"version": "0.16.2",
"description": "Parse and render MDX in a runtime environment",
"license": "MIT",
"keywords": [
@@ -30,7 +30,7 @@
"src/"
],
"dependencies": {
"@mdx-js/mdx": "^0.16.1",
"@mdx-js/mdx": "^0.16.2",
"@mdx-js/tag": "^0.16.1",
"buble": "^0.19.3"
},