Skip to content

Commit bce9902

Browse files
authored
Merge pull request #323 from ef4/dep-upgrades
updating some deps
2 parents 85cae74 + 4116558 commit bce9902

File tree

13 files changed

+56
-88
lines changed

13 files changed

+56
-88
lines changed

packages/ember-auto-import/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,20 @@
3131
"@babel/preset-env": "^7.10.2",
3232
"@babel/traverse": "^7.1.6",
3333
"@babel/types": "^7.1.6",
34-
"@embroider/core": "^0.23.0",
34+
"@embroider/core": "^0.33.0",
3535
"babel-core": "^6.26.3",
3636
"babel-loader": "^8.0.6",
3737
"babel-plugin-syntax-dynamic-import": "^6.18.0",
3838
"babel-template": "^6.26.0",
3939
"babylon": "^6.18.0",
4040
"broccoli-debug": "^0.6.4",
41-
"broccoli-plugin": "^1.3.0",
41+
"broccoli-node-api": "^1.7.0",
42+
"broccoli-plugin": "^4.0.0",
4243
"debug": "^3.1.0",
4344
"ember-cli-babel": "^7.0.0",
4445
"enhanced-resolve": "^4.0.0",
4546
"fs-extra": "^6.0.1",
46-
"fs-tree-diff": "^1.0.0",
47+
"fs-tree-diff": "^2.0.0",
4748
"handlebars": "^4.3.1",
4849
"js-string-escape": "^1.0.1",
4950
"lodash": "^4.17.19",
@@ -76,7 +77,7 @@
7677
"babel-eslint": "^8.2.5",
7778
"broccoli": "^3.2.0",
7879
"broccoli-asset-rev": "^2.4.5",
79-
"broccoli-source": "^1.1.0",
80+
"broccoli-source": "^3.0.0",
8081
"ember-ajax": "^3.0.0",
8182
"ember-cli": "^3.6.0",
8283
"ember-cli-dependency-checker": "^2.0.0",

packages/ember-auto-import/ts/analyzer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import Plugin, { Tree } from 'broccoli-plugin';
1+
import { Node } from 'broccoli-node-api';
2+
import Plugin from 'broccoli-plugin';
23
import walkSync from 'walk-sync';
34
import { unlinkSync, rmdirSync, mkdirSync, readFileSync, removeSync } from 'fs-extra';
45
import FSTree from 'fs-tree-diff';
@@ -44,7 +45,7 @@ export default class Analyzer extends Plugin {
4445

4546
private parse: undefined | ((source: string) => File);
4647

47-
constructor(inputTree: Tree, private pack: Package) {
48+
constructor(inputTree: Node, private pack: Package) {
4849
super([inputTree], {
4950
annotation: 'ember-auto-import-analyzer',
5051
persistentOutput: true

packages/ember-auto-import/ts/auto-import.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Package from './package';
55
import { buildDebugCallback } from 'broccoli-debug';
66
import BundleConfig from './bundle-config';
77
import Append from './broccoli-append';
8-
import { Tree } from 'broccoli-plugin';
8+
import { Node } from 'broccoli-node-api';
99

1010
const debugTree = buildDebugCallback('ember-auto-import');
1111
const protocol = '__ember_auto_import_protocol_v1__';
@@ -52,7 +52,7 @@ export default class AutoImport {
5252
return this.primaryPackage === appOrAddon;
5353
}
5454

55-
analyze(tree: Tree, appOrAddon: any) {
55+
analyze(tree: Node, appOrAddon: any) {
5656
let pack = Package.lookup(appOrAddon);
5757
this.packages.add(pack);
5858
let analyzer = new Analyzer(
@@ -63,7 +63,7 @@ export default class AutoImport {
6363
return analyzer;
6464
}
6565

66-
makeBundler(allAppTree: Tree) {
66+
makeBundler(allAppTree: Node) {
6767
// The Splitter takes the set of imports from the Analyzer and
6868
// decides which ones to include in which bundles
6969
let splitter = new Splitter({
@@ -83,7 +83,7 @@ export default class AutoImport {
8383
});
8484
}
8585

86-
addTo(allAppTree: Tree) {
86+
addTo(allAppTree: Node) {
8787
let bundler = debugTree(this.makeBundler(allAppTree), 'output');
8888

8989
let mappings = new Map();
@@ -121,7 +121,7 @@ export default class AutoImport {
121121
// So we are forced to monkey patch EmberApp. We insert ourselves right at
122122
// the beginning of addonPostprocessTree.
123123
let original = host.addonPostprocessTree.bind(host);
124-
host.addonPostprocessTree = (which: string, tree: Tree) => {
124+
host.addonPostprocessTree = (which: string, tree: Node) => {
125125
if (which === 'all') {
126126
tree = this.addTo(tree);
127127
}

packages/ember-auto-import/ts/broccoli-append.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import Plugin, { Tree } from 'broccoli-plugin';
1+
import Plugin from 'broccoli-plugin';
2+
import { Node } from 'broccoli-node-api';
23
import { join, extname } from 'path';
34
import walkSync, { WalkSyncEntry } from 'walk-sync';
45
import { unlinkSync, rmdirSync, mkdirSync, readFileSync, existsSync, writeFileSync, removeSync, readdirSync } from 'fs-extra';
@@ -35,7 +36,7 @@ export default class Append extends Plugin {
3536
private reverseMappings: Map<string, string>;
3637
private passthrough: Map<string, string>;
3738

38-
constructor(upstreamTree: Tree, appendedTree: Tree, options: AppendOptions) {
39+
constructor(upstreamTree: Node, appendedTree: Node, options: AppendOptions) {
3940
super([upstreamTree, appendedTree], {
4041
annotation: 'ember-auto-import-analyzer',
4142
persistentOutput: true

packages/ember-auto-import/ts/bundler.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import Plugin, { Tree } from 'broccoli-plugin';
1+
import Plugin from 'broccoli-plugin';
2+
import { Node } from 'broccoli-node-api';
23
import makeDebug from 'debug';
34
import WebpackBundler from './webpack';
45
import Splitter, { BundleDependencies } from './splitter';
@@ -35,7 +36,7 @@ export default class Bundler extends Plugin {
3536
private cachedBundlerHook: BundlerHook | undefined;
3637
private didEnsureDirs = false;
3738

38-
constructor(allAppTree: Tree, private options: BundlerPluginOptions) {
39+
constructor(allAppTree: Node, private options: BundlerPluginOptions) {
3940
super([allAppTree], {
4041
persistentOutput: true,
4142
needsCache: true,
@@ -97,7 +98,7 @@ export default class Bundler extends Plugin {
9798
this.publicAssetURL,
9899
this.skipBabel,
99100
this.options.targets,
100-
this.cachePath
101+
this.cachePath! // cast is OK because we passed needsCache: true to super constructor
101102
);
102103
}
103104
return this.cachedBundlerHook;

packages/ember-auto-import/ts/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import AutoImport from './auto-import';
2-
import { Tree } from 'broccoli-plugin';
2+
import { Node } from 'broccoli-node-api';
33

44
module.exports = {
55
name: 'ember-auto-import',
@@ -16,7 +16,7 @@ module.exports = {
1616
// it will see all the consumer app or addon's javascript
1717
registry.add('js', {
1818
name: 'ember-auto-import-analyzer',
19-
toTree: (tree: Tree) => {
19+
toTree: (tree: Node) => {
2020
return AutoImport.lookup(this).analyze(tree, this);
2121
}
2222
});

types/broccoli-debug/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
declare module 'broccoli-debug' {
2-
import { Tree } from "broccoli-plugin";
2+
import { InputNode, Node } from "broccoli-plugin";
33
export default class BroccoliDebug implements Tree {
4-
constructor(inputTree: Tree, name: 'string');
4+
constructor(inputTree: InputNode, name: 'string');
55
__broccoliGetInfo__(): any;
66
}
7-
export function buildDebugCallback(name: string): (inputTree: Tree, name: string) => Tree;
7+
export function buildDebugCallback(name: string): (inputTree: InputNode, name: string) => Node;
88
}

types/broccoli-plugin/index.d.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

types/broccoli-source/index.d.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

types/broccoli/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
declare module 'broccoli' {
2-
import { Tree } from "broccoli-plugin";
2+
import { InputNode } from "broccoli-node-api";
33
export class Builder {
4-
constructor(tree: Tree);
4+
constructor(tree: InputNode);
55
build(): Promise<void>;
66
outputPath: string;
77
cleanup(): Promise<void>;

0 commit comments

Comments
 (0)