@sap/ux-ui5-tooling 1.8.1 → 1.8.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.
@@ -15,47 +15,29 @@ sap.ui.define(
15
15
  ? 'changeUtils: SAPFioriTools-propertyEditor'
16
16
  : 'changeUtils: SAPFioriTools-variants';
17
17
 
18
- var trustedHosts = [
19
- /^localhost$/,
20
- /^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.cloud\.sap$/,
21
- /^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.sapcloud\.cn$/,
22
- /^((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+applicationstudio\.vlab-sapcloudplatformdev\.cn$/
23
- ];
24
- var isValidHost = trustedHosts.some((host) => {
25
- return host.test(url.hostname);
26
- });
27
-
28
18
  var WorkspaceConnector = merge({}, ObjectStorageConnector, {
29
19
  layers: [Layer.VENDOR, Layer.CUSTOMER_BASE],
30
20
  storage: {
31
21
  _itemsStoredAsObjects: true,
32
22
  setItem: function (sKey, vValue) {
33
- if (isValidHost) {
34
- // update generator
35
- if (vValue && vValue.support) {
36
- vValue.support.generator = generator;
37
- }
38
- $.ajax({
39
- type: 'POST',
40
- url: url.origin + '/FioriTools/api/writeChanges',
41
- data: JSON.stringify(vValue, null, 2),
42
- contentType: 'application/json'
43
- });
44
- } else {
45
- console.error('cannot save flex changes: invalid host');
23
+ // update generator
24
+ if (vValue && vValue.support) {
25
+ vValue.support.generator = generator;
46
26
  }
27
+ $.ajax({
28
+ type: 'POST',
29
+ url: '/FioriTools/api/writeChanges',
30
+ data: JSON.stringify(vValue, null, 2),
31
+ contentType: 'application/json'
32
+ });
47
33
  },
48
34
  removeItem: function (sKey) {
49
- if (isValidHost) {
50
- $.ajax({
51
- type: 'DELETE',
52
- url: url.origin + '/FioriTools/api/removeChanges',
53
- data: JSON.stringify({ fileName: sKey }),
54
- contentType: 'application/json'
55
- });
56
- } else {
57
- console.error('cannot delete flex changes: invalid host');
58
- }
35
+ $.ajax({
36
+ type: 'DELETE',
37
+ url: '/FioriTools/api/removeChanges',
38
+ data: JSON.stringify({ fileName: sKey }),
39
+ contentType: 'application/json'
40
+ });
59
41
  },
60
42
  clear: function () {
61
43
  // not implemented
@@ -64,18 +46,13 @@ sap.ui.define(
64
46
  // not implemented
65
47
  },
66
48
  getItems: async function () {
67
- if (isValidHost) {
68
- const changes = await $.ajax({
69
- url: url.origin + '/FioriTools/api/getChanges',
70
- type: 'GET',
71
- cache: false,
72
- dataType: 'json'
73
- });
74
- return changes;
75
- } else {
76
- console.error('cannot load flex changes: invalid host');
77
- return [];
78
- }
49
+ const changes = await $.ajax({
50
+ url: '/FioriTools/api/getChanges',
51
+ type: 'GET',
52
+ cache: false,
53
+ dataType: 'json'
54
+ });
55
+ return changes;
79
56
  }
80
57
  },
81
58
  loadFeatures: function () {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap/ux-ui5-tooling",
3
3
  "displayName": "SAP Fiori Tools – UI5 Tooling",
4
- "version": "1.8.1",
4
+ "version": "1.8.3",
5
5
  "description": "SAP Fiori Tools – UI5 Tooling",
6
6
  "publisher": "SAPSE",
7
7
  "license": "SEE LICENSE IN LICENSE",
@@ -51,14 +51,14 @@
51
51
  "@sap-ux/store": "0.3.0",
52
52
  "@sap-ux/ui5-config": "0.14.0",
53
53
  "@sap-ux/ui5-proxy-middleware": "1.1.16",
54
- "@sap/ux-app-templates": "1.8.1",
55
- "@sap/ux-cds": "1.8.1",
56
- "@sap/ux-common-utils": "1.8.1",
57
- "@sap/ux-control-property-editor": "1.8.1",
58
- "@sap/ux-odata-client": "1.8.1",
59
- "@sap/ux-telemetry": "1.8.1",
60
- "@sap/ux-ui5-info": "1.8.1",
61
- "@sapux/project-spec": "1.8.1",
54
+ "@sap/ux-app-templates": "1.8.3",
55
+ "@sap/ux-cds": "1.8.3",
56
+ "@sap/ux-common-utils": "1.8.3",
57
+ "@sap/ux-control-property-editor": "1.8.3",
58
+ "@sap/ux-odata-client": "1.8.3",
59
+ "@sap/ux-telemetry": "1.8.3",
60
+ "@sap/ux-ui5-info": "1.8.3",
61
+ "@sapux/project-spec": "1.8.3",
62
62
  "@types/marked": "4.0.1",
63
63
  "@types/prompts": "2.0.14",
64
64
  "@types/supertest": "2.0.12",
package/CHANGELOG.md DELETED
@@ -1,377 +0,0 @@
1
- # Change Log
2
- All notable changes to this project are documented in this file.
3
-
4
- This project adheres to [Semantic Versioning](http://semver.org/) and the changelog is formatted based on [Keep a Changelog](http://keepachangelog.com/).
5
- ## [1.8.1] - 2022-11-03
6
- ### Fixed
7
- - Improved Regex for determining if host is a trusted host, when using developer variant creation.
8
- - Fixed an issue where the SAPUI5 version check breaks the starting of the preview.
9
-
10
- ## [1.8.0] - 2022-10-20
11
- ### Fixed
12
- - Fixed an issue with previewing applications when the user is behind a corporate proxy.
13
-
14
- ### Added
15
- - The `fiori-tools-appreload` middleware now watches also for changes in typescript files.
16
-
17
- ## [1.7.4] - 2022-09-08
18
- ### Fixed
19
- - Fixed an issue where the use of the `pathPrefix` property was not working.
20
-
21
- ## [1.7.1] - 2022-08-11
22
- ### Added
23
- - Added a check if the SAPUI5 version is available on the SAPUI5 SDK when starting the application. If not, the nearest highest patch version is used instead.
24
-
25
- ## [1.7.0] - 2022-07-28
26
- ### Changed
27
- - Improved error handling of the `fiori-tools-proxy`
28
-
29
- ### Fixed
30
- - Fixed an issue where previewing an application using a full url destination was not working
31
-
32
- ## [1.6.7] - 2022-07-14
33
- ### Changed
34
- - The `fiori-tools-proxy` is now using the [@sap-ux/backend-proxy-middleware](https://www.npmjs.com/package/@sap-ux/backend-proxy-middleware) for proxying requests to the backend
35
-
36
- ## [1.6.0] - 2022-05-05
37
- ### Changed
38
- - The `fiori-tools-proxy` is now using the [@sap-ux/ui5-proxy-middleware](https://www.npmjs.com/package/@sap-ux/ui5-proxy-middleware) for proxying the UI5 sources
39
-
40
- ## [1.5.5] - 2022-04-21
41
- ### Fixed
42
- - Fixed an issue with the `fiori-tools-servestatic` middleware not serving files starting with a dot
43
-
44
- ## [1.5.4] - 2022-04-07
45
- ### Fixed
46
- - Fixed an issue with escaping runtime arguments on Windows with Node.js version 16
47
-
48
- ## [1.5.3] - 2022-03-24
49
- ### Added
50
- - Added support of new run configuration UI options
51
-
52
- ### Fixed
53
- - Fixed an issue where developer variant creation is not starting with SAPUI5 version 1.100.0 and higher
54
- - Fixed an issue where an exception was thrown for SAPUI5 versions <= 1.65 when starting the application preview
55
-
56
- ## [1.5.2] - 2022-03-10
57
- ### Fixed
58
- - Fixed an issue with the validation of SAPUI5 snapshot versions when starting developer variant creation
59
-
60
- ### Changed
61
- - If a port is explictly defined when previewing the application, then this port is not automatically changed, if it is occupied
62
-
63
- ## [1.5.1] - 2022-02-24
64
- ### Fixed
65
- - Fixed an issue with reading and comparing UI5 versions
66
- - Fixed an issue with previewing applications using services behind a corporate proxy
67
-
68
- ### Changed
69
- - Build is no longer executed automatically before starting the application in an external Fiori Launchpad to accomodate custom build procedures
70
-
71
- ## [1.5.0] - 2022-02-10
72
- ### Fixed
73
- - Fixed an issue with reading and comparing UI5 versions
74
- - Fixed an issue with previewing applications using project based destination
75
-
76
- ### Changed
77
- - Requests are not forwarded anymore to next available middleware if UI5 proxy returns 404
78
-
79
- ## [1.4.7] - 2022-01-27
80
- ### Changed
81
- - Forward request to next available middleware if UI5 proxy response returns 404
82
- - Consolidate UI5 version handling
83
-
84
- ## [1.4.6] - 2022-01-13
85
- ### Fixed
86
- - Improved variant management validation logic
87
-
88
- ## [1.4.3] - 2021-11-18
89
- ### Changed
90
- - Updated help texts
91
-
92
- ### Fixed
93
- - Fixed an issue with resetting the IAppState on the Object Page
94
-
95
- ## [1.4.1] - 2021-11-04
96
- ### Fixed
97
- - Fixed minor issues
98
-
99
- ## [1.4.0] - 2021-10-21
100
- ### Added
101
- - Added a new option to create delivery variants/views
102
-
103
- ### Fixed
104
- - Removed wrong WARN messages in the terminal when executing `npx fiori run`
105
-
106
- ## [1.3.7] - 2021-10-07
107
- ### Changed
108
- - Fixed minor issues and refactoring
109
-
110
- ## [1.3.5] - 2021-09-23
111
- ### Added
112
- - Added help options for SAP Fiori tools CLI. Typing `npx fiori help` will give the list of commands that the command line tools support. Help text for individual `fiori` commands can also be displayed, e.g. `npx fiori add help`.
113
-
114
- ### Fixed
115
- - Stability fixes
116
-
117
- ## [1.3.3] - 2021-09-09
118
- ### Added
119
- - Added instructions for users on how to retrieve the URL of a deployed application on Cloud foundry
120
-
121
- ### Fixed
122
- - Fixed Regex for injecting the UI5 URL into the application's HTML file
123
-
124
- ## [1.3.1] - 2021-08-12
125
- ### Fixed
126
- - Fixed minor issues
127
-
128
- ## [1.3.0] - 2021-07-29
129
- ### Added
130
- - Provided the possibility to load UI5 libs directly from CDN, instead of loading via the fiori-tools-proxy
131
- - Introduced iAppState handling. The iAppState is now being deleted when an application is reloaded
132
-
133
- ## [1.2.5] - 2021-07-15
134
- ### Changed
135
- - Internal improvements and refactoring
136
-
137
- ## [1.2.4] - 2021-07-01
138
- ### Changed
139
- - Minor fixes and refactoring
140
-
141
- ## [1.2.3] - 2021-06-17
142
- ### Added
143
- - Added new configuration parameter `fallthrough` for the fiori-tools-servestatic middleware
144
-
145
- ## [1.2.1] - 2021-06-03
146
- ### Fixed
147
- - Updated dependencies versions because of security fixes
148
-
149
- ### Added
150
- - Support for previewing application with destinations that have as URL the full path to the OData service
151
-
152
- ## [1.2.0] - 2021-05-20
153
- ### Fixed
154
- - Fixed previewing an application with MTA configuration
155
-
156
- ## [1.1.11] - 2021-05-06
157
- ### Added
158
- - Added new command `npx fiori undeploy` to undeploy an application from ABAP system
159
-
160
- ### Fixed
161
- - Fixed an issue causing the application preview to fail if a custom port greater than 9010 is specified
162
-
163
- ## [1.1.9] - 2021-04-08
164
- ### Added
165
- * Added support in proxy for backend system credentials stored in secure store or in .env file
166
- * Added new proxy configuration property: xfwd
167
- * Added a client property to the YAML file to be used for proxy destination handling
168
-
169
- ## [1.1.5] - 2021-03-11
170
- ### Fixed
171
- * Improved handling of runtime arguments
172
-
173
- ### Added
174
- * Added support for proxying WebSockets
175
-
176
- ## [1.1.4] - 2021-02-25
177
- ### Fixed
178
- * Fixed handling of the ui5 version parameter in the Fiori CLI
179
- * Hide credentials from proxy url
180
-
181
- ### Added
182
- * Notify user when new version is available to install
183
-
184
- ## [1.1.2] - 2021-02-11
185
- ### Fixed
186
- * Fixed fetching of user information when creating a system
187
-
188
- ## [1.1.0] - 2021-01-27
189
- ### Fixed
190
- * Fixed HTTPS support for the Livereload of the application
191
- * Fixed automatic SSL certificate creation
192
- * Fixed handling of boolean parameters in the Fiori cli
193
- * Fixed caching issues
194
-
195
- ## [1.0.28] - 2021-01-14
196
- ### Added
197
- * Support preview of applications based on datasource url of a destination configuration inside a destination instance
198
-
199
- ### Fixed
200
- * Fixed several issues in conjunction with preview start in SAP Business Application Studio
201
- * Improved UI of the web page for providing the service key to a service
202
-
203
- ## [1.0.26] - 2020-12-03
204
- ### Added
205
- * Preview support of applications based on SAP API Business Hub services
206
- * Additional instructions provided to the user when generating `flp-config` to allow integration with the Launchpad module using SAP Business Application Studio
207
-
208
- ### Fixed
209
- * Fixed issue when reading the NO_PROXY configuration
210
-
211
- ## [1.0.25] - 2020-11-18
212
- ### Fixed
213
- * Use ATO Catalog to fetch ATO settings
214
- * Other minor fixes
215
-
216
- ### Added
217
- * Proxy support for SAP API Business Hub in SAP Business Application Studio
218
-
219
- ## [1.0.24] - 2020-11-05
220
- ### Fixed
221
- * Fixed dependency installation in the application folder
222
- * Unable to change folder for a project while generating the deployment configuration on windows
223
- * Fixed the generated xs-app.json for non-SAP systems
224
-
225
- ### Added
226
- * Added support for multiple paths configuration for the fiori-tools-servestatic middleware
227
-
228
-
229
- ## [1.0.22] - 2020-10-21
230
- ### Fixed
231
- * Reduced bundle size
232
-
233
- ## [1.0.21] - 2020-10-07
234
- ### Fixed
235
- * Build sources are no longer minified to improve debugging.
236
- * Error logging improved
237
- * Fixed issues with unit tests
238
-
239
- ### Added
240
- * Provided API to read and remove flex changes from the user's workspace
241
-
242
-
243
- ## [1.0.19] - 2020-09-23
244
- ### Fixed
245
- * Connectivity service information was missing from the generated mta.yaml for destinations that require it for deployment
246
-
247
- ### Added
248
- * Support for specifying username/password provided in an environment variable and passing these as CLI arguments, instead of entering these in ui5.yaml file for deployment
249
- * Provide API to write flex changes into the user's workspace
250
-
251
- ## [1.0.18] - 2020-09-09
252
-
253
- ### Fixed
254
- * Fixed issue with re-deployment to ABAP
255
- * Updated version of the livereload package
256
- * Fixed configuration for Fiori Launchpad when deploying to Cloud Foundry
257
-
258
- ### Added
259
- * Support deployment to S/4HANA Cloud
260
-
261
- ## [1.0.16] - 2020-09-02
262
-
263
- ### Fixed
264
- * Fix for UI5 parameters provided as string instead of array
265
- * Fix for caching of ui5 sources
266
- * Correct documentation for command to add deployment config
267
- * Improvement for command prompt when creating deployment config for mta project
268
-
269
- ### Added
270
- * Updated documentation with info relevant to Cloud Foundry
271
-
272
- ## [1.0.15] - 2020-08-12
273
-
274
- ### Fixed
275
- * Intent ID is not overwritten when creating the SAP Fiori Launchpad deploy configuration
276
-
277
- ## [1.0.11] - 2020-07-29
278
-
279
- ### Fixed
280
- * Fixed path re-write issue in App Studio
281
- * Fixed Windows bundling issue
282
- * Fixed issue with fiori run command on Windows
283
- * Other minor fixes
284
-
285
- ### Added
286
- * Deploy to Cloud Foundry
287
- * Confirmation added when starting the deployment process
288
- * Confirmation added for app name during deploy config generation
289
- * Confirmation added for target name during deploy config generation
290
- * Confirmation added for sap client during deploy config generation
291
-
292
- ## [1.0.9] - 2020-07-16
293
-
294
- ### Fixed
295
-
296
- * Fix loading of custom libs
297
-
298
- ### Added
299
-
300
- * Add run command to Fiori CLI
301
- * Read fiori run cli params in the proxy middleware
302
- * Readme file updated
303
-
304
- ## [1.0.8] - 2020-07-01
305
- ### Fixed
306
- - Readme file updated
307
-
308
- ## [1.0.7] - 2020-06-17
309
- ### Fixed
310
- - Minor stability fixes
311
-
312
- ## [1.0.0] - 2020-06-16
313
- Release status: GA
314
-
315
- We are pleased to announce the official GA of the ux-ui5-tooling.
316
-
317
- ## [0.0.89] - 2020-06-03
318
- ### Added
319
- - Multiple back-ends support
320
- - Support for custom UI5 modules
321
-
322
- ## [0.0.86] - 2020-05-20
323
- ### Added
324
- - Additional deploy functionality (see `npx fiori help`)
325
- - New command `fiori add flp-config` to add Fiori launchpad configuration
326
- - System keys can be uploaded to users secure store
327
-
328
- ### Fixed
329
- - Logged URL after deploy is now correct and can be opened
330
- - Namespace check for `z` space during deploy configuration is not case sensitive anymore
331
- - Package name is now all capitals when sending to backend during deployment
332
- - Warning before overwriting existing deploy configuration
333
-
334
- ## [0.0.85] - 2020-05-08
335
- ### Added
336
- - Downloading of UI5 sources from NPM
337
-
338
- ### Fixed
339
- - Reading proxy configuration from VSCode
340
- - Loading UI5 sources in SAP Business Application Studio
341
- - Live reload configuration
342
-
343
- ## [0.0.84] - 2020-04-22
344
- ### Added
345
- - Destinations support for SAP Business Application Studio
346
-
347
- ### Fixed
348
- - Cookies and CSRF token issues fixed
349
-
350
- ## [0.0.81] - 2020-04-09
351
- ### Added
352
- - Deploy to ABAP functionality with OAuth support
353
- - New middleware for serving local ui5 sources
354
- - Support of snapshot UI5 versions for internal users
355
-
356
- ### Fixed
357
- - Fix preview with local UI5 resources
358
- - Add proper handling for ui5Uri arg
359
- - Add proper handling of space separated & quoted runtime args
360
-
361
- ## [0.0.79] - 2020-03-24
362
- ### Fixed
363
- - Resolved issue when requests are tunneled via proxy
364
-
365
- ## [0.0.68] - 2020-02-07
366
- ### Added
367
- - CHANGELOG.md documenting the changes
368
- - Internal: enhanced test coverage
369
-
370
- ## [0.0.65] - 2020-01-31
371
- ### Fixed
372
- - Resolved issues when proxying OData requests to SAP systems with CSRF protection enabled
373
-
374
- ## [0.0.62] - 2020-01-17
375
- ### Added
376
- - Initial version
377
- - Included proxy and live load middlewares