Skip to content
This repository was archived by the owner on Dec 4, 2022. It is now read-only.

Commit 8872877

Browse files
authored
Feature/support react fragments (#118)
* fix teambit/bit/issues/2072, upgrade module-definition package to support React fragments * upgrade stylus-lookup and sass-lookup packages * upgrade module-lookup-amd, fix code according to the breaking changes of the upgraded packages * update some more packages * fix npm audit * bump version
1 parent 7fd584a commit 8872877

File tree

8 files changed

+4745
-8828
lines changed

8 files changed

+4745
-8828
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [unreleased]
99

10+
## [2.1.3-dev.2] - 2019-10-17
11+
12+
- fix npm audit issues
13+
- [#2072](https://github.com/teambit/bit/issues/2072) upgrade module-definition package to support React fragments
14+
15+
1016
## [2.1.3-dev.1] - 2019-10-06
1117

1218
- upgrade typescript and typescript parser packages

package-lock.json

Lines changed: 4610 additions & 4449 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bit-javascript",
3-
"version": "2.1.3-dev.1",
3+
"version": "2.1.3-dev.2",
44
"scripts": {
55
"flow": "flow; test $? -eq 0 -o $? -eq 2",
66
"lint": "eslint src && flow check || true",
@@ -36,44 +36,44 @@
3636
],
3737
"main": "dist/index.js",
3838
"dependencies": {
39-
"@babel/runtime": "^7.0.0",
39+
"@babel/runtime": "^7.6.3",
4040
"@typescript-eslint/typescript-estree": "^2.3.2",
4141
"app-module-path": "^2.2.0",
42-
"camelcase": "^4.0.0",
43-
"chalk": "^1.1.3",
42+
"camelcase": "^5.3.1",
43+
"chalk": "^2.4.2",
4444
"commander": "^2.14.1",
4545
"css-tree": "^1.0.0-alpha.29",
46-
"debug": "^3.1.0",
47-
"detective-amd": "^2.4.0",
46+
"debug": "^4.1.1",
47+
"detective-amd": "^3.0.0",
4848
"detective-stylus": "^1.0.0",
49-
"enhanced-resolve": "^4.0.0",
50-
"fs-extra": "^4.0.2",
49+
"enhanced-resolve": "^4.1.1",
50+
"fs-extra": "^8.1.0",
5151
"glob": "^7.1.1",
5252
"ini-builder": "^1.1.1",
5353
"is-relative-path": "^2.0.0",
5454
"is-url": "^1.2.4",
5555
"lodash.partition": "^4.6.0",
5656
"lodash.set": "^4.3.2",
57-
"module-definition": "^2.2.4",
58-
"module-lookup-amd": "^5.0.1",
57+
"module-definition": "^3.2.0",
58+
"module-lookup-amd": "^6.2.0",
5959
"node-source-walk": "^4.2.0",
6060
"object-assign": "^4.1.1",
6161
"ora": "^1.2.0",
6262
"parents": "^1.0.1",
6363
"ramda": "^0.22.1",
6464
"regenerator-runtime": "^0.10.5",
6565
"resolve": "^1.5.0",
66-
"resolve-dependency-path": "^1.0.2",
67-
"sass-lookup": "^1.1.0",
66+
"resolve-dependency-path": "^2.0.0",
67+
"sass-lookup": "^3.0.0",
6868
"stylable": "5.2.2",
69-
"stylus-lookup": "^1.0.2",
69+
"stylus-lookup": "^3.0.2",
7070
"typescript": "3.6.3",
7171
"user-home": "^2.0.0",
7272
"vue-template-compiler": "^2.5.13"
7373
},
7474
"devDependencies": {
75-
"@babel/cli": "^7.0.0",
76-
"@babel/core": "^7.0.0",
75+
"@babel/cli": "^7.6.4",
76+
"@babel/core": "^7.6.4",
7777
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
7878
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
7979
"@babel/plugin-transform-runtime": "^7.0.0",

src/dependency-builder/dependency-tree/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ module.exports._getDependencies = function (config) {
9696
return;
9797
}
9898
const cabinetParams = {
99-
partial: dependency,
99+
dependency,
100100
filename: config.filename,
101101
directory: config.directory,
102102
ast: precinct.ast,
@@ -119,7 +119,7 @@ module.exports._getDependencies = function (config) {
119119
}
120120

121121
if (!result) {
122-
debug(`skipping an empty filepath resolution for partial: ${dependency}`);
122+
debug(`skipping an empty filepath resolution for dependency: ${dependency}`);
123123
addToNonExistent(dependency);
124124
return;
125125
}
@@ -128,7 +128,7 @@ module.exports._getDependencies = function (config) {
128128

129129
if (!exists) {
130130
addToNonExistent(dependency);
131-
debug(`skipping non-empty but non-existent resolution: ${result} for partial: ${dependency}`);
131+
debug(`skipping non-empty but non-existent resolution: ${result} for dependency: ${dependency}`);
132132
return;
133133
}
134134
const pathMap = { importSource: dependency, resolvedDep: result };

0 commit comments

Comments
 (0)