powerbi-visuals-tools 3.4.0 → 3.4.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,146 +2,190 @@
2
2
 
3
3
  This page contains information about changes to the PowerBI Visual Tools (pbiviz).
4
4
 
5
- # 3.4.0
5
+ ## 3.4.1
6
+
7
+ * Fixed certificate verification for 'non-english' environment
8
+
9
+ ## 3.4.0
10
+
6
11
  ### **⚠ BREAKING CHANGES**
12
+
7
13
  * Removed old API ( 2.6.0 and bellow) templates logic
8
14
  * Removed `pbiviz-update` method
9
15
  * Removed `--api [version]` flag
10
16
  * Migrated to `webpack-dev-server` v4
11
17
 
12
18
  ## 3.3.2
19
+
13
20
  * Extended `"powerbi-visuals-api"` usage up to version 3.2.0 and higher
14
21
 
15
22
  ## 3.3.1
23
+
16
24
  * Fixed certificate issues
17
25
  * Fixed an issue when previous API version was used for a new package build
18
26
 
19
27
  ## 3.3.0
28
+
20
29
  ### **⚠ BREAKING CHANGES**
30
+
21
31
  * Starting from tools version 3.3.0, it expects usage of ["powerbi-visuals-api": ">=3.8.0"](https://github.com/microsoft/powerbi-visuals-api/blob/master/CHANGELOG.md#382)
32
+
22
33
  ### **Features**
34
+
23
35
  * Added support for CV modal dialog
24
36
 
25
37
  ## 3.2.2
38
+
26
39
  * Removed npm-force-resolutions package
27
40
 
28
41
  ## 3.2.1
42
+
29
43
  * Fixed preinstall to prevent instalation failure because of npm-force-resolutions
30
44
  * Fixed pbiviz.json dependencies option usage
31
45
 
32
46
  ## 3.2.0
47
+
33
48
  * Fixed LessCompiler for old visuals
34
49
 
35
50
  ## 3.1.19
51
+
36
52
  * Fixed webpack Node.js polyfill issue in webpack 5+"
37
53
 
38
54
  ## 3.1.18
55
+
39
56
  * Removed deprecated packages
40
57
 
41
58
  ## 3.1.16
59
+
42
60
  * Added visuals compatibility with webpack v5
43
61
  * Removed lodash: _.template, ._findindex, .difference
44
62
  * Packages update
45
63
 
46
64
  ## 3.1.15
65
+
47
66
  * Webpack plugin update
48
67
  * npm audit package-lock patch
49
68
 
50
69
  ## 3.1.14
70
+
51
71
  * Fix output library name for debug mode
52
72
 
53
73
  ## 3.1.12
74
+
54
75
  * Command package rolling back to fix issues with some commands running
55
76
 
56
77
  ## 3.1.11
57
- * Packages update. Fixed https://github.com/microsoft/PowerBI-visuals-tools/issues/304
78
+
79
+ * Packages update. Fixed <https://github.com/microsoft/PowerBI-visuals-tools/issues/304>
58
80
 
59
81
  ## 3.1.10
82
+
60
83
  * Packages update: Uglify-js is replaced by Terser
61
84
 
62
85
  ## 3.1.9
86
+
63
87
  * Fix loading the old visual projects
64
88
  * Fix loading old [`formattingutils`](https://github.com/microsoft/powerbi-visuals-utils-formattingutils/tree/72a136aca836e60042be35b1cd2ae10a07837ba8) in the old visual projects.
65
89
 
66
90
  ## 3.1.8
91
+
67
92
  * Update `powerbi-visuals-webpack-plugin` to 2.2.1
68
93
 
69
94
  ## 3.1.7
95
+
70
96
  * Fix vscode workspace settings template
71
97
  * Fix certificate tool error handling
72
98
 
73
99
  ## 3.1.6
100
+
74
101
  * Fix webpack configureation include regex
75
102
  * Templates update
76
103
 
77
104
  ## 3.1.5
105
+
78
106
  * Templates update
79
107
 
80
108
  ## 3.1.4
109
+
81
110
  * Packages update
82
111
 
83
112
  ## 3.1.3
113
+
84
114
  * Remove `@babel/polyfill`
85
115
  * Replace `webpack-visualizer-plugin` by `webpack-bundle-analyzer`
86
116
 
87
117
  ## 3.1.2
88
- * Add extensions for *.svg *.eot files to `base64-inline-loader` configuration
118
+
119
+ * Add extensions for *.svg*.eot files to `base64-inline-loader` configuration
89
120
  * Exclude `code-js` package to process by Babel
90
121
  * Include `@babel/plugin-syntax-dynamic-import` plugin for Babel
91
122
  * Update `core-js` package to version 3.x.x.
92
123
 
93
124
  ## 3.1.1
125
+
94
126
  * Add `base64-inline-loader` to load images
95
127
 
96
128
  ## pbiviz v3.1.0
129
+
97
130
  * Release. Now Webpack is default builder for Custom Visuals.
98
131
  * What’s new in powerbi-visuals-tools v3?
99
- * TypeScript v3.0.1 by default
100
- * ES6 Modules supported
101
- * New versions of D3v5 and other external libraries are supported
102
- * Reduced package size
103
- * Improved API performance
104
- * For the full details please check [this article](https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/migrating-to-powerbi-visuals-tools-3-0/).
105
-
106
- ## pbiviz v2.5.0
132
+ * TypeScript v3.0.1 by default
133
+ * ES6 Modules supported
134
+ * New versions of D3v5 and other external libraries are supported
135
+ * Reduced package size
136
+ * Improved API performance
137
+ * For the full details please check [this article](https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/migrating-to-powerbi-visuals-tools-3-0/).
138
+
139
+ ## pbiviz v2.5.0
140
+
107
141
  * Added Analytics Pane support
108
142
  Note: API v2.4.0 skipped as it does not include any public changes
109
143
 
110
144
  ## pbiviz v2.3.0
145
+
111
146
  * custom visuals now support a landing page
112
147
 
113
148
  ## pbiviz v2.2.2
149
+
114
150
  * Update package-lock.json to fix vulnerabilities
115
151
 
116
152
  ## pbiviz v2.2.1
153
+
117
154
  * Deprecated `applySelectionFilter` from `ISelectionManager`
118
155
 
119
156
  ## pbiviz v3.0.12 Beta
157
+
120
158
  * Compression option for compressing visual package
121
159
  * Fix launch webpack build triggering
122
160
  * Update powerbi-visuals-webpack-plugin to 2.1.0
123
161
 
124
162
  ## pbiviz v3.0.11 Beta
125
- * Add support to import *.css and *.less files
163
+
164
+ * Add support to import *.css and*.less files
126
165
  * Fix reloading capabilities.json
127
166
  * Resolve issue of starting dev server after copy certs from global instance
128
167
  * Serve old visual project by nodejs server instead webpack dev server
129
168
 
130
169
  ## pbiviz v3.0.10 Beta
170
+
131
171
  * Resolve dev server certificates from global instance of pbiviz.
132
172
  * Replace VisualServer.js by webpack-dev-server
133
173
 
134
174
  ## pbiviz v3.0.9 Beta
175
+
135
176
  * Set `sourceType` to "unambiguous" for babel configuration
136
177
 
137
178
  ## pbiviz v3.0.8 Beta
179
+
138
180
  * Update powerbi-visuals-webpack-plugin to 2.0.0
139
181
  * Remove minification by babel (remove `babel-preset-minify` package).
140
182
 
141
183
  ## pbiviz v3.0.7 Beta
184
+
142
185
  * Update powerbi-visuals-webpack-plugin to 1.0.15
143
186
 
144
187
  ## pbiviz v3.0.6 Beta
188
+
145
189
  * Install the latest patch of `powerbi-visuals-api`
146
190
  * The `pbiviz.json` values of visual templates overrides global template values
147
191
  * Remove unnecessary `setApiVersion` and `updateApi` from `VisualGenerator`
@@ -149,85 +193,110 @@ Note: API v2.4.0 skipped as it does not include any public changes
149
193
  * Update powerbi-visuals-plugin to version 1.0.13
150
194
 
151
195
  ## pbiviz v3.0.5 Beta
196
+
152
197
  * Prevent using define function in context of module
153
198
 
154
199
  ## pbiviz v3.0.4 Beta
200
+
155
201
  * Update powerbi-visuals-plugin to version 1.0.11
156
202
 
157
203
  ## pbiviz v3.0.3 Beta
204
+
158
205
  * Update powerbi-visuals-plugin to version 1.0.10
159
206
  * Remove jasmine-node package
160
207
 
161
208
  ## pbiviz v3.0.2 Beta
209
+
162
210
  * Tools observe changes in `pbiviz.json` and `capabilities.json` files and rebuild the visual.
163
211
  * `webpack-visualizer-plugin` replaced by `webpack-bundle-analyzer` to visualize the webpack bundle stats.
164
212
 
165
213
  ## pbiviz v3.0.1 Beta
214
+
166
215
  * Webpack based tools
167
216
 
168
- ## pbiviz v2.0.2
217
+ ## pbiviz v2.0.2
218
+
169
219
  * Skip precompilation for the visual with ES6 modules
170
220
 
171
221
  ## pbiviz v2.0.1
222
+
172
223
  * Update package.json. Fix package installation
173
224
 
174
225
  ## pbiviz v2.0.0
226
+
175
227
  * TypeScript external modules support
176
228
 
177
229
  ## pbiviz v1.12.1
178
- * Generate certificates on development server starts
230
+
231
+ * Generate certificates on development server starts
179
232
 
180
233
  ## pbiviz v1.11.3
234
+
181
235
  * Resolve PowerShell params issue on Win8.
182
236
 
183
237
  ## pbiviz v1.11.2
238
+
184
239
  * Resolve PowerShell script launching issue.
185
240
 
186
241
  ## pbiviz v1.11.1
242
+
187
243
  * Check certificate path in `--install-cert` command.
188
244
 
189
245
  ## pbiviz v1.11.0
246
+
190
247
  * Added `selectionManager.registerOnSelectCallback()` method for Report Bookmarks support
191
248
 
192
249
  ## pbiviz v1.10.2
250
+
193
251
  * Added `pbiviz --create-cert` for generating new unique certificate
194
252
 
195
253
  ## pbiviz v1.10.1
254
+
196
255
  * Increase typescript to 2.3.3 version
197
256
 
198
257
  ## pbiviz v1.10.0
258
+
199
259
  * Added ILocalizationManager
200
260
  * Upgrade dependencies
201
261
  * Added Authentication API call support
202
262
 
203
263
  ## pbiviz v1.9.0
264
+
204
265
  * Added launchUrl API call support
205
266
 
206
267
  ## pbiviz v1.8.1
268
+
207
269
  * FIX: Localization schema will be ignored if API doesn't support localization
208
270
 
209
271
  ## pbiviz v1.8.0
272
+
210
273
  * Added new type "fillRule" (gradient) support in capabilities schema
211
274
  * Added "rule" property support in capabilities schema for object properties
212
275
  * Fixed sub commands help output in "Using:" section
213
276
 
214
277
  ## pbiviz v1.7.5
215
- * Return innerHTML method for RHTML visual sample
278
+
279
+ * Return innerHTML method for RHTML visual sample
216
280
 
217
281
  ## pbiviz v1.7.4
282
+
218
283
  * Remove innerHTML method from sample visual
219
284
 
220
285
  ## pbiviz v1.7.3
221
- * Added RESJSON support
286
+
287
+ * Added RESJSON support
222
288
 
223
289
  ## pbiviz v1.7.2
290
+
224
291
  * Add name validation to pbiviz new command, restrict usage of symbols in the file visual name.
225
292
 
226
293
  ## pbiviz v1.7.1
294
+
227
295
  * Added visual name validation
228
296
  * Added auto-install npm dependencies
229
297
 
230
298
  ## pbiviz v1.6.5
299
+
231
300
  * Updated npm dependencies
232
301
  * Fixed settings generation
233
302
 
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":"21192276192771842"},"visualTemplates":{"circlecard":"http://github.com/microsoft/powerbi-visuals-circlecard-react/archive/master.zip"}}
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":"21345751397540846"},"visualTemplates":{"circlecard":"http://github.com/microsoft/powerbi-visuals-circlecard-react/archive/master.zip"}}
@@ -389,9 +389,10 @@ async function veryfyCertFile(keyPath, certPath, pfxPath, passphrase) {
389
389
  if (!fs.existsSync(pfxPath) || !passphrase) {
390
390
  return false;
391
391
  }
392
- let certStr = await exec(`powershell "certutil -p ${passphrase} -dump ${pfxPath}"`);
393
- let regex = /(?<=NotAfter: ).*$/gm;
394
- endDateStr = regex.exec(certStr);
392
+ let certStr = await exec(`certutil -p ${passphrase} -dump "${pfxPath}"`);
393
+ let certStrSplitted = certStr.split('\r\n');
394
+ let regex = /(?<=: ).*/;
395
+ endDateStr = regex.exec(certStrSplitted[6]);
395
396
 
396
397
  }
397
398
  // For Linux and Mac/darwin OS:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerbi-visuals-tools",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "Command line tool for creating and publishing visuals for Power BI",
5
5
  "main": "./lib/VisualPackage.js",
6
6
  "scripts": {