powerbi-visuals-tools 6.0.1 → 6.1.0-beta.1

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.
package/Changelog.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This page contains information about changes to the PowerBI Visual Tools (pbiviz).
4
4
 
5
+ ## 6.1.0
6
+ * Added `--certification-audit` flag to `pbiviz package` command. It audits the visual package for possible certification issues.
7
+ * Added `--certification-fix` flag to `pbiviz package` command. It fixes found certification issues in the visual package. Please carefully test the built package to ensure its functionality is not broken after that.
8
+
5
9
  ## 6.0.0
6
10
  * **Introduced pbiviz.js support.** This feature allows generate configuration dynamically using benefits of JavaScript.
7
11
  It allows you to easily use any js logic to build your pbiviz file using environment variables or other parameters.
package/bin/pbiviz.js CHANGED
@@ -101,6 +101,8 @@ pbiviz
101
101
  .option('-v, --verbose', "Enables verbose logging")
102
102
  .option('--fix', 'Enable autofixing of lint errors')
103
103
  .option('-p, --pbiviz-file <pbiviz-file>', "Path to visual config file (pbiviz.json / pbiviz.mjs)", pbivizFile)
104
+ .option('--certification-audit ', 'Audit the visual package for possible certification issues')
105
+ .option('--certification-fix', 'Fix found certification issues in the visual package. Please carefully test the built package to ensure its functionality is not broken after that')
104
106
  .addOption(new Option('-c, --compression <compressionLevel>', "Enables compression of visual package")
105
107
  .choices(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'])
106
108
  .default('6')
@@ -43,6 +43,8 @@ export default class CommandManager {
43
43
  skipApiCheck: options.skipApi,
44
44
  allLocales: options.allLocales,
45
45
  pbivizFile: options.pbivizFile,
46
+ certificationAudit: options.certificationAudit,
47
+ certificationFix: options.certificationFix,
46
48
  };
47
49
  const lintOptions = {
48
50
  verbose: options.verbose,
@@ -140,7 +140,9 @@ export default class WebPackWrap {
140
140
  modules: typeof tsconfig.compilerOptions.outDir !== "undefined",
141
141
  visualSourceLocation: path.posix.relative(config.build.precompileFolder, tsconfig.files[0]).replace(/(\.ts)x|\.ts/, ""),
142
142
  pluginLocation: path.join(config.build.precompileFolder, "visualPlugin.ts"),
143
- compression: options.compression
143
+ compression: options.compression,
144
+ certificationAudit: options.certificationAudit,
145
+ certificationFix: options.certificationFix,
144
146
  };
145
147
  return pluginConfiguration;
146
148
  }
@@ -249,6 +251,8 @@ export default class WebPackWrap {
249
251
  skipApiCheck: false,
250
252
  allLocales: false,
251
253
  pbivizFile: 'pbiviz.json',
254
+ certificationAudit: false,
255
+ certificationFix: false,
252
256
  }) {
253
257
  const tsconfig = await readJsonFromVisual('tsconfig.json');
254
258
  this.pbiviz = await readJsonFromVisual(options.pbivizFile);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerbi-visuals-tools",
3
- "version": "6.0.1",
3
+ "version": "6.1.0-beta.1",
4
4
  "description": "Command line tool for creating and publishing visuals for Power BI",
5
5
  "main": "./bin/pbiviz.js",
6
6
  "type": "module",
@@ -58,8 +58,7 @@
58
58
  "mini-css-extract-plugin": "^2.9.2",
59
59
  "os-browserify": "^0.3.0",
60
60
  "path-browserify": "^1.0.1",
61
- "powerbi-visuals-api": "~5.3.0",
62
- "powerbi-visuals-webpack-plugin": "4.1.0",
61
+ "powerbi-visuals-webpack-plugin": "4.2.1",
63
62
  "process": "^0.11.10",
64
63
  "punycode": "^2.3.1",
65
64
  "querystring-es3": "^0.2.1",