Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ui5/builder

Package Overview
Dependencies
Maintainers
4
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ui5/builder - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0

15

CHANGELOG.md

@@ -5,6 +5,16 @@ # Changelog

A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v1.9.0...HEAD).
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v1.10.0...HEAD).
<a name="v1.10.0"></a>
## [v1.10.0] - 2020-02-10
### Bug Fixes
- Ensure proper handling of multi-byte characters in streams ([#411](https://github.com/SAP/ui5-builder/issues/411)) [`e906ec0`](https://github.com/SAP/ui5-builder/commit/e906ec0c3c3eb9fef874f2b7666c692915a496c6)
- **Bundling:** Dynamic preload calls should not emit warnings [`4d22b37`](https://github.com/SAP/ui5-builder/commit/4d22b37852ec130fb3198476e4a6225a47e2b657)
### Features
- Add experimental CSS variables and skeleton build ([#393](https://github.com/SAP/ui5-builder/issues/393)) [`df8c39b`](https://github.com/SAP/ui5-builder/commit/df8c39b3f5a69086662b6f92c32e1364c1a93903)
<a name="v1.9.0"></a>
## [v1.9.0] - 2020-01-12
## [v1.9.0] - 2020-01-13
### Bug Fixes

@@ -319,2 +329,3 @@ - Use 'defaultFileTypes' from bundle configuration ([#385](https://github.com/SAP/ui5-builder/issues/385)) [`c21e13e`](https://github.com/SAP/ui5-builder/commit/c21e13ea2d7f629b1f91b9acf625989f396c6b4f)

[v1.10.0]: https://github.com/SAP/ui5-builder/compare/v1.9.0...v1.10.0
[v1.9.0]: https://github.com/SAP/ui5-builder/compare/v1.8.0...v1.9.0

@@ -321,0 +332,0 @@ [v1.8.0]: https://github.com/SAP/ui5-builder/compare/v1.7.1...v1.8.0

2

lib/lbt/analyzer/JSModuleAnalyzer.js

@@ -610,3 +610,3 @@ "use strict";

} else {
log.warn("Cannot evaluate registerPreloadedModules: '%s'", modules && modules.type);
log.verbose("Cannot evaluate registerPreloadedModules: '%s'", modules && modules.type);
}

@@ -613,0 +613,0 @@ }

@@ -17,4 +17,5 @@ const replaceStream = require("replacestream");

return Promise.all(resources.map((resource) => {
const stream = resource.getStream()
.pipe(replaceStream(options.pattern, options.replacement));
let stream = resource.getStream();
stream.setEncoding("utf8");
stream = stream.pipe(replaceStream(options.pattern, options.replacement));

@@ -21,0 +22,0 @@ resource.setStream(stream);

@@ -33,5 +33,6 @@ const log = require("@ui5/logger").getLogger("builder:processors:themeBuilder");

* @param {boolean} [options.compress=false] Compress build output (CSS / JSON)
* @param {boolean} [options.cssVariables=false] Generates the CSS variables (css-variables.css, css-variables.source.less) and the skeleton for a theme (library-skeleton.css, [library-skeleton-RTL.css])
* @returns {Promise<module:@ui5/fs.Resource[]>} Resolving with array of created files
*/
build(resources, {compress = false} = {}) {
build(resources, {compress = false, cssVariables = false} = {}) {
const files = [];

@@ -55,3 +56,4 @@

compress
}
},
cssVariables
}).then((result) => {

@@ -76,2 +78,23 @@ const themeDir = path.dirname(resource.getPath());

files.push(libCss, libCssRtl, libParams);
if (cssVariables) {
const libCssVarsSource = new Resource({
path: themeDir + "/css-variables.source.less",
string: result.cssVariablesSource
});
const libCssVars = new Resource({
path: themeDir + "/css-variables.css",
string: result.cssVariables
});
const libCssSkel = new Resource({
path: themeDir + "/library-skeleton.css",
string: result.cssSkeleton
});
const libCssSkelRtl = new Resource({
path: themeDir + "/library-skeleton-RTL.css",
string: result.cssSkeletonRtl
});
files.push(libCssVarsSource, libCssVars, libCssSkel, libCssSkelRtl);
}
});

@@ -106,2 +129,3 @@ };

* @param {Object} [parameters.options.compress=false] Compress build output (CSS / JSON)
* @param {boolean} [parameters.options.cssVariables=false] Generates the CSS variables (css-variables.css, css-variables.source.less) and the skeleton for a theme (library-skeleton.css, [library-skeleton-RTL.css])
* @returns {Promise<module:@ui5/fs.Resource[]>} Promise resolving with theme resources

@@ -111,4 +135,3 @@ */

const themeBuilder = new ThemeBuilder({fs});
const compress = options && options.compress;
return themeBuilder.build(resources, {compress}).then((files) => {
return themeBuilder.build(resources, options).then((files) => {
themeBuilder.clearCache();

@@ -115,0 +138,0 @@ return files;

@@ -18,2 +18,3 @@ const themeBuilder = require("../processors/themeBuilder");

* @param {boolean} [parameters.options.compress=true]
* @param {boolean} [parameters.options.cssVariables=false]
* @returns {Promise<undefined>} Promise resolving with <code>undefined</code> once data has been written

@@ -64,3 +65,4 @@ */

options: {
compress
compress,
cssVariables: !!options.cssVariables
}

@@ -67,0 +69,0 @@ });

@@ -27,3 +27,3 @@ const AbstractBuilder = require("../AbstractBuilder");

"a Component.js, you might be missing a manifest.json file. " +
"Also see: https://github.com/SAP/ui5-builder#application");
"Also see: https://sap.github.io/ui5-tooling/pages/Builder/#application");
}

@@ -30,0 +30,0 @@

@@ -26,3 +26,3 @@ const AbstractBuilder = require("../AbstractBuilder");

"might be missing a manifest.json or .library file. " +
"Also see: https://github.com/SAP/ui5-builder#library");
"Also see: https://sap.github.io/ui5-tooling/pages/Builder/#library");
}

@@ -29,0 +29,0 @@

{
"name": "@ui5/builder",
"version": "1.9.0",
"version": "1.10.0",
"description": "UI5 Tooling - Builder",

@@ -104,3 +104,3 @@ "author": "SAP SE (https://www.sap.com)",

"escape-unicode": "^0.2.0",
"escodegen": "^1.12.1",
"escodegen": "^1.14.1",
"escope": "^3.6.0",

@@ -112,3 +112,3 @@ "esprima": "^4.0.1",

"jsdoc": "~3.6.3",
"less-openui5": "^0.8.3",
"less-openui5": "^0.8.4",
"make-dir": "^3.0.0",

@@ -118,6 +118,6 @@ "pretty-data": "^0.40.0",

"replacestream": "^4.0.3",
"rimraf": "^3.0.0",
"rimraf": "^3.0.1",
"semver": "^6.3.0",
"slash": "^3.0.0",
"terser": "^4.6.2",
"terser": "^4.6.3",
"xml2js": "^0.4.23",

@@ -132,3 +132,3 @@ "yazl": "^2.5.1"

"cross-env": "^6.0.3",
"docdash": "^1.1.1",
"docdash": "^1.2.0",
"eslint": "^5.16.0",

@@ -135,0 +135,0 @@ "eslint-config-google": "^0.13.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc