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.17.2
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.17.3
Choose a head ref
  • 12 commits
  • 158 files changed
  • 7 contributors

Commits on Jun 7, 2024

  1. Add babelrc: false to all Babel calls, and set parserBabelPlugins

    … to `typescript` and `jsx` by default (#1680)
    
    * Add babelrc: false to all Babel function calls in @compiled/parcel-transformer
    
    * Add changeset
    
    * Add 'babelrc: false' to webpack loader too
    
    * Update changeset
    
    * Set parserBabelPlugins to 'typescript' and 'jsx' by default
    dddlr authored Jun 7, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a0f8c89 View commit details
  2. Version Packages (#1681)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    atlas-dst-bot and github-actions[bot] authored Jun 7, 2024

    Verified

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

Commits on Jun 27, 2024

  1. Merge Compiled website into Compiled monorepo (#1677)

    * Add website repo to Compiled repo naively
    
    * Fix the many lint and typescript errors
    
    * Update website README
    
    * Fix prettier
    
    * Remove LICENCE
    dddlr authored Jun 27, 2024

    Verified

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

Commits on Jul 9, 2024

  1. Minor fixes to Netlify configuration (#1685)

    * Fix Netlify config
    
    * Fix Babel build excluding some files from output
    
    * Fix publish field
    dddlr authored Jul 9, 2024

    Verified

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

Commits on Jul 10, 2024

  1. [Snyk] Upgrade jscodeshift from 0.15.2 to 0.16.0 (#1686)

    * fix: upgrade jscodeshift from 0.15.2 to 0.16.0
    
    Snyk has created this PR to upgrade jscodeshift from 0.15.2 to 0.16.0.
    
    See this package in npm:
    jscodeshift
    
    See this project in Snyk:
    https://app.snyk.io/org/engineering-container-scanning/project/1591c2ef-1ec9-4a0a-9843-615ca2a55191?utm_source=github&utm_medium=referral&page=upgrade-pr
    
    * Fix snapshots
    
    ---------
    
    Co-authored-by: snyk-bot <snyk-bot@snyk.io>
    Co-authored-by: Grant Wong <gwong2@atlassian.com>
    3 people authored Jul 10, 2024

    Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    37f5da4 View commit details

Commits on Jul 11, 2024

  1. Document @emotion/core types not working with Compiled (#1687)

    dddlr authored Jul 11, 2024

    Verified

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

Commits on Jul 12, 2024

  1. Update most of Compiled documentation to reflect current recommendati…

    …ons (#1688)
    
    * Update 'Writing CSS' and 'Installation', move some sections into new 'Deprecated features' section
    
    * Update CSS prop page and deprecated syntax page:
    
    - move template literals to deprecated page
    - discourage dynamic styles
    - move outdated composition syntax to deprecated page
    
    * Fix order of pages in Guides and API sections
    
    * Fix typo in JSX pragma
    
    * Update documentation for Compiled APIs
    
    * Deprecate styled and ClassNames
    * Merge CSS page into CSS prop
    * Update cssMap to use flat `@media` query syntax, not the nested one that DST will remove support for
    * Move details about the `jsx-pragma` ESLint rule to the "JSX pragma" section of the Installation page
    
    * Make imports alphabetical
    dddlr authored Jul 12, 2024

    Verified

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

Commits on Jul 17, 2024

  1. Add custom GitHub action and pull request template to enforce that do…

    …cumentation is updated (#1694)
    
    * Add custom GitHub action and pull request template
    
    * Address PR feedback
    
    * Move actions/checkout back to main workflow
    
    * Add shell: bash to composite tasks
    
    * Fix incorrect NPM mirror and action not working
    dddlr authored Jul 17, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c807221 View commit details
  2. Update documentation for all @compiled/ packages (#1689)

    * Update Atomic CSS page to use object styles, not tagged template strings
    
    * Update @compiled/react documentation
    
    * Update fonts
    
    * Update remainder of @compiled/* documentation
    
    * Change Installation page to recommend Parcel
    
    * Update title of 'Media queries and other at rules' to more easily fit the sidebar
    
    * Address PR feedback
    dddlr authored Jul 17, 2024

    Verified

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

Commits on Jul 21, 2024

  1. Fix the cx() function's class collection at runtime as it generated…

    … class instances rather than strings. (#1697)
    
    * Fix the `cx()` function's class collection at runtime as it generated class instances rather than strings
    
    Migrate from `ac()` which generates `AtomicGroups` classes to `ax()` which strictly collects strings.
    
    This is because passing `<Component xcss={cx({ … })}>` around resulted in errors, `'cls.split is not a function'` trying to iterate over non-strings.
    
    * Add a test for pass-through props to properly utilize the cx function
    kylorhall-atlassian authored Jul 21, 2024

    Verified

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

Commits on Jul 22, 2024

  1. Version Packages (#1698)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    atlas-dst-bot and github-actions[bot] authored Jul 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7d67e16 View commit details
  2. Fix the broken releases following bringing the Compiled website in. (#…

    …1699)
    
    I believe following #1677 our releases have started to fail.
    
    Example error: https://github.com/atlassian-labs/compiled/actions/runs/10032812760/job/27725059509#step:6:26
    
    This is because `yarn release` runs `yarn build` at the root which runs the website which has a dependency not installed via the root `yarn install` command, so this adds `workspaces-run` to the root `yarn.lock`.
    kylorhall-atlassian authored Jul 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6ddeee2 View commit details
Showing with 14,937 additions and 485 deletions.
  1. +1 −0 .github/actions/task-checklist/.npmrc
  2. +10 −0 .github/actions/task-checklist/action.yml
  3. +60 −0 .github/actions/task-checklist/index.js
  4. +14 −0 .github/actions/task-checklist/package.json
  5. +170 −0 .github/actions/task-checklist/yarn.lock
  6. +22 −0 .github/pull_request_template.md
  7. +12 −0 .github/workflows/task-checklist.yml
  8. +0 −1 examples/parcel/.compiledcssrc.json
  9. +0 −1 examples/webpack/webpack.config.js
  10. +0 −10 netlify.toml
  11. +6 −3 package.json
  12. +1 −2 packages/babel-plugin-strip-runtime/src/__tests__/extract-styles.test.ts
  13. +2 −4 packages/babel-plugin-strip-runtime/src/__tests__/strip-runtime-source-code.test.ts
  14. +1 −2 packages/babel-plugin-strip-runtime/src/__tests__/strip-runtime-transpiled-code.test.ts
  15. +3 −6 packages/babel-plugin/src/__tests__/jsx-automatic.test.ts
  16. +2 −1 packages/babel-plugin/src/test-utils.ts
  17. +2 −1 packages/babel-plugin/src/utils/resolve-binding.ts
  18. +1 −1 packages/codemods/package.json
  19. +7 −0 packages/parcel-config/CHANGELOG.md
  20. +2 −2 packages/parcel-config/package.json
  21. +13 −0 packages/parcel-transformer/CHANGELOG.md
  22. +2 −2 packages/parcel-transformer/package.json
  23. +5 −3 packages/parcel-transformer/src/index.ts
  24. +6 −0 packages/react/CHANGELOG.md
  25. +1 −1 packages/react/package.json
  26. +2 −2 packages/react/src/create-strict-api/__tests__/__fixtures__/strict-api.ts
  27. +95 −0 packages/react/src/create-strict-api/__tests__/pass-through-xcss.test.tsx
  28. +2 −2 packages/react/src/xcss-prop/index.ts
  29. +8 −0 packages/utils/CHANGELOG.md
  30. +1 −1 packages/utils/package.json
  31. +3 −0 packages/utils/src/default-parser-babel-plugins.ts
  32. +1 −0 packages/utils/src/index.ts
  33. +13 −0 packages/webpack-loader/CHANGELOG.md
  34. +2 −2 packages/webpack-loader/package.json
  35. +6 −4 packages/webpack-loader/src/compiled-loader.ts
  36. +30 −0 website/README.md
  37. +7 −0 website/babel.config.js
  38. +14 −0 website/netlify.toml
  39. +31 −0 website/package.json
  40. +7 −0 website/packages/docs/.babelrc
  41. +1 −0 website/packages/docs/README.md
  42. +41 −0 website/packages/docs/package.json
  43. +231 −0 website/packages/docs/src/components/app.tsx
  44. +8 −0 website/packages/docs/src/components/page-title.ts
  45. +9 −0 website/packages/docs/src/components/scroll-top.ts
  46. +71 −0 website/packages/docs/src/components/side-nav.tsx
  47. +55 −0 website/packages/docs/src/examples/class-names.tsx
  48. +38 −0 website/packages/docs/src/examples/composition.tsx
  49. +133 −0 website/packages/docs/src/examples/css-prop.tsx
  50. +12 −0 website/packages/docs/src/examples/how-it-works.tsx
  51. +107 −0 website/packages/docs/src/examples/styled.tsx
  52. +8 −0 website/packages/docs/src/index.html
  53. +15 −0 website/packages/docs/src/index.tsx
  54. +38 −0 website/packages/docs/src/pages/about-compiled.mdx
  55. +31 −0 website/packages/docs/src/pages/api-class-names.mdx
  56. +41 −0 website/packages/docs/src/pages/api-css-prop.mdx
  57. +9 −0 website/packages/docs/src/pages/api-css.mdx
  58. +198 −0 website/packages/docs/src/pages/api-cssmap.mdx
  59. +29 −0 website/packages/docs/src/pages/api-keyframes.mdx
  60. +91 −0 website/packages/docs/src/pages/api-styled.mdx
  61. +173 −0 website/packages/docs/src/pages/atomic-css.mdx
  62. +25 −0 website/packages/docs/src/pages/composition.mdx
  63. +200 −0 website/packages/docs/src/pages/css-extraction-webpack.mdx
  64. +82 −0 website/packages/docs/src/pages/deprecated-features.mdx
  65. +212 −0 website/packages/docs/src/pages/installation.mdx
  66. +49 −0 website/packages/docs/src/pages/issues-with-emotion.mdx
  67. +193 −0 website/packages/docs/src/pages/limitations.mdx
  68. +134 −0 website/packages/docs/src/pages/media-queries-and-other-at-rules.mdx
  69. +56 −0 website/packages/docs/src/pages/migrating.mdx
  70. +107 −0 website/packages/docs/src/pages/pkg-babel-plugin-strip-runtime.mdx
  71. +158 −0 website/packages/docs/src/pages/pkg-babel-plugin.mdx
  72. +47 −0 website/packages/docs/src/pages/pkg-codemods.mdx
  73. +53 −0 website/packages/docs/src/pages/pkg-css.mdx
  74. +35 −0 website/packages/docs/src/pages/pkg-eslint-plugin.mdx
  75. +51 −0 website/packages/docs/src/pages/pkg-jest.mdx
  76. +207 −0 website/packages/docs/src/pages/pkg-parcel-config.mdx
  77. +20 −0 website/packages/docs/src/pages/pkg-parcel-optimizer.mdx
  78. +20 −0 website/packages/docs/src/pages/pkg-parcel-transformer.mdx
  79. +54 −0 website/packages/docs/src/pages/pkg-react-runtime.mdx
  80. +152 −0 website/packages/docs/src/pages/pkg-react.mdx
  81. +298 −0 website/packages/docs/src/pages/pkg-webpack-loader.mdx
  82. +141 −0 website/packages/docs/src/pages/server-side-rendering.mdx
  83. +110 −0 website/packages/docs/src/pages/testing.mdx
  84. +95 −0 website/packages/docs/src/pages/writing-css.mdx
  85. +35 −0 website/packages/docs/src/utils/export-meta.js
  86. +9 −0 website/packages/docs/src/utils/string.ts
  87. +12 −0 website/packages/docs/tsconfig.json
  88. +4 −0 website/packages/docs/types/global.d.ts
  89. +80 −0 website/packages/docs/webpack.config.js
  90. +4 −0 website/packages/examples/.babelrc
  91. +1 −0 website/packages/examples/README.md
  92. +25 −0 website/packages/examples/package.json
  93. +36 −0 website/packages/examples/src/class-names-button.tsx
  94. +39 −0 website/packages/examples/src/class-names-composition.tsx
  95. +22 −0 website/packages/examples/src/class-names-dynamic.tsx
  96. +20 −0 website/packages/examples/src/class-names-obj.tsx
  97. +30 −0 website/packages/examples/src/css-prop-button.tsx
  98. +31 −0 website/packages/examples/src/css-prop-composition-correct.tsx
  99. +10 −0 website/packages/examples/src/css-prop-composition-identifier.tsx
  100. +24 −0 website/packages/examples/src/css-prop-composition-incorrect.tsx
  101. +22 −0 website/packages/examples/src/css-prop-composition-multiple.tsx
  102. +24 −0 website/packages/examples/src/css-prop-composition-no-style.tsx
  103. +30 −0 website/packages/examples/src/css-prop-conditional-rules.tsx
  104. +18 −0 website/packages/examples/src/css-prop-dynamic-decl.tsx
  105. +17 −0 website/packages/examples/src/css-prop-obj.tsx
  106. +18 −0 website/packages/examples/src/css-prop-string.tsx
  107. +54 −0 website/packages/examples/src/index.ts
  108. +3 −0 website/packages/examples/src/mixins.ts
  109. +7 −0 website/packages/examples/src/styled-as-prop.ts
  110. +20 −0 website/packages/examples/src/styled-button.ts
  111. +9 −0 website/packages/examples/src/styled-composition.ts
  112. +7 −0 website/packages/examples/src/styled-dynamic-decl.ts
  113. +5 −0 website/packages/examples/src/styled-obj.ts
  114. +5 −0 website/packages/examples/src/styled-string.ts
  115. +6 −0 website/packages/examples/src/styled-transient-props.ts
  116. +12 −0 website/packages/examples/tsconfig.json
  117. +1 −0 website/packages/landing/README.md
  118. +33 −0 website/packages/landing/package.json
  119. +18 −0 website/packages/landing/src/components/example.tsx
  120. +175 −0 website/packages/landing/src/components/landing.tsx
  121. +10 −0 website/packages/landing/src/index.html
  122. +12 −0 website/packages/landing/src/index.tsx
  123. +105 −0 website/packages/landing/src/pages/landing-content.mdx
  124. +8 −0 website/packages/landing/tsconfig.json
  125. +70 −0 website/packages/landing/webpack.config.js
  126. +1 −0 website/packages/ui/README.md
  127. +23 −0 website/packages/ui/global.css
  128. +27 −0 website/packages/ui/package.json
  129. +158 −0 website/packages/ui/src/components/anchor.tsx
  130. +93 −0 website/packages/ui/src/components/code-block.tsx
  131. +28 −0 website/packages/ui/src/components/comparison.tsx
  132. +7 −0 website/packages/ui/src/components/content.ts
  133. +165 −0 website/packages/ui/src/components/example.tsx
  134. +35 −0 website/packages/ui/src/components/footer.tsx
  135. +50 −0 website/packages/ui/src/components/header.tsx
  136. +149 −0 website/packages/ui/src/components/heading.tsx
  137. +10 −0 website/packages/ui/src/components/helpers.ts
  138. +45 −0 website/packages/ui/src/components/hero.tsx
  139. +9 −0 website/packages/ui/src/components/hide-small.ts
  140. +16 −0 website/packages/ui/src/components/index.ts
  141. +77 −0 website/packages/ui/src/components/links.tsx
  142. +23 −0 website/packages/ui/src/components/lozenge.tsx
  143. +126 −0 website/packages/ui/src/components/mdx-components.tsx
  144. +32 −0 website/packages/ui/src/components/stack.ts
  145. +88 −0 website/packages/ui/src/components/text.tsx
  146. +5 −0 website/packages/ui/src/icon/github.tsx
  147. +22 −0 website/packages/ui/src/icon/index.tsx
  148. +5 −0 website/packages/ui/src/icon/npm.tsx
  149. +28 −0 website/packages/ui/src/index.ts
  150. +1 −0 website/packages/ui/src/layout/index.ts
  151. +212 −0 website/packages/ui/src/layout/root.tsx
  152. +5 −0 website/packages/ui/src/utils/colors.ts
  153. +8 −0 website/packages/ui/src/utils/index.ts
  154. +12 −0 website/packages/ui/tsconfig.json
  155. +5 −0 website/packages/ui/types/global.d.ts
  156. +42 −0 website/renovate.json
  157. +7,421 −0 website/yarn.lock
  158. +535 −434 yarn.lock
1 change: 1 addition & 0 deletions .github/actions/task-checklist/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry="https://registry.yarnpkg.com"
10 changes: 10 additions & 0 deletions .github/actions/task-checklist/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Task Checklist
runs:
using: 'composite'
steps:
- name: Install dependencies
run: cd ${{ github.action_path }} && yarn install
shell: bash
- name: Check tasks in PR description
run: cd ${{ github.action_path }} && yarn run check-tasks
shell: bash
60 changes: 60 additions & 0 deletions .github/actions/task-checklist/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
const core = require('@actions/core');
const github = require('@actions/github');

// Detects tasks in the form:
// - [ ] Task 1
//
// Also handles whitespace around any of the characters,
// and the three different ways to make a list (dash, asterisk, plus)
const INCOMPLETE_TASKS_REGEX = /^\s*[-*+]\s+\[ \]\s+(.*)/gm;

// This regex finds regions which we should EXCLUDE from the task checklist action.
//
// - s flag required so that ".*?" matches over multiple lines
// - "?" in ".*?" ensures that we match the smallest possible string
// - note that m flag is not required.
const DISABLE_COMMENT_REGEX =
/<!--\s*task-checklist-ignore-start\s*-->.*?<!--\s*task-checklist-ignore-end\s*-->/gs;

const run = () => {
const body = github.context.payload.pull_request?.body;
if (!body) {
core.info('PR description empty, skipping this check.');
return;
}

const bodyWithoutDisables = body.replace(DISABLE_COMMENT_REGEX, '');
if (body !== bodyWithoutDisables) {
core.notice(
'Found at least one "task-checklist-ignore-start"/"task-checklist-ignore-end" block. Items in these blocks will be ignored.'
);
core.info('---');
}

const matches = [...bodyWithoutDisables.matchAll(INCOMPLETE_TASKS_REGEX)].map(
(match) => match[1]
);

if (!matches.length) {
core.info('No tasks marked as incomplete. Great work!');
return;
}

const plural = matches.length > 1 ? 's' : '';
const formattedMatches = matches.map((match) => `- ${match}`).join('\n');
core.error(`Found incomplete task${plural}:\n${formattedMatches}`);

core.info('---');
core.notice(
'False positive? Insert <!-- task-checklist-ignore-start --> and <!-- task-checklist-ignore-end --> in the section(s) of your PR where you want to skip the check.\n' +
'However, with great power comes great responsibility...'
);
core.info('---');

core.setFailed(
`Found ${matches.length} task${plural} in the PR description not marked as completed.\n\n` +
'Please complete all tasks in your PR description before merging.'
);
};

run();
14 changes: 14 additions & 0 deletions .github/actions/task-checklist/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "task-checklist",
"private": "true",
"version": "1.0.0",
"main": "index.js",
"license": "Apache-2.0",
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0"
},
"scripts": {
"check-tasks": "node index.js"
}
}
170 changes: 170 additions & 0 deletions .github/actions/task-checklist/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


"@actions/core@^1.10.1":
version "1.10.1"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.10.1.tgz#61108e7ac40acae95ee36da074fa5850ca4ced8a"
integrity sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==
dependencies:
"@actions/http-client" "^2.0.1"
uuid "^8.3.2"

"@actions/github@^6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@actions/github/-/github-6.0.0.tgz#65883433f9d81521b782a64cc1fd45eef2191ea7"
integrity sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==
dependencies:
"@actions/http-client" "^2.2.0"
"@octokit/core" "^5.0.1"
"@octokit/plugin-paginate-rest" "^9.0.0"
"@octokit/plugin-rest-endpoint-methods" "^10.0.0"

"@actions/http-client@^2.0.1", "@actions/http-client@^2.2.0":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.2.1.tgz#ed3fe7a5a6d317ac1d39886b0bb999ded229bb38"
integrity sha512-KhC/cZsq7f8I4LfZSJKgCvEwfkE8o1538VoBeoGzokVLLnbFDEAdFD3UhoMklxo2un9NJVBdANOresx7vTHlHw==
dependencies:
tunnel "^0.0.6"
undici "^5.25.4"

"@fastify/busboy@^2.0.0":
version "2.1.1"
resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-2.1.1.tgz#b9da6a878a371829a0502c9b6c1c143ef6663f4d"
integrity sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==

"@octokit/auth-token@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-4.0.0.tgz#40d203ea827b9f17f42a29c6afb93b7745ef80c7"
integrity sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==

"@octokit/core@^5.0.1":
version "5.2.0"
resolved "https://registry.yarnpkg.com/@octokit/core/-/core-5.2.0.tgz#ddbeaefc6b44a39834e1bb2e58a49a117672a7ea"
integrity sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg==
dependencies:
"@octokit/auth-token" "^4.0.0"
"@octokit/graphql" "^7.1.0"
"@octokit/request" "^8.3.1"
"@octokit/request-error" "^5.1.0"
"@octokit/types" "^13.0.0"
before-after-hook "^2.2.0"
universal-user-agent "^6.0.0"

"@octokit/endpoint@^9.0.1":
version "9.0.5"
resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-9.0.5.tgz#e6c0ee684e307614c02fc6ac12274c50da465c44"
integrity sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw==
dependencies:
"@octokit/types" "^13.1.0"
universal-user-agent "^6.0.0"

"@octokit/graphql@^7.1.0":
version "7.1.0"
resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-7.1.0.tgz#9bc1c5de92f026648131f04101cab949eeffe4e0"
integrity sha512-r+oZUH7aMFui1ypZnAvZmn0KSqAUgE1/tUXIWaqUCa1758ts/Jio84GZuzsvUkme98kv0WFY8//n0J1Z+vsIsQ==
dependencies:
"@octokit/request" "^8.3.0"
"@octokit/types" "^13.0.0"
universal-user-agent "^6.0.0"

"@octokit/openapi-types@^20.0.0":
version "20.0.0"
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-20.0.0.tgz#9ec2daa0090eeb865ee147636e0c00f73790c6e5"
integrity sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==

"@octokit/openapi-types@^22.2.0":
version "22.2.0"
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-22.2.0.tgz#75aa7dcd440821d99def6a60b5f014207ae4968e"
integrity sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg==

"@octokit/plugin-paginate-rest@^9.0.0":
version "9.2.1"
resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.1.tgz#2e2a2f0f52c9a4b1da1a3aa17dabe3c459b9e401"
integrity sha512-wfGhE/TAkXZRLjksFXuDZdmGnJQHvtU/joFQdweXUgzo1XwvBCD4o4+75NtFfjfLK5IwLf9vHTfSiU3sLRYpRw==
dependencies:
"@octokit/types" "^12.6.0"

"@octokit/plugin-rest-endpoint-methods@^10.0.0":
version "10.4.1"
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz#41ba478a558b9f554793075b2e20cd2ef973be17"
integrity sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==
dependencies:
"@octokit/types" "^12.6.0"

"@octokit/request-error@^5.1.0":
version "5.1.0"
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-5.1.0.tgz#ee4138538d08c81a60be3f320cd71063064a3b30"
integrity sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q==
dependencies:
"@octokit/types" "^13.1.0"
deprecation "^2.0.0"
once "^1.4.0"

"@octokit/request@^8.3.0", "@octokit/request@^8.3.1":
version "8.4.0"
resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.4.0.tgz#7f4b7b1daa3d1f48c0977ad8fffa2c18adef8974"
integrity sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw==
dependencies:
"@octokit/endpoint" "^9.0.1"
"@octokit/request-error" "^5.1.0"
"@octokit/types" "^13.1.0"
universal-user-agent "^6.0.0"

"@octokit/types@^12.6.0":
version "12.6.0"
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-12.6.0.tgz#8100fb9eeedfe083aae66473bd97b15b62aedcb2"
integrity sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==
dependencies:
"@octokit/openapi-types" "^20.0.0"

"@octokit/types@^13.0.0", "@octokit/types@^13.1.0":
version "13.5.0"
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-13.5.0.tgz#4796e56b7b267ebc7c921dcec262b3d5bfb18883"
integrity sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==
dependencies:
"@octokit/openapi-types" "^22.2.0"

before-after-hook@^2.2.0:
version "2.2.3"
resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c"
integrity sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==

deprecation@^2.0.0:
version "2.3.1"
resolved "https://registry.yarnpkg.com/deprecation/-/deprecation-2.3.1.tgz#6368cbdb40abf3373b525ac87e4a260c3a700919"
integrity sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==

once@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
dependencies:
wrappy "1"

tunnel@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==

undici@^5.25.4:
version "5.28.4"
resolved "https://registry.yarnpkg.com/undici/-/undici-5.28.4.tgz#6b280408edb6a1a604a9b20340f45b422e373068"
integrity sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==
dependencies:
"@fastify/busboy" "^2.0.0"

universal-user-agent@^6.0.0:
version "6.0.1"
resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.1.tgz#15f20f55da3c930c57bddbf1734c6654d5fd35aa"
integrity sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==

uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==

wrappy@1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
22 changes: 22 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### What is this change?

Describe what change you are making here.

### Why are we making this change?

Give the full context for your change here.

### How are we making this change?

(Optional.)

---

### PR checklist

Don't delete me!

I have...

- [ ] Updated or added applicable tests
- [ ] Updated the documentation in `website/`
12 changes: 12 additions & 0 deletions .github/workflows/task-checklist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Check all tasks are completed

on:
pull_request:
types: [opened, edited]

jobs:
task-checklist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/task-checklist
1 change: 0 additions & 1 deletion examples/parcel/.compiledcssrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"importReact": true,
"extensions": [".js", ".jsx", ".ts", ".tsx", ".customjsx"],
"parserBabelPlugins": ["typescript", "jsx"],
"transformerBabelPlugins": [
[
"@babel/plugin-proposal-decorators",
1 change: 0 additions & 1 deletion examples/webpack/webpack.config.js
Original file line number Diff line number Diff line change
@@ -39,7 +39,6 @@ module.exports = {
extract: extractCSS,
importReact: false,
extensions: ['.js', '.jsx', '.ts', '.tsx', '.customjsx'],
parserBabelPlugins: ['typescript', 'jsx'],
transformerBabelPlugins: [['@babel/plugin-proposal-decorators', { legacy: true }]],
optimizeCss: false,
classNameCompressionMap,
10 changes: 0 additions & 10 deletions netlify.toml

This file was deleted.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
"build:webpack": "yarn build:babel-fixture && ttsc --build examples/webpack/tsconfig.json && yarn workspace @compiled/webpack-app build",
"build:webpack:extract": "EXTRACT_TO_CSS=true yarn build:webpack",
"bundlesize": "yarn build && size-limit",
"clean": "yarn clean:node-modules && yarn clean:ts-cache && yarn clean:dist && yarn clean:parcel-cache",
"clean": "yarn clean:node-modules && yarn clean:ts-cache && yarn clean:dist && yarn clean:parcel-cache && yarn website:clean",
"clean:dist": "find . -name \"dist\" -not -path \"*/node_modules/*\" -type d -exec rm -rf {} +",
"clean:node-modules": "rm -rf node_modules/.cache",
"clean:parcel-cache": "rm -rf .parcel-cache/",
@@ -47,7 +47,9 @@
"test:imports": "node test/test-imports",
"test:parcel": "jest --testMatch '**/src/**/*.parceltest.{ts,tsx}' --testEnvironment=node",
"test:vr": "yarn loki --host host.docker.internal",
"test:watch": "jest --no-cache --watch"
"test:watch": "jest --no-cache --watch",
"website:build": "cd website/ && NODE_ENV=production yarn build",
"website:clean": "cd website/ && yarn clean"
},
"husky": {
"hooks": {
@@ -107,7 +109,8 @@
"ts-transform-define": "^0.1.10",
"tsconfig-paths": "^4.1.2",
"ttypescript": "^1.5.15",
"typescript": "^4.9.5"
"typescript": "^4.9.5",
"workspaces-run": "^1.0.2"
},
"engines": {
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
Original file line number Diff line number Diff line change
@@ -146,8 +146,7 @@ describe('babel-plugin-strip-runtime with stylesheet extraction (extractStylesTo
"/* app.tsx generated by @compiled/babel-plugin v0.0.0 */
import './app.compiled.css';
import { ax, ix } from '@compiled/react/runtime';
import { jsxs as _jsxs } from 'react/jsx-runtime';
import { jsx as _jsx } from 'react/jsx-runtime';
import { jsxs as _jsxs, jsx as _jsx } from 'react/jsx-runtime';
const Component = () =>
/*#__PURE__*/ _jsx('div', {
className: ax(['_1wyb1fwx _syaz13q2']),
Original file line number Diff line number Diff line change
@@ -30,8 +30,7 @@ describe('babel-plugin-strip-runtime using source code', () => {
expect(actual).toMatchInlineSnapshot(`
"/* app.tsx generated by @compiled/babel-plugin v0.0.0 */
import { ax, ix } from '@compiled/react/runtime';
import { jsxs as _jsxs } from 'react/jsx-runtime';
import { jsx as _jsx } from 'react/jsx-runtime';
import { jsxs as _jsxs, jsx as _jsx } from 'react/jsx-runtime';
const Component = () =>
/*#__PURE__*/ _jsx('div', {
className: ax(['_1wyb1fwx _syaz13q2']),
@@ -155,8 +154,7 @@ describe('babel-plugin-strip-runtime using source code', () => {
expect(actual).toMatchInlineSnapshot(`
"/* app.tsx generated by @compiled/babel-plugin v0.0.0 */
import { ax, ix } from '@compiled/react/runtime';
import { jsxs as _jsxs } from 'react/jsx-runtime';
import { jsx as _jsx } from 'react/jsx-runtime';
import { jsxs as _jsxs, jsx as _jsx } from 'react/jsx-runtime';
const Component = () =>
/*#__PURE__*/ _jsx('div', {
className: ax(['_1wyb1fwx _syaz13q2']),
Original file line number Diff line number Diff line change
@@ -111,8 +111,7 @@ describe('babel-plugin-strip-runtime using transpiled code', () => {
"/* app.tsx generated by @compiled/babel-plugin v0.0.0 */
import * as React from 'react';
import { ax, ix } from '@compiled/react/runtime';
import { jsxs as _jsxs } from 'react/jsx-runtime';
import { jsx as _jsx } from 'react/jsx-runtime';
import { jsxs as _jsxs, jsx as _jsx } from 'react/jsx-runtime';
var Component = () =>
/*#__PURE__*/ _jsx('div', {
className: ax(['_1wyb1fwx _syaz13q2']),
Loading