Socket
Socket
Sign inDemoInstall

@vanilla-extract/css

Package Overview
Dependencies
Maintainers
4
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vanilla-extract/css - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

6

CHANGELOG.md
# @vanilla-extract/css
## 0.5.1
### Patch Changes
- [#146](https://github.com/seek-oss/vanilla-extract/pull/146) [`bf51ab5`](https://github.com/seek-oss/vanilla-extract/commit/bf51ab56f5b10474476ef61a00edaaf297a10218) Thanks [@markdalgleish](https://github.com/markdalgleish)! - Fix escaped characters in selectors
## 0.5.0

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@vanilla-extract/css",
"version": "0.5.0",
"version": "0.5.1",
"description": "Zero-runtime Stylesheets-in-TypeScript",

@@ -5,0 +5,0 @@ "sideEffects": true,

@@ -33,10 +33,2 @@ 'use strict';

return selector.split(',').map(selectorPart => {
if (selectorPart.indexOf(targetClassName) === -1) {
throw new Error(dedent__default['default']`
Invalid selector: ${replaceTarget()}
Selectors must target the ampersand character ('&'), which refers to the generated class name, e.g. '&:nth-child(2n)'
`);
}
let currentRule;

@@ -66,3 +58,3 @@

Style selectors must end with the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}.
Style selectors must target the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}.

@@ -69,0 +61,0 @@ This is to ensure that each style block only affects the styling of a single class.

@@ -24,10 +24,2 @@ import { getVarName } from '@vanilla-extract/private';

return selector.split(',').map(selectorPart => {
if (selectorPart.indexOf(targetClassName) === -1) {
throw new Error(dedent`
Invalid selector: ${replaceTarget()}
Selectors must target the ampersand character ('&'), which refers to the generated class name, e.g. '&:nth-child(2n)'
`);
}
let currentRule;

@@ -57,3 +49,3 @@

Style selectors must end with the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}.
Style selectors must target the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}.

@@ -60,0 +52,0 @@ This is to ensure that each style block only affects the styling of a single class.

@@ -33,10 +33,2 @@ 'use strict';

return selector.split(',').map(selectorPart => {
if (selectorPart.indexOf(targetClassName) === -1) {
throw new Error(dedent__default['default']`
Invalid selector: ${replaceTarget()}
Selectors must target the ampersand character ('&'), which refers to the generated class name, e.g. '&:nth-child(2n)'
`);
}
let currentRule;

@@ -66,3 +58,3 @@

Style selectors must end with the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}.
Style selectors must target the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}.

@@ -69,0 +61,0 @@ This is to ensure that each style block only affects the styling of a single class.

@@ -33,10 +33,2 @@ 'use strict';

return selector.split(',').map(selectorPart => {
if (selectorPart.indexOf(targetClassName) === -1) {
throw new Error(dedent__default['default']`
Invalid selector: ${replaceTarget()}
Selectors must target the ampersand character ('&'), which refers to the generated class name, e.g. '&:nth-child(2n)'
`);
}
let currentRule;

@@ -66,3 +58,3 @@

Style selectors must end with the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}.
Style selectors must target the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}.

@@ -69,0 +61,0 @@ This is to ensure that each style block only affects the styling of a single class.

@@ -24,10 +24,2 @@ import { getVarName } from '@vanilla-extract/private';

return selector.split(',').map(selectorPart => {
if (selectorPart.indexOf(targetClassName) === -1) {
throw new Error(dedent`
Invalid selector: ${replaceTarget()}
Selectors must target the ampersand character ('&'), which refers to the generated class name, e.g. '&:nth-child(2n)'
`);
}
let currentRule;

@@ -57,3 +49,3 @@

Style selectors must end with the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}.
Style selectors must target the '&' character (along with any modifiers), e.g. ${'`${parent} &`'} or ${'`${parent} &:hover`'}.

@@ -60,0 +52,0 @@ This is to ensure that each style block only affects the styling of a single class.

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