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

@fluentui/babel-make-styles

Package Overview
Dependencies
Maintainers
12
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/babel-make-styles - npm Package Compare versions

Comparing version 9.0.0-alpha.11 to 9.0.0-alpha.12

__fixtures__/function-mixin/code.ts

62

CHANGELOG.json

@@ -5,3 +5,18 @@ {

{
"date": "Fri, 21 May 2021 07:31:18 GMT",
"date": "Wed, 02 Jun 2021 07:35:33 GMT",
"tag": "@fluentui/babel-make-styles_v9.0.0-alpha.12",
"version": "9.0.0-alpha.12",
"comments": {
"prerelease": [
{
"comment": "Add support for call expression on babel make-styles transformer",
"author": "bsunderhus@microsoft.com",
"commit": "7f5734bd8a2a124969c6402534605fe0ee9df4af",
"package": "@fluentui/babel-make-styles"
}
]
}
},
{
"date": "Tue, 01 Jun 2021 07:31:58 GMT",
"tag": "@fluentui/babel-make-styles_v9.0.0-alpha.11",

@@ -12,2 +27,47 @@ "version": "9.0.0-alpha.11",

{
"comment": "Revert \"chore: enable Jest aliases for converged packages (#18337)\"",
"author": "olfedias@microsoft.com",
"commit": "b5f2a02b37c8ea394a65f7a22bff057de93370dd",
"package": "@fluentui/babel-make-styles"
}
]
}
},
{
"date": "Fri, 28 May 2021 07:33:57 GMT",
"tag": "@fluentui/babel-make-styles_v9.0.0-alpha.11",
"version": "9.0.0-alpha.11",
"comments": {
"none": [
{
"comment": "enable Jest aliases",
"author": "olfedias@microsoft.com",
"commit": "5379823a6f53bd36a936806153d228b9a0ef0543",
"package": "@fluentui/babel-make-styles"
}
]
}
},
{
"date": "Wed, 26 May 2021 07:35:43 GMT",
"tag": "@fluentui/babel-make-styles_v9.0.0-alpha.11",
"version": "9.0.0-alpha.11",
"comments": {
"none": [
{
"comment": "Bump @fluentui/react-make-styles to v9.0.0-alpha.38",
"author": "olfedias@microsoft.com",
"commit": "d2504c72ec7fba0cf4dcf1984c2e1a9322720225",
"package": "@fluentui/babel-make-styles"
}
]
}
},
{
"date": "Fri, 21 May 2021 07:34:54 GMT",
"tag": "@fluentui/babel-make-styles_v9.0.0-alpha.11",
"version": "9.0.0-alpha.11",
"comments": {
"none": [
{
"comment": "Bump @fluentui/react-theme to v9.0.0-alpha.13",

@@ -14,0 +74,0 @@ "author": "miroslav.stastny@microsoft.com",

# Change Log - @fluentui/babel-make-styles
This log was last generated on Fri, 21 May 2021 07:31:18 GMT and should not be manually modified.
This log was last generated on Wed, 02 Jun 2021 07:35:33 GMT and should not be manually modified.
<!-- Start content -->
## [9.0.0-alpha.12](https://github.com/microsoft/fluentui/tree/@fluentui/babel-make-styles_v9.0.0-alpha.12)
Wed, 02 Jun 2021 07:35:33 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/babel-make-styles_v9.0.0-alpha.11..@fluentui/babel-make-styles_v9.0.0-alpha.12)
### Changes
- Add support for call expression on babel make-styles transformer ([PR #18404](https://github.com/microsoft/fluentui/pull/18404) by bsunderhus@microsoft.com)
## [9.0.0-alpha.11](https://github.com/microsoft/fluentui/tree/@fluentui/babel-make-styles_v9.0.0-alpha.11)
Fri, 21 May 2021 07:31:18 GMT
Fri, 21 May 2021 07:34:54 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/babel-make-styles_v9.0.0-alpha.10..@fluentui/babel-make-styles_v9.0.0-alpha.11)

@@ -11,0 +20,0 @@

@@ -13,2 +13,5 @@ import { NodePath, PluginObj, PluginPass, types as t } from '@babel/core';

} | {
kind: 'LAZY_EXPRESSION_CALL';
nodePath: NodePath<t.CallExpression>;
} | {
kind: 'LAZY_IDENTIFIER';

@@ -15,0 +18,0 @@ nodePath: NodePath<t.Identifier>;

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

styleSlots.forEach(function (styleSlotPath) {
var _a, _b, _c, _d, _e, _f, _g, _h;
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
if (styleSlotPath.isObjectMethod()) {

@@ -299,2 +299,9 @@ throw styleSlotPath.buildCodeFrameError('Object methods are not supported for defining styles');

}
if (stylesPath.isCallExpression()) {
(_j = state.styleNodes) === null || _j === void 0 ? void 0 : _j.push({
kind: 'LAZY_EXPRESSION_CALL',
nodePath: stylesPath,
});
return;
}
}

@@ -324,3 +331,5 @@ throw styleSlotPath.buildCodeFrameError(constants_1.UNHANDLED_CASE_ERROR);

var pathsToEvaluate = state.styleNodes.reduce(function (acc, styleNode) {
if (styleNode.kind === 'LAZY_IDENTIFIER' || styleNode.kind === 'LAZY_FUNCTION') {
if (styleNode.kind === 'LAZY_IDENTIFIER' ||
styleNode.kind === 'LAZY_FUNCTION' ||
styleNode.kind === 'LAZY_EXPRESSION_CALL') {
return tslib_1.__spreadArrays(acc, [styleNode.nodePath]);

@@ -327,0 +336,0 @@ }

@@ -145,2 +145,7 @@ "use strict";

}
// call expressions should be wrapped with IIFE to ensure that "theme" object will be passed without collisions
// TODO: right now this only for call expression that returns a function that takes "theme" object as argument
if (nodePath.isCallExpression()) {
return core_1.types.callExpression(hoistedNode, [core_1.types.identifier(themeVariableName)]);
}
return hoistedNode;

@@ -147,0 +152,0 @@ });

4

package.json
{
"name": "@fluentui/babel-make-styles",
"version": "9.0.0-alpha.11",
"version": "9.0.0-alpha.12",
"description": "A Babel plugin that performs build time transforms for @fluentui/make-styles",

@@ -22,3 +22,3 @@ "main": "lib/src/index.js",

"@fluentui/eslint-plugin": "^1.3.0",
"@fluentui/react-make-styles": "^9.0.0-alpha.37",
"@fluentui/react-make-styles": "^9.0.0-alpha.38",
"@fluentui/react-theme": "^9.0.0-alpha.13",

@@ -25,0 +25,0 @@ "@fluentui/scripts": "^1.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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