powerbi-visuals-tools 4.0.2 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,9 @@
22
22
  "name": "pbiviz-start t1",
23
23
  "cwd": "${workspaceFolder}\\testGround\\t1",
24
24
  "program": "${workspaceFolder}\\bin\\pbiviz.js",
25
- "args": ["start"]
25
+ "args": [
26
+ "start"
27
+ ]
26
28
  },
27
29
  {
28
30
  "type": "node",
package/Changelog.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  This page contains information about changes to the PowerBI Visual Tools (pbiviz).
4
4
 
5
+ ## 4.0.3
6
+ ### **⚠ BREAKING CHANGES**
7
+ * Removed polyfills and 'Internet Explorer` browser support
8
+ * Removed `--target` option for `pbiviz-start` and `pbiviz-package` commands
9
+
5
10
  ## 4.0.2
6
11
  * Fix custom visual package upload to desktop version of PowerBI
7
12
  * Removed environment logging in this version
@@ -39,7 +39,6 @@ let options = process.argv;
39
39
  const minAPIversion = config.constants.minAPIversion;
40
40
 
41
41
  program
42
- .option('-t, --target [target]', 'Enable babel loader to compile JS into ES5 standart', 'es5')
43
42
  .option('--resources', "Produces a folder containing the pbiviz resource files (js, css, json)", false)
44
43
  .option('--no-pbiviz', "Doesn't produce a pbiviz file (must be used in conjunction with resources flag)", false)
45
44
  .option('--no-minify', "Doesn't minify the js in the package (useful for debugging)", true)
@@ -76,7 +75,6 @@ VisualPackage.loadVisualPackage(cwd).then((visualPackage) => {
76
75
  generatePbiviz: program.pbiviz,
77
76
  minifyJS: program.minify,
78
77
  minify: program.minify,
79
- target: program.target,
80
78
  compression: program.compression
81
79
  }).then(({ webpackConfig }) => {
82
80
  let compiler = webpack(webpackConfig);
@@ -42,7 +42,6 @@ const options = process.argv;
42
42
  const minAPIversion = config.constants.minAPIversion;
43
43
 
44
44
  program
45
- .option('-t, --target [target]', 'Enable babel loader to compile JS into ES5 standart')
46
45
  .option('-p, --port [port]', 'set the port listening on')
47
46
  .option('-m, --mute', 'mute error outputs')
48
47
  .option('-d, --drop', 'drop outputs into output folder');
@@ -71,7 +70,6 @@ VisualPackage.loadVisualPackage(cwd).then((visualPackage) => {
71
70
  generatePbiviz: false,
72
71
  minifyJS: false,
73
72
  minify: false,
74
- target: typeof program.target === 'undefined' ? "es5" : program.target,
75
73
  devServerPort: program.port
76
74
  })
77
75
  .then(({ webpackConfig }) => {
package/bin/pbiviz.js CHANGED
@@ -35,6 +35,8 @@ let config = require(confPath);
35
35
  let args = process.argv;
36
36
  let CertificateTools = require("../lib/CertificateTools");
37
37
 
38
+ ConsoleWriter.info(`${npmPackage.name} version - ${npmPackage.version}`);
39
+
38
40
  program
39
41
  .version(npmPackage.version)
40
42
  .command('new [name]', 'Create a new visual')
package/config.json CHANGED
@@ -1 +1 @@
1
- {"templates":{"visuals":"templates/visuals","pbiviz":"templates/pbiviz.json.template","plugin":"templates/plugin.ts.template","package":"templates/package.json.template"},"generate":{"apiVersion":"3.8.0"},"constants":{"minAPIversion":"3.2.0"},"build":{"precompileFolder":".tmp/precompile","dropFolder":".tmp/drop","js":"tmp.visual.js","css":"visual.css","stats":"../../webpack.statistics.html"},"package":{"dropFolder":"dist"},"server":{"root":"webRoot","assetsRoute":"/assets","privateKey":"certs/PowerBICustomVisualTest_private.key","certificate":"certs/PowerBICustomVisualTest_public.crt","pfx":"certs/PowerBICustomVisualTest_public.pfx","port":"8080","passphrase":"9877149244399557"},"visualTemplates":{"circlecard":"https://codeload.github.com/microsoft/powerbi-visuals-circlecard-react/zip/master"}}
1
+ {"templates":{"visuals":"templates/visuals","pbiviz":"templates/pbiviz.json.template","plugin":"templates/plugin.ts.template","package":"templates/package.json.template"},"generate":{"apiVersion":"3.8.0"},"constants":{"minAPIversion":"3.2.0"},"build":{"precompileFolder":".tmp/precompile","dropFolder":".tmp/drop","js":"tmp.visual.js","css":"visual.css","stats":"../../webpack.statistics.html"},"package":{"dropFolder":"dist"},"server":{"root":"webRoot","assetsRoute":"/assets","privateKey":"certs/PowerBICustomVisualTest_private.key","certificate":"certs/PowerBICustomVisualTest_public.crt","pfx":"certs/PowerBICustomVisualTest_public.pfx","port":"8080","passphrase":"9982422364989703"},"visualTemplates":{"circlecard":"https://codeload.github.com/microsoft/powerbi-visuals-circlecard-react/zip/master"}}
@@ -201,8 +201,7 @@ class WebPackGenerator {
201
201
  }
202
202
  }
203
203
 
204
- setTarget({
205
- target = "es5",
204
+ useLoader({
206
205
  fast = false
207
206
  }) {
208
207
  let tsOptions = {};
@@ -212,62 +211,15 @@ class WebPackGenerator {
212
211
  experimentalWatchApi: false
213
212
  };
214
213
  }
215
- if (target === "es5") {
216
- let babelOptions = {
217
- "presets": [
218
- [
219
- require.resolve('@babel/preset-env'),
220
- {
221
- "targets": {
222
- "ie": "11"
223
- },
224
- useBuiltIns: "entry",
225
- corejs: 3,
226
- modules: false
227
- }
228
- ]
229
- ],
230
- plugins: [require.resolve("@babel/plugin-syntax-dynamic-import")],
231
- sourceType: "unambiguous",
232
- cacheDirectory: path.join(config.build.precompileFolder, "babelCache")
233
- };
234
-
235
- this.webpackConfig.module.rules.push({
236
- test: /(\.ts)x|\.ts$/,
237
- include: /powerbi-visuals-|src|precompile[/\\]visualPlugin.ts/,
238
- exclude: [/core-js/],
239
- use: [
240
- {
241
- loader: require.resolve('babel-loader'),
242
- options: babelOptions
243
- },
244
- {
245
- loader: require.resolve('ts-loader'),
246
- options: tsOptions
247
- }
248
- ]
249
- },
214
+ this.webpackConfig.module.rules.push({
215
+ test: /(\.ts)x?$/,
216
+ use: [
250
217
  {
251
- test: /(\.js)x|\.js$/,
252
- exclude: [/core-js/],
253
- use: [
254
- {
255
- loader: require.resolve('babel-loader'),
256
- options: babelOptions
257
- }
258
- ]
259
- });
260
- } else {
261
- this.webpackConfig.module.rules.push({
262
- test: /(\.ts)x?$/,
263
- use: [
264
- {
265
- loader: require.resolve('ts-loader'),
266
- options: tsOptions
267
- }
268
- ]
269
- });
270
- }
218
+ loader: require.resolve('ts-loader'),
219
+ options: tsOptions
220
+ }
221
+ ]
222
+ });
271
223
  }
272
224
 
273
225
  async prepareWebPackConfig(visualPackage, options, tsconfig) {
@@ -283,8 +235,7 @@ class WebPackGenerator {
283
235
  await this.appendPlugins(options, visualPackage, tsconfig);
284
236
  await this.configureDevServer(visualPackage, options.devServerPort);
285
237
  await this.configureVisualPlugin(options, tsconfig, visualPackage);
286
- this.setTarget({
287
- target: options.target,
238
+ this.useLoader({
288
239
  fast: options.fast
289
240
  });
290
241
 
@@ -309,7 +260,6 @@ class WebPackGenerator {
309
260
  generatePbiviz: false,
310
261
  minifyJS: true,
311
262
  minify: true,
312
- target: "es5",
313
263
  devServerPort: 8080,
314
264
  fast: false,
315
265
  compression: 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerbi-visuals-tools",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Command line tool for creating and publishing visuals for Power BI",
5
5
  "main": "./lib/VisualPackage.js",
6
6
  "scripts": {
@@ -26,24 +26,16 @@
26
26
  },
27
27
  "homepage": "https://github.com/Microsoft/PowerBI-visuals-tools#readme",
28
28
  "dependencies": {
29
- "@babel/core": "7.9.0",
30
- "@babel/plugin-syntax-dynamic-import": "7.8.3",
31
- "@babel/preset-env": "7.9.0",
32
- "@babel/runtime": "7.9.2",
33
- "@babel/runtime-corejs3": "7.9.2",
34
29
  "assert": "^2.0.0",
35
30
  "async": "3.2.0",
36
- "babel-loader": "^8.1.0",
37
31
  "base64-inline-loader": "^2.0.1",
38
32
  "browserify-zlib": "^0.2.0",
39
33
  "buffer": "^6.0.3",
40
34
  "chalk": "3.0.0",
41
35
  "commander": "4.1.1",
42
36
  "compare-versions": "^3.6.0",
43
- "connect": "3.7.0",
44
37
  "console-browserify": "^1.2.0",
45
38
  "constants-browserify": "^1.0.0",
46
- "core-js": "^3.18.1",
47
39
  "crypto-browserify": "^3.12.0",
48
40
  "css-loader": "^5.2.7",
49
41
  "domain-browser": "^4.22.0",
@@ -66,7 +58,6 @@
66
58
  "punycode": "^2.1.1",
67
59
  "querystring-es3": "^0.2.1",
68
60
  "readable-stream": "^3.6.0",
69
- "serve-static": "1.14.1",
70
61
  "stream-browserify": "^3.0.0",
71
62
  "stream-http": "^3.2.0",
72
63
  "string_decoder": "^1.3.0",
@@ -13,13 +13,10 @@
13
13
  "lint": "tslint -c tslint.json -p tsconfig.json"
14
14
  },
15
15
  "dependencies": {
16
- "@babel/runtime": "7.6.0",
17
- "@babel/runtime-corejs2": "7.6.0",
18
16
  "@types/d3": "5.7.2",
19
17
  "d3": "5.12.0",
20
18
  "powerbi-visuals-utils-dataviewutils": "2.2.1",
21
- "powerbi-visuals-api": "~3.8.0",
22
- "core-js": "^3.18.1"
19
+ "powerbi-visuals-api": "~3.8.0"
23
20
  },
24
21
  "devDependencies": {
25
22
  "ts-loader": "6.1.0",
@@ -25,7 +25,6 @@
25
25
  */
26
26
  "use strict";
27
27
 
28
- import "core-js/stable";
29
28
  import "./../style/visual.less";
30
29
  import powerbi from "powerbi-visuals-api";
31
30
  import VisualConstructorOptions = powerbi.extensibility.visual.VisualConstructorOptions;
@@ -8,13 +8,9 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "d3": "5.10.0",
11
- "powerbi-visuals-utils-dataviewutils": "^2.2.1",
12
- "core-js": "3.18.1"
11
+ "powerbi-visuals-utils-dataviewutils": "^2.2.1"
13
12
  },
14
13
  "devDependencies": {
15
- "@babel/polyfill": "^7.4.4",
16
- "@babel/runtime": "^7.5.5",
17
- "@babel/runtime-corejs2": "^7.5.5",
18
14
  "@types/d3": "5.7.2",
19
15
  "powerbi-visuals-api": "~3.8.0",
20
16
  "tslint": "^5.18.0",
@@ -25,7 +25,6 @@
25
25
  */
26
26
  "use strict";
27
27
 
28
- import "core-js/stable";
29
28
  import "./../style/visual.less";
30
29
  import powerbi from "powerbi-visuals-api";
31
30
  import VisualConstructorOptions = powerbi.extensibility.visual.VisualConstructorOptions;
@@ -8,14 +8,10 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "d3": "5.10.0",
11
- "powerbi-visuals-utils-dataviewutils": "^2.2.1",
12
- "core-js": "^3.18.1"
11
+ "powerbi-visuals-utils-dataviewutils": "^2.2.1"
13
12
  },
14
13
  "devDependencies": {
15
14
  "powerbi-visuals-api": "~3.8.0",
16
- "@babel/polyfill": "^7.4.4",
17
- "@babel/runtime": "^7.5.5",
18
- "@babel/runtime-corejs2": "^7.5.5",
19
15
  "@types/d3": "5.7.2",
20
16
  "tslint": "^5.18.0",
21
17
  "tslint-microsoft-contrib": "^6.2.0",
@@ -26,7 +26,6 @@
26
26
 
27
27
  "use strict";
28
28
 
29
- import "core-js/stable";
30
29
  import "./../style/visual.less";
31
30
  import { select } from "d3-selection";
32
31
  import { transpose } from "d3-array";