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

@emotion/cache

Package Overview
Dependencies
Maintainers
3
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/cache - npm Package Compare versions

Comparing version 11.0.0-next.6 to 11.0.0-next.10

8

CHANGELOG.md
# @emotion/cache
## 11.0.0-next.10
### Patch Changes
- [`dfe79aca`](https://github.com/emotion-js/emotion/commit/dfe79aca696fc688f960218b16afee197926fe71) [#1572](https://github.com/emotion-js/emotion/pull/1572) Thanks [@Andarist](https://github.com/Andarist)! - Use sheet's `rehydrate` method for SSRed styles which inserts rehydrated styles at correct position when used in combination with `prepend` option.
- Updated dependencies [[`1e4a741d`](https://github.com/emotion-js/emotion/commit/1e4a741de6424d3d9c1f3ca9695e1953bed3a194), [`dfe79aca`](https://github.com/emotion-js/emotion/commit/dfe79aca696fc688f960218b16afee197926fe71)]:
- @emotion/sheet@0.10.0-next.1
## 11.0.0-next.6

@@ -4,0 +12,0 @@

7

dist/cache.browser.cjs.js

@@ -109,2 +109,3 @@ 'use strict';

var container;
var nodesToRehydrate = [];

@@ -120,6 +121,3 @@ {

});
if (node.parentNode !== container) {
container.appendChild(node);
}
nodesToRehydrate.push(node);
});

@@ -216,2 +214,3 @@ }

};
cache.sheet.rehydrate(nodesToRehydrate);
return cache;

@@ -218,0 +217,0 @@ };

@@ -103,2 +103,3 @@ import { StyleSheet } from '@emotion/sheet';

var container;
var nodesToRehydrate = [];

@@ -114,6 +115,3 @@ {

});
if (node.parentNode !== container) {
container.appendChild(node);
}
nodesToRehydrate.push(node);
});

@@ -210,2 +208,3 @@ }

};
cache.sheet.rehydrate(nodesToRehydrate);
return cache;

@@ -212,0 +211,0 @@ };

@@ -138,2 +138,3 @@ 'use strict';

var container;
var nodesToRehydrate = [];

@@ -149,6 +150,3 @@ if (isBrowser) {

});
if (node.parentNode !== container) {
container.appendChild(node);
}
nodesToRehydrate.push(node);
});

@@ -299,2 +297,3 @@ }

};
cache.sheet.rehydrate(nodesToRehydrate);
return cache;

@@ -301,0 +300,0 @@ };

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

});
var container, _insert, stylis = new Stylis(stylisOptions), inserted = {};
var container, _insert, stylis = new Stylis(stylisOptions), inserted = {}, nodesToRehydrate = [];
if (isBrowser) {

@@ -71,3 +71,3 @@ container = options.container || document.head;

inserted[id] = !0;
})), node.parentNode !== container && container.appendChild(node);
})), nodesToRehydrate.push(node);
}));

@@ -106,5 +106,5 @@ }

};
return cache;
return cache.sheet.rehydrate(nodesToRehydrate), cache;
};
exports.default = createCache;

@@ -132,2 +132,3 @@ import { StyleSheet } from '@emotion/sheet';

var container;
var nodesToRehydrate = [];

@@ -143,6 +144,3 @@ if (isBrowser) {

});
if (node.parentNode !== container) {
container.appendChild(node);
}
nodesToRehydrate.push(node);
});

@@ -293,2 +291,3 @@ }

};
cache.sheet.rehydrate(nodesToRehydrate);
return cache;

@@ -295,0 +294,0 @@ };

{
"name": "@emotion/cache",
"version": "11.0.0-next.6",
"version": "11.0.0-next.10",
"description": "emotion's cache",

@@ -18,3 +18,3 @@ "main": "dist/cache.cjs.js",

"dependencies": {
"@emotion/sheet": "0.10.0-next.0",
"@emotion/sheet": "0.10.0-next.1",
"@emotion/stylis": "0.8.4",

@@ -34,4 +34,4 @@ "@emotion/utils": "0.11.2",

"dist",
"types"
"types/*.d.ts"
]
}

@@ -69,2 +69,3 @@ // @flow

let container: HTMLElement
const nodesToRehydrate = []
if (isBrowser) {

@@ -81,5 +82,3 @@ container = options.container || document.head

})
if (node.parentNode !== container) {
container.appendChild(node)
}
nodesToRehydrate.push(node)
})

@@ -254,2 +253,5 @@ }

}
cache.sheet.rehydrate(nodesToRehydrate)
return cache

@@ -256,0 +258,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