Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: atlassian-labs/compiled
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @compiled/react@0.13.0
Choose a base ref
...
head repository: atlassian-labs/compiled
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @compiled/react@0.13.1
Choose a head ref
  • 3 commits
  • 4 files changed
  • 3 contributors

Commits on Apr 27, 2023

  1. remove runtime side effects (#1447)

    * remove runtime side effects
    
    * Add changeset
    AtlassianRubberDuck authored Apr 27, 2023
    Copy the full SHA
    cd97765 View commit details
  2. Copy the full SHA
    185561c View commit details

Commits on Apr 28, 2023

  1. Version Packages (#1448)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    atlas-dst-bot and github-actions[bot] authored Apr 28, 2023
    Copy the full SHA
    a90f9fd View commit details
Showing with 8 additions and 24 deletions.
  1. +6 −0 packages/react/CHANGELOG.md
  2. +2 −6 packages/react/package.json
  3. +0 −7 packages/react/src/global.d.ts
  4. +0 −11 packages/react/src/runtime/index.ts
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @compiled/react

## 0.13.1

### Patch Changes

- cd977654: Remove `@compiled/react` runtime side-effect to ensure no error if the module is reloaded.

## 0.13.0

### Minor Changes
8 changes: 2 additions & 6 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@compiled/react",
"version": "0.13.0",
"version": "0.13.1",
"description": "A familiar and performant compile time CSS-in-JS library for React.",
"keywords": [
"compiled",
@@ -17,11 +17,7 @@
},
"license": "Apache-2.0",
"author": "Michael Dougall",
"sideEffects": [
"./dist/browser/runtime/index.js",
"./dist/cjs/runtime/index.js",
"./dist/esm/runtime/index.js"
],
"sideEffects": false,
"exports": {
".": {
"import": [
7 changes: 0 additions & 7 deletions packages/react/src/global.d.ts

This file was deleted.

11 changes: 0 additions & 11 deletions packages/react/src/runtime/index.ts
Original file line number Diff line number Diff line change
@@ -3,14 +3,3 @@ export { default as CC } from './style-cache';
export { default as ax } from './ax';
export { default as ac, clearCache as clearAcCache } from './ac';
export { default as ix } from './css-custom-property';

// Ensure only one `@compiled/runtime` exist in the bundle.
// This is because `ac` and `style-cache` need to access a singlton.
if (typeof window !== 'undefined') {
if (typeof window.__COMPILED_IMPORTED__ !== 'undefined') {
throw new Error(
'Multiple instances of Compiled Runtime have been found on the page. A likely cause is that muliple versions of `@compiled/react` exist in JS bundle.'
);
}
window.__COMPILED_IMPORTED__ = true;
}