Skip to content

Commit b4ad8d6

Browse files
committed
⬆️ Release v1.0.0-beta.3
1 parent 986b0d2 commit b4ad8d6

File tree

9 files changed

+49
-52
lines changed

9 files changed

+49
-52
lines changed

.eslintrc.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ plugins:
1212
- react
1313

1414
globals:
15-
GIT_TAG: false
16-
GIT_COMMIT: false
15+
__VERSION__: false
1716

1817
parserOptions:
1918
sourceType: module

docs/repl.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/repl.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/shared.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/site.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markdown-component-loader",
3-
"version": "1.0.0-beta.2",
3+
"version": "1.0.0-beta.3",
44
"description": "Turn Markdown into dynamic, stateless React components",
55
"main": "lib/index.js",
66
"scripts": {
@@ -45,8 +45,8 @@
4545
"babel-eslint": "^8.0.0",
4646
"babel-jest": "^21.0.2",
4747
"babel-loader": "^7.1.0",
48-
"babel-plugin-git-version": "^0.2.0",
4948
"babel-plugin-transform-object-rest-spread": "^6.16.0",
49+
"babel-plugin-version-inline": "^1.0.0",
5050
"babel-polyfill": "^6.16.0",
5151
"babel-preset-es2015": "^6.16.0",
5252
"babel-preset-react": "^6.16.0",
@@ -74,7 +74,7 @@
7474
},
7575
"babel": {
7676
"plugins": [
77-
["git-version", { "commitLength": 8 }],
77+
"version-inline",
7878
"transform-object-rest-spread"
7979
],
8080
"presets": [

src/__snapshots__/convert.spec.js.snap

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false,"markd
787787
Markdown Component
788788
</em>
789789
file. Here you can include JSX-style assignment expressions; this component was generated using version
790-
1.0.0-beta.2
790+
1.0.0-beta.3
791791
of
792792
markdown-component-loader
793793
!
@@ -1470,7 +1470,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false,"markd
14701470
Markdown Component
14711471
</em>
14721472
file. Here you can include JSX-style assignment expressions; this component was generated using version
1473-
1.0.0-beta.2
1473+
1.0.0-beta.3
14741474
of
14751475
markdown-component-loader
14761476
!
@@ -2078,7 +2078,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false,"markd
20782078
Markdown Component
20792079
</em>
20802080
file. Here you can include JSX-style assignment expressions; this component was generated using version
2081-
1.0.0-beta.2
2081+
1.0.0-beta.3
20822082
of
20832083
markdown-component-loader
20842084
!
@@ -2664,7 +2664,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false,"passE
26642664
Markdown Component
26652665
</em>
26662666
file. Here you can include JSX-style assignment expressions; this component was generated using version
2667-
1.0.0-beta.2
2667+
1.0.0-beta.3
26682668
of
26692669
markdown-component-loader
26702670
!
@@ -3347,7 +3347,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false,"passE
33473347
Markdown Component
33483348
</em>
33493349
file. Here you can include JSX-style assignment expressions; this component was generated using version
3350-
1.0.0-beta.2
3350+
1.0.0-beta.3
33513351
of
33523352
markdown-component-loader
33533353
!
@@ -3955,7 +3955,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false,"passE
39553955
Markdown Component
39563956
</em>
39573957
file. Here you can include JSX-style assignment expressions; this component was generated using version
3958-
1.0.0-beta.2
3958+
1.0.0-beta.3
39593959
of
39603960
markdown-component-loader
39613961
!
@@ -4541,7 +4541,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false,"passE
45414541
Markdown Component
45424542
</em>
45434543
file. Here you can include JSX-style assignment expressions; this component was generated using version
4544-
1.0.0-beta.2
4544+
1.0.0-beta.3
45454545
of
45464546
markdown-component-loader
45474547
!
@@ -5143,7 +5143,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false,"passE
51435143
Markdown Component
51445144
</em>
51455145
file. Here you can include JSX-style assignment expressions; this component was generated using version
5146-
1.0.0-beta.2
5146+
1.0.0-beta.3
51475147
of
51485148
markdown-component-loader
51495149
!
@@ -5862,7 +5862,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false,"passE
58625862
Markdown Component
58635863
</em>
58645864
file. Here you can include JSX-style assignment expressions; this component was generated using version
5865-
1.0.0-beta.2
5865+
1.0.0-beta.3
58665866
of
58675867
markdown-component-loader
58685868
!
@@ -6506,7 +6506,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false,"passE
65066506
Markdown Component
65076507
</em>
65086508
file. Here you can include JSX-style assignment expressions; this component was generated using version
6509-
1.0.0-beta.2
6509+
1.0.0-beta.3
65106510
of
65116511
markdown-component-loader
65126512
!
@@ -7128,7 +7128,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false,"passE
71287128
Markdown Component
71297129
</em>
71307130
file. Here you can include JSX-style assignment expressions; this component was generated using version
7131-
1.0.0-beta.2
7131+
1.0.0-beta.3
71327132
of
71337133
markdown-component-loader
71347134
!
@@ -7730,7 +7730,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":false}\` for
77307730
Markdown Component
77317731
</em>
77327732
file. Here you can include JSX-style assignment expressions; this component was generated using version
7733-
1.0.0-beta.2
7733+
1.0.0-beta.3
77347734
of
77357735
markdown-component-loader
77367736
!
@@ -8318,7 +8318,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true,"markdo
83188318
Markdown Component
83198319
</em>
83208320
file. Here you can include JSX-style assignment expressions; this component was generated using version
8321-
1.0.0-beta.2
8321+
1.0.0-beta.3
83228322
of
83238323
markdown-component-loader
83248324
!
@@ -9009,7 +9009,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true,"markdo
90099009
Markdown Component
90109010
</em>
90119011
file. Here you can include JSX-style assignment expressions; this component was generated using version
9012-
1.0.0-beta.2
9012+
1.0.0-beta.3
90139013
of
90149014
markdown-component-loader
90159015
!
@@ -9625,7 +9625,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true,"markdo
96259625
Markdown Component
96269626
</em>
96279627
file. Here you can include JSX-style assignment expressions; this component was generated using version
9628-
1.0.0-beta.2
9628+
1.0.0-beta.3
96299629
of
96309630
markdown-component-loader
96319631
!
@@ -10219,7 +10219,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true,"passEl
1021910219
Markdown Component
1022010220
</em>
1022110221
file. Here you can include JSX-style assignment expressions; this component was generated using version
10222-
1.0.0-beta.2
10222+
1.0.0-beta.3
1022310223
of
1022410224
markdown-component-loader
1022510225
!
@@ -10910,7 +10910,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true,"passEl
1091010910
Markdown Component
1091110911
</em>
1091210912
file. Here you can include JSX-style assignment expressions; this component was generated using version
10913-
1.0.0-beta.2
10913+
1.0.0-beta.3
1091410914
of
1091510915
markdown-component-loader
1091610916
!
@@ -11526,7 +11526,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true,"passEl
1152611526
Markdown Component
1152711527
</em>
1152811528
file. Here you can include JSX-style assignment expressions; this component was generated using version
11529-
1.0.0-beta.2
11529+
1.0.0-beta.3
1153011530
of
1153111531
markdown-component-loader
1153211532
!
@@ -12120,7 +12120,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true,"passEl
1212012120
Markdown Component
1212112121
</em>
1212212122
file. Here you can include JSX-style assignment expressions; this component was generated using version
12123-
1.0.0-beta.2
12123+
1.0.0-beta.3
1212412124
of
1212512125
markdown-component-loader
1212612126
!
@@ -12730,7 +12730,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true,"passEl
1273012730
Markdown Component
1273112731
</em>
1273212732
file. Here you can include JSX-style assignment expressions; this component was generated using version
12733-
1.0.0-beta.2
12733+
1.0.0-beta.3
1273412734
of
1273512735
markdown-component-loader
1273612736
!
@@ -13457,7 +13457,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true,"passEl
1345713457
Markdown Component
1345813458
</em>
1345913459
file. Here you can include JSX-style assignment expressions; this component was generated using version
13460-
1.0.0-beta.2
13460+
1.0.0-beta.3
1346113461
of
1346213462
markdown-component-loader
1346313463
!
@@ -14109,7 +14109,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true,"passEl
1410914109
Markdown Component
1411014110
</em>
1411114111
file. Here you can include JSX-style assignment expressions; this component was generated using version
14112-
1.0.0-beta.2
14112+
1.0.0-beta.3
1411314113
of
1411414114
markdown-component-loader
1411514115
!
@@ -14739,7 +14739,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true,"passEl
1473914739
Markdown Component
1474014740
</em>
1474114741
file. Here you can include JSX-style assignment expressions; this component was generated using version
14742-
1.0.0-beta.2
14742+
1.0.0-beta.3
1474314743
of
1474414744
markdown-component-loader
1474514745
!
@@ -15349,7 +15349,7 @@ exports[`convert with a config object of \`{"implicitlyImportReact":true}\` for
1534915349
Markdown Component
1535015350
</em>
1535115351
file. Here you can include JSX-style assignment expressions; this component was generated using version
15352-
1.0.0-beta.2
15352+
1.0.0-beta.3
1535315353
of
1535415354
markdown-component-loader
1535515355
!
@@ -15937,7 +15937,7 @@ exports[`convert with a config object of \`{"markdownItPlugins":"somenonsenseval
1593715937
Markdown Component
1593815938
</em>
1593915939
file. Here you can include JSX-style assignment expressions; this component was generated using version
15940-
1.0.0-beta.2
15940+
1.0.0-beta.3
1594115941
of
1594215942
markdown-component-loader
1594315943
!
@@ -16620,7 +16620,7 @@ exports[`convert with a config object of \`{"markdownItPlugins":[null,[null,{"co
1662016620
Markdown Component
1662116621
</em>
1662216622
file. Here you can include JSX-style assignment expressions; this component was generated using version
16623-
1.0.0-beta.2
16623+
1.0.0-beta.3
1662416624
of
1662516625
markdown-component-loader
1662616626
!
@@ -17228,7 +17228,7 @@ exports[`convert with a config object of \`{"markdownItPlugins":[null]}\` for co
1722817228
Markdown Component
1722917229
</em>
1723017230
file. Here you can include JSX-style assignment expressions; this component was generated using version
17231-
1.0.0-beta.2
17231+
1.0.0-beta.3
1723217232
of
1723317233
markdown-component-loader
1723417234
!
@@ -17814,7 +17814,7 @@ exports[`convert with a config object of \`{"passElementProps":false,"markdownIt
1781417814
Markdown Component
1781517815
</em>
1781617816
file. Here you can include JSX-style assignment expressions; this component was generated using version
17817-
1.0.0-beta.2
17817+
1.0.0-beta.3
1781817818
of
1781917819
markdown-component-loader
1782017820
!
@@ -18497,7 +18497,7 @@ exports[`convert with a config object of \`{"passElementProps":false,"markdownIt
1849718497
Markdown Component
1849818498
</em>
1849918499
file. Here you can include JSX-style assignment expressions; this component was generated using version
18500-
1.0.0-beta.2
18500+
1.0.0-beta.3
1850118501
of
1850218502
markdown-component-loader
1850318503
!
@@ -19105,7 +19105,7 @@ exports[`convert with a config object of \`{"passElementProps":false,"markdownIt
1910519105
Markdown Component
1910619106
</em>
1910719107
file. Here you can include JSX-style assignment expressions; this component was generated using version
19108-
1.0.0-beta.2
19108+
1.0.0-beta.3
1910919109
of
1911019110
markdown-component-loader
1911119111
!
@@ -19691,7 +19691,7 @@ exports[`convert with a config object of \`{"passElementProps":false}\` for comp
1969119691
Markdown Component
1969219692
</em>
1969319693
file. Here you can include JSX-style assignment expressions; this component was generated using version
19694-
1.0.0-beta.2
19694+
1.0.0-beta.3
1969519695
of
1969619696
markdown-component-loader
1969719697
!
@@ -20293,7 +20293,7 @@ exports[`convert with a config object of \`{"passElementProps":true,"markdownItP
2029320293
Markdown Component
2029420294
</em>
2029520295
file. Here you can include JSX-style assignment expressions; this component was generated using version
20296-
1.0.0-beta.2
20296+
1.0.0-beta.3
2029720297
of
2029820298
markdown-component-loader
2029920299
!
@@ -21012,7 +21012,7 @@ exports[`convert with a config object of \`{"passElementProps":true,"markdownItP
2101221012
Markdown Component
2101321013
</em>
2101421014
file. Here you can include JSX-style assignment expressions; this component was generated using version
21015-
1.0.0-beta.2
21015+
1.0.0-beta.3
2101621016
of
2101721017
markdown-component-loader
2101821018
!
@@ -21656,7 +21656,7 @@ exports[`convert with a config object of \`{"passElementProps":true,"markdownItP
2165621656
Markdown Component
2165721657
</em>
2165821658
file. Here you can include JSX-style assignment expressions; this component was generated using version
21659-
1.0.0-beta.2
21659+
1.0.0-beta.3
2166021660
of
2166121661
markdown-component-loader
2166221662
!
@@ -22278,7 +22278,7 @@ exports[`convert with a config object of \`{"passElementProps":true}\` for compo
2227822278
Markdown Component
2227922279
</em>
2228022280
file. Here you can include JSX-style assignment expressions; this component was generated using version
22281-
1.0.0-beta.2
22281+
1.0.0-beta.3
2228222282
of
2228322283
markdown-component-loader
2228422284
!
@@ -22880,7 +22880,7 @@ exports[`convert with a config object of \`{}\` for component example 2 renders
2288022880
Markdown Component
2288122881
</em>
2288222882
file. Here you can include JSX-style assignment expressions; this component was generated using version
22883-
1.0.0-beta.2
22883+
1.0.0-beta.3
2288422884
of
2288522885
markdown-component-loader
2288622886
!

src/formatters/module.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import DocChomp from 'doc-chomp';
22

3-
const version = `${GIT_TAG} (${GIT_COMMIT})`;
4-
53
export default ({ passElementProps }, imports, statics, jsx) => {
64
let moduleText = DocChomp`
7-
// Module generated from Markdown by Markdown Component Loader ${version}
5+
// Module generated from Markdown by Markdown Component Loader v${__VERSION__}
86
${imports}
97
MarkdownComponent.propTypes = {
108
className: PropTypes.string,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,6 @@ babel-plugin-check-es2015-constants@^6.22.0:
557557
dependencies:
558558
babel-runtime "^6.22.0"
559559

560-
babel-plugin-git-version@^0.2.0:
561-
version "0.2.0"
562-
resolved "https://registry.yarnpkg.com/babel-plugin-git-version/-/babel-plugin-git-version-0.2.0.tgz#613afd28ae1da8e5ef98249be1b5aca74a13f8f5"
563-
564560
babel-plugin-istanbul@^4.0.0:
565561
version "4.1.5"
566562
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.5.tgz#6760cdd977f411d3e175bb064f2bc327d99b2b6e"
@@ -808,6 +804,10 @@ babel-plugin-transform-strict-mode@^6.24.1:
808804
babel-runtime "^6.22.0"
809805
babel-types "^6.24.1"
810806

807+
babel-plugin-version-inline@^1.0.0:
808+
version "1.0.0"
809+
resolved "https://registry.yarnpkg.com/babel-plugin-version-inline/-/babel-plugin-version-inline-1.0.0.tgz#b99b6f925db4a4c6789eb08836e66d128dd5993f"
810+
811811
babel-polyfill@^6.16.0, babel-polyfill@^6.26.0:
812812
version "6.26.0"
813813
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"

0 commit comments

Comments
 (0)