Skip to content

Commit

Permalink
Merge 'upstream/v2' into atlassian
Browse files Browse the repository at this point in the history
* upstream/v2: (26 commits)
  Replace typeof before DCE (#7788)
  Bump lmdb (#7797)
  Upgrade flow to 0.173.0 (#7809)
  Prevent `term-size` from being bundled (#7750)
  Pin lmdb@2.2.3 (#7763)
  Fix Windows CI (#7774)
  Upgrade Flow to 0.171.0 (#7667)
  Move tests to GitHub actions (#7678)
  v2.3.2
  Fix autoinstalling node builtins (#7735)
  Fix lint
  Use pinned versions
  Don't build native packages again during publish step
  Fix build
  Fix autoinstall
  v2.3.1
  Add diagnostic for failed autoinstall of node polyfill (#7682)
  v2.3.0
  Changelog for 2.3.0
  Support React 18 prereleases and experimental versions with automatic JSX runtime (#7642)
  ...
  • Loading branch information
lettertwo committed Mar 10, 2022
2 parents 3e17330 + 083e530 commit ef9845f
Show file tree
Hide file tree
Showing 125 changed files with 954 additions and 2,952 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Expand Up @@ -36,4 +36,4 @@ untyped-import
untyped-type-import

[version]
0.164.0
0.173.0
102 changes: 102 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,102 @@
on: pull_request

name: Continuous Integration

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: yarn
- uses: actions-rs/toolchain@v1
- uses: Swatinem/rust-cache@v1
# use `--frozen-lockfile` to fail immediately if the committed yarn.lock needs updates
# https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-frozen-lockfile
- run: yarn --frozen-lockfile
- run: yarn lint

flow:
name: Flow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: yarn
- run: yarn --frozen-lockfile
- run: yarn flow check

benchmarks:
name: Benchmarks
runs-on: ubuntu-latest
steps:
- name: PR Benchmarks
uses: parcel-bundler/parcel-benchmark-action@master
env:
PARCEL_BENCHMARK_APIKEY: ${{ secrets.PARCEL_BENCHMARK_APIKEY }}

unit_tests:
name: Unit tests (${{matrix.os}}, Node ${{matrix.node}})
strategy:
matrix:
node: [12, 14]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: yarn
node-version: ${{matrix.node}}
- uses: actions-rs/toolchain@v1
- uses: Swatinem/rust-cache@v1
- name: Bump max inotify watches (Linux only)
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p;
if: ${{matrix.os == 'ubuntu-latest'}}
- run: yarn --frozen-lockfile
- run: yarn build-native-release
- run: yarn test:unit

integration_tests:
name: Integration tests (${{matrix.os}}, Node ${{matrix.node}})
strategy:
matrix:
node: [12, 14]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: yarn
node-version: ${{matrix.node}}
- uses: actions-rs/toolchain@v1
- uses: Swatinem/rust-cache@v1
- name: Bump max inotify watches (Linux only)
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p;
if: ${{matrix.os == 'ubuntu-latest'}}
- run: yarn --frozen-lockfile
- run: yarn build-native-release
- run: yarn test:integration-ci
# Similar to
# https://github.com/marketplace/actions/publish-unit-test-results#use-with-matrix-strategy
- name: Upload JUnit results
if: always()
uses: actions/upload-artifact@v2
with:
name: Integration tests (${{matrix.os}}, node ${{matrix.node}})
path: '**/junit-*.xml'

test_report:
name: Test report
runs-on: ubuntu-latest
needs: [unit_tests, integration_tests]
if: always()
steps:
- name: Create test report
uses: mikepenz/action-junit-report@v2
with:
report_paths: artifacts/**/*.xml
13 changes: 0 additions & 13 deletions .github/workflows/main.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/tag-release.yml
Expand Up @@ -209,8 +209,6 @@ jobs:
steps:
- uses: actions/checkout@v1
- uses: bahmutov/npm-install@v1.1.0
- name: Build native packages
run: yarn build-native-release
- name: Download artifacts
uses: actions/download-artifact@v2
with:
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,24 @@ All notable changes to Parcel will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and Parcel adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [2.3.1] - 2022-02-09

## Fixed

- Add diagnostic for failed autoinstall of node polyfill - [Details](https://github.com/parcel-bundler/parcel/pull/7682)

## [2.3.0] - 2022-02-09

## Added

- Reduce the number of npm dependencies needed by parcel [Details](https://github.com/parcel-bundler/parcel/pull/7576)
- Support React 18 prereleases and experimental versions with automatic JSX runtime - [Details](https://github.com/parcel-bundler/parcel/pull/7642)

## Fixed

- Fix `@swc/helpers` in non-module scripts - [Details](https://github.com/parcel-bundler/parcel/pull/7599)
- Fix auto installing dependencies in PNPM monorepos - [Details](https://github.com/parcel-bundler/parcel/pull/7566)

## [2.2.1] - 2022-01-17

### Fixed
Expand Down
89 changes: 0 additions & 89 deletions azure-pipelines-template.yml

This file was deleted.

15 changes: 0 additions & 15 deletions azure-pipelines.yml

This file was deleted.

1 change: 1 addition & 0 deletions flow-libs/babel-core.js.flow
Expand Up @@ -171,4 +171,5 @@ declare module "@babel/core" {
| [string | { ... } | Function, { ... } | void],
{| dirname?: string, type?: "preset" | "plugin" |}
): ConfigItem;
declare export * as types from "@babel/types";
}
6 changes: 3 additions & 3 deletions flow-typed/npm/mocha_v8.x.x.js
@@ -1,5 +1,5 @@
// flow-typed signature: 195cec6dc98ab7533f0eb927ee493f99
// flow-typed version: 1a6d5d1968/mocha_v8.x.x/flow_>=v0.104.x
// flow-typed signature: a9c051e037cdcce97b16e692321e6856
// flow-typed version: b074eb3e38/mocha_v8.x.x/flow_>=v0.104.x

declare interface $npm$mocha$SetupOptions {
slow?: number;
Expand Down Expand Up @@ -206,7 +206,7 @@ type AfterEach =
declare var setup: Setup;
declare var teardown: Teardown;
declare var suiteSetup: SuiteSetup;
declare var suiteTeardown;
declare var suiteTeardown: SuiteTeardown;
declare var before: Before
declare var after: After;
declare var beforeEach: BeforeEach;
Expand Down
10 changes: 9 additions & 1 deletion gulpfile.js
Expand Up @@ -12,7 +12,15 @@ const IGNORED_PACKAGES = [
'!packages/core/is-v2-ready-yet/**',
'!packages/core/test-utils/**',
'!packages/core/types/**',
'!packages/utils/node-libs-browser/**',

// These packages are bundled.
'!packages/core/codeframe/**',
'!packages/core/fs/**',
'!packages/core/package-manager/**',
'!packages/core/utils/**',
'!packages/reporters/cli/**',
'!packages/reporters/dev-server/**',
'!packages/utils/fs-write-stream-atomic/**',
];

const paths = {
Expand Down
11 changes: 6 additions & 5 deletions package.json
Expand Up @@ -11,7 +11,8 @@
"packages/*/*"
],
"scripts": {
"build": "cross-env NODE_ENV=production PARCEL_BUILD_ENV=production gulp",
"build": "yarn build-bundles && cross-env NODE_ENV=production PARCEL_BUILD_ENV=production gulp",
"build-bundles": "rm -rf packages/*/*/lib && cross-env NODE_ENV=production PARCEL_BUILD_ENV=production PARCEL_SELF_BUILD=true parcel build packages/core/{fs,codeframe,package-manager,utils} packages/reporters/{cli,dev-server}",
"build-ts": "lerna run build-ts && lerna run check-ts",
"build-native": "node scripts/build-native.js",
"build-native-release": "node scripts/build-native.js --release",
Expand All @@ -22,7 +23,7 @@
"unlink-all": "node scripts/unlink-all.js packages",
"check": "flow check",
"lint": "eslint . && prettier \"./packages/*/*/{src,bin,test}/**/*.{js,json,md}\" --list-different",
"prepublishOnly": "yarn build && yarn build-ts && yarn adjust-versions && rename-parcel-packages",
"prepublishOnly": "yarn adjust-versions yarn build && yarn build-ts && rename-parcel-packages",
"test:unit": "cross-env NODE_ENV=test mocha",
"test:integration": "yarn workspace @parcel/integration-tests test",
"test:integration-ci": "yarn workspace @parcel/integration-tests test-ci",
Expand All @@ -31,7 +32,7 @@
"version:atlassian": "yarn lerna version patch --exact --force-publish=@atlassian/internal-parcel-utils,@atlassian/parcel-reporter-analytics",
"nightly:release": "lerna publish -y --canary --preid nightly --dist-tag=nightly --exact --force-publish=* --no-git-tag-version --no-push",
"tag:prerelease": "lerna version --exact --force-publish=* --no-git-tag-version --no-push && yarn adjust-versions --exact",
"tag:release": "lerna version --force-publish=* --no-git-tag-version --no-push && yarn adjust-versions",
"tag:release": "lerna version --exact --force-publish=* --no-git-tag-version --no-push && yarn adjust-versions",
"adjust-versions": "node scripts/update-config-dependencies.js && node scripts/update-engines-peerdeps.js",
"release": "lerna publish -y from-package --pre-dist-tag=next --no-git-tag-version --no-push",
"prepare": "husky install"
Expand All @@ -43,7 +44,7 @@
"@types/node": "^15.12.4",
"cross-env": "^7.0.0",
"eslint": "^7.20.0",
"flow-bin": "0.164.0",
"flow-bin": "0.173.0",
"glob": "^7.1.6",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
Expand All @@ -54,7 +55,7 @@
"mocha-junit-reporter": "^2.0.0",
"mocha-multi-reporters": "^1.5.1",
"prettier": "2.4.1",
"rimraf": "^2.6.3",
"rimraf": "^3.0.2",
"semver": "^5.7.1",
"sinon": "^7.3.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/configs/default/package.json
Expand Up @@ -40,6 +40,7 @@
"@parcel/transformer-babel": "2.0.15",
"@parcel/transformer-css": "2.0.15",
"@parcel/transformer-html": "2.0.15",
"@parcel/transformer-image": "2.0.15",
"@parcel/transformer-js": "2.0.15",
"@parcel/transformer-json": "2.0.15",
"@parcel/transformer-postcss": "2.0.15",
Expand All @@ -57,7 +58,6 @@
"@parcel/transformer-elm": "2.0.7",
"@parcel/transformer-glsl": "2.0.7",
"@parcel/transformer-graphql": "2.0.7",
"@parcel/transformer-image": "2.0.7",
"@parcel/transformer-inline-string": "2.0.7",
"@parcel/transformer-jsonld": "2.0.7",
"@parcel/transformer-less": "2.0.7",
Expand All @@ -75,6 +75,6 @@
"@parcel/transformer-yaml": "2.0.7"
},
"peerDependencies": {
"@parcel/core": "^2.2.1"
"@parcel/core": "^2.3.2"
}
}
2 changes: 1 addition & 1 deletion packages/core/cache/package.json
Expand Up @@ -27,7 +27,7 @@
"@parcel/fs": "2.0.15",
"@parcel/logger": "2.0.15",
"@parcel/utils": "2.0.15",
"lmdb": "^2.0.2"
"lmdb": "2.2.4"
},
"peerDependencies": {
"@parcel/core": "^2.2.1"
Expand Down

0 comments on commit ef9845f

Please sign in to comment.