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.11.3
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.11.4
Choose a head ref
  • 12 commits
  • 16 files changed
  • 4 contributors

Commits on Jan 24, 2023

  1. chore(deps): update postcss packages (#1277)

    * chore(deps): update postcss packages
    
    * Disable autoprefixer for extract-plugin tests
    
    * Add changeset
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Jake Lane <jlane2@atlassian.com>
    renovate[bot] and JakeLane authored Jan 24, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b696cd2 View commit details
  2. chore(deps): update eslint packages to ^5.49.0 (#1395)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 24, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c470ba1 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f2ecbbf View commit details

Commits on Jan 30, 2023

  1. chore(deps): update babel monorepo (#1397)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 30, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1c67147 View commit details
  2. chore(deps): update definitelytyped (#1398)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 30, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3a0bcaa View commit details

Commits on Jan 31, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a66574f View commit details
  2. chore(deps): update dependency typescript to ^4.9.5 (#1400)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 31, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    69ce8de View commit details
  3. chore(deps): update eslint packages (#1401)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 31, 2023
    Copy the full SHA
    c436ffd View commit details
  4. chore(deps): update storybook packages to ^6.5.16 (#1402)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 31, 2023
    Copy the full SHA
    e0724a0 View commit details

Commits on Feb 1, 2023

  1. chore(deps): update eslint packages to ^5.50.0 (#1403)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 1, 2023
    Copy the full SHA
    445a13e View commit details

Commits on Feb 3, 2023

  1. Fix isServerEnvironment check (#1404)

    * Update isServerEnvironment to support different SSR environment
    
    * Add changeset
    JakeLane authored Feb 3, 2023
    Copy the full SHA
    6df1976 View commit details
  2. Version Packages (#1394)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    atlas-dst-bot and github-actions[bot] authored Feb 3, 2023
    Copy the full SHA
    6367038 View commit details
6 changes: 1 addition & 5 deletions examples/ssr/package.json
Original file line number Diff line number Diff line change
@@ -7,10 +7,6 @@
"start": "razzle start",
"start:prod": "NODE_ENV=production node build/server.js"
},
"resolutions": {
"mini-css-extract-plugin": "^1.6.2",
"webpack-dev-server": "^4.7.4"
},
"dependencies": {
"@babel/helper-builder-react-jsx": "^7.19.0",
"@babel/helper-builder-react-jsx-experimental": "^7.12.11",
@@ -23,7 +19,7 @@
"babel-preset-razzle": "^4.2.18",
"html-webpack-plugin": "^5.5.0",
"mini-css-extract-plugin": "^0.9.0",
"postcss": "^8.4.14",
"postcss": "^8.4.21",
"razzle": "^4.2.18",
"razzle-dev-utils": "^4.2.18",
"webpack": "^5.71.0",
30 changes: 12 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -56,15 +56,9 @@
}
},
"resolutions": {
"@babel/core": "^7.20.12",
"css-what": "^5.1.0",
"jest": "^26.6.3",
"mini-css-extract-plugin": "^1.6.2",
"nth-check": "^2.1.1",
"react": "^17.0.2",
"typescript": "^4.9.4",
"unset-value": "^2.0.1",
"webpack-dev-server": "^4.7.4"
"css-what": ">=5.0.1",
"nth-check": ">=2.0.1",
"typescript": "^4.9.5"
},
"devDependencies": {
"@babel/preset-env": "^7.20.2",
@@ -76,30 +70,30 @@
"@compiled/jest": "*",
"@compiled/react": "*",
"@size-limit/preset-big-lib": "^8.1.2",
"@storybook/addons": "^6.4.20",
"@storybook/addons": "^6.5.16",
"@storybook/builder-webpack5": "^6.4.20",
"@storybook/manager-webpack5": "^6.4.20",
"@storybook/react": "^6.4.20",
"@storybook/react": "^6.5.16",
"@types/jest": "^27.5.2",
"@types/node": "^18.11.18",
"@types/react": "^17.0.52",
"@types/react": "^17.0.53",
"@types/react-dom": "^17.0.18",
"@types/svgo": "^2.6.4",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"babel-loader": "^8.2.4",
"eslint": "^8.32.0",
"eslint": "^8.33.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-json-files": "^2.1.0",
"eslint-plugin-react": "^7.32.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"flow-bin": "^0.183.0",
"flowgen": "^1.20.1",
"husky": "^4.3.8",
"jest": "^26.6.3",
"jest-extended": "^0.11.5",
"jest-watch-typeahead": "^2.2.1",
"jest-watch-typeahead": "^0.6.5",
"loki": "^0.31.0",
"prettier": "^2.8.3",
"pretty-quick": "^3.1.3",
@@ -112,7 +106,7 @@
"ts-transform-define": "^0.1.10",
"tsconfig-paths": "^4.1.2",
"ttypescript": "^1.5.15",
"typescript": "^4.9.4"
"typescript": "^4.9.5"
},
"engines": {
"node": "^v16.19.0"
4 changes: 2 additions & 2 deletions packages/babel-plugin-strip-runtime/package.json
Original file line number Diff line number Diff line change
@@ -22,13 +22,13 @@
"@babel/core": "^7.20.12",
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/template": "^7.20.7",
"@babel/traverse": "^7.20.12",
"@babel/traverse": "^7.20.13",
"@babel/types": "^7.20.7",
"@compiled/utils": "^0.6.17"
},
"devDependencies": {
"@compiled/babel-plugin": "*",
"@types/babel__core": "^7.1.20",
"@types/babel__core": "^7.20.0",
"prettier": "^2.8.3"
}
}
8 changes: 4 additions & 4 deletions packages/babel-plugin/package.json
Original file line number Diff line number Diff line change
@@ -20,13 +20,13 @@
],
"dependencies": {
"@babel/core": "^7.20.12",
"@babel/generator": "^7.20.7",
"@babel/generator": "^7.20.14",
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/parser": "^7.20.7",
"@babel/parser": "^7.20.13",
"@babel/plugin-syntax-jsx": "^7.18.6",
"@babel/plugin-transform-flow-strip-types": "^7.19.0",
"@babel/template": "^7.20.7",
"@babel/traverse": "^7.20.12",
"@babel/traverse": "^7.20.13",
"@babel/types": "^7.20.7",
"@compiled/css": "^0.8.8",
"@compiled/utils": "^0.6.17",
@@ -36,7 +36,7 @@
"devDependencies": {
"@compiled-private/module-a": "^0.0.2",
"@compiled/benchmark": "1.0.1",
"@types/babel__core": "^7.1.20",
"@types/babel__core": "^7.20.0",
"@types/benchmark": "^2.1.2",
"@types/resolve": "^1.20.2",
"benchmark": "^2.1.4",
2 changes: 1 addition & 1 deletion packages/codemods/package.json
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@
"codeshift.config.js"
],
"resolutions": {
"unset-value": "^2.0.1"
"unset-value": ">=2.0.1"
},
"dependencies": {
"@compiled/utils": "^0.6.16",
6 changes: 6 additions & 0 deletions packages/css/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @compiled/css

## 0.8.9

### Patch Changes

- b696cd24: Bumping postcss packages

## 0.8.8

### Patch Changes
15 changes: 7 additions & 8 deletions packages/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@compiled/css",
"version": "0.8.8",
"version": "0.8.9",
"description": "A familiar and performant compile time CSS-in-JS library for React.",
"homepage": "https://compiledcssinjs.com/docs/pkg-css",
"bugs": "https://github.com/atlassian-labs/compiled/issues/new?assignees=&labels=bug&template=bug_report.md",
@@ -19,18 +19,17 @@
"src"
],
"resolutions": {
"css-what": "^5.1.0",
"cssnano-preset-default": "^5.2.12",
"nth-check": "^2.1.1"
"css-what": ">=5.0.1",
"nth-check": ">=2.0.1"
},
"dependencies": {
"@compiled/utils": "^0.6.17",
"autoprefixer": "^10.4.7",
"cssnano-preset-default": "^5.2.12",
"postcss": "^8.4.14",
"autoprefixer": "^10.4.13",
"cssnano-preset-default": "^5.2.13",
"postcss": "^8.4.21",
"postcss-nested": "^5.0.6",
"postcss-normalize-whitespace": "^5.1.1",
"postcss-selector-parser": "^6.0.10",
"postcss-selector-parser": "^6.0.11",
"postcss-values-parser": "^6.0.2"
},
"devDependencies": {
6 changes: 3 additions & 3 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -22,9 +22,9 @@
"devDependencies": {
"@babel/eslint-parser": "^7.19.1",
"@types/estree": "^1.0.0",
"@typescript-eslint/parser": "^5.48.2",
"eslint": "^8.32.0",
"typescript": "^4.9.4"
"@typescript-eslint/parser": "^5.50.0",
"eslint": "^8.33.0",
"typescript": "^4.9.5"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
4 changes: 2 additions & 2 deletions packages/parcel-transformer/package.json
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
],
"dependencies": {
"@babel/core": "^7.20.12",
"@babel/generator": "^7.20.7",
"@babel/generator": "^7.20.14",
"@compiled/babel-plugin": "^0.17.3",
"@compiled/babel-plugin-strip-runtime": "^0.17.3",
"@compiled/utils": "^0.6.17",
@@ -33,7 +33,7 @@
"@parcel/core": "^2.3.1",
"@parcel/fs": "^2.3.1",
"@parcel/types": "^2.3.1",
"@types/babel__core": "^7.1.20",
"@types/babel__core": "^7.20.0",
"prettier": "^2.8.3"
},
"engines": {
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.11.4

### Patch Changes

- 6df1976c: Update isServerEnvironment to support different SSR environment

## 0.11.3

### Patch Changes
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@compiled/react",
"version": "0.11.3",
"version": "0.11.4",
"description": "A familiar and performant compile time CSS-in-JS library for React.",
"keywords": [
"compiled",
9 changes: 6 additions & 3 deletions packages/react/src/runtime/is-server-environment.ts
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@
*/
const isJsDomEnvironment = () =>
window.name === 'nodejs' ||
navigator.userAgent.includes('Node.js') ||
navigator.userAgent.includes('jsdom');
navigator?.userAgent.includes('Node.js') ||
navigator?.userAgent.includes('jsdom');
/**
* Returns `true` when inside a node environment,
* else `false`.
@@ -19,7 +19,10 @@ const isJsDomEnvironment = () =>
* ```
*/
export const isServerEnvironment = (): boolean => {
if (typeof process !== 'undefined' && process.versions != null && process.versions.node != null) {
if (
typeof window === 'undefined' ||
(typeof process !== 'undefined' && process.versions != null && process.versions.node != null)
) {
return true;
}
if (isJsDomEnvironment()) {
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
"source-map": "^0.7.4"
},
"devDependencies": {
"@babel/traverse": "^7.20.12",
"@babel/traverse": "^7.20.13",
"@types/convert-source-map": "^1.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/webpack-loader/package.json
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
],
"dependencies": {
"@babel/core": "^7.20.12",
"@babel/parser": "^7.20.7",
"@babel/parser": "^7.20.13",
"@compiled/babel-plugin": "^0.17.3",
"@compiled/babel-plugin-strip-runtime": "^0.17.3",
"@compiled/css": "^0.8.8",
10 changes: 7 additions & 3 deletions packages/webpack-loader/src/__tests__/extract-plugin.test.ts
Original file line number Diff line number Diff line change
@@ -20,6 +20,10 @@ describe('CompiledExtractPlugin', () => {
return undefined;
});

beforeEach(() => {
process.env.AUTOPREFIXER = 'off';
});

it('throws when the plugin is not configured', async () => {
const errors = await bundle(join(fixturesPath, 'local-styles.tsx'), {
disableExtractPlugin: true,
@@ -148,9 +152,9 @@ describe('CompiledExtractPlugin', () => {

expect(actual).toMatchInlineSnapshot(`
"._syaz1r31{color:currentColor}
._ajmmnqa1{-webkit-text-decoration-style:solid;text-decoration-style:solid}
._1hmsglyw{-webkit-text-decoration-line:none;text-decoration-line:none}
._4bfu1r31{-webkit-text-decoration-color:currentColor;text-decoration-color:currentColor}
._ajmmnqa1{text-decoration-style:solid}
._1hmsglyw{text-decoration-line:none}
._4bfu1r31{text-decoration-color:currentColor}
._n7zl17qw{border-bottom:1px solid transparent}
._n7zl1l01{border-bottom:1px solid rgba(135,119,217,0.2)}
._syaz1cj8{color:var(--_xexnhp)}
Loading