Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Release 3.0.0 #2892

Merged
merged 124 commits into from Jun 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
9b24d75
Remove deprecated `walkTree`
hwillson Mar 21, 2019
ade881f
Remove deprecated `GraphqlQueryControls` and `MutationFunc` types
hwillson Mar 21, 2019
f75c833
Update `peerDependencies` to their latest versions
hwillson Mar 21, 2019
78f0350
Adjust prettier config
hwillson Mar 21, 2019
b742ae6
Remove Preact support and compatibility
hwillson Mar 21, 2019
f264d81
Remove the out of date `ROADMAP`
hwillson Mar 21, 2019
1186726
Start using React's newer Context API internally
hwillson Mar 22, 2019
5c72f51
Remove all disabled tests
hwillson Mar 22, 2019
abe2503
Create useApolloClient.ts (#2872)
FredyC Mar 25, 2019
15b0f48
Merge branch 'master' into release-3.0.0
hwillson Mar 25, 2019
cfd22bb
Remove deprecated React lifecyle method use from Apollo Components
hwillson Apr 8, 2019
db54959
Remove tslint
hwillson Apr 8, 2019
b787af0
Remove dangerjs
hwillson Apr 8, 2019
a38ebee
Remove duplicate renovate config; Adjust to use parent defaults
hwillson Apr 8, 2019
969d97d
Copyright fix
hwillson Apr 8, 2019
29f9659
Support scripts cleanup
hwillson Apr 8, 2019
54beac6
Goodbye Probot!
hwillson Apr 8, 2019
e0d205c
Remove Apollo Bot config settings
hwillson Apr 8, 2019
29a4536
Lay the initial monorepo foundation
hwillson Apr 14, 2019
30d346a
Make sure lerna is set as a dev dep
hwillson Apr 14, 2019
b6da6a8
Fix Circle config typo
hwillson Apr 14, 2019
feb9b0c
Remove `lodash.isequal`; use `isEqual` from `apollo-utilities`
hwillson Apr 21, 2019
985679e
Exclude lib directories from git
hwillson Apr 21, 2019
5315dd1
Remove compiled JS
hwillson Apr 21, 2019
6fcc459
Exclude temporary CI junit files
hwillson May 5, 2019
b22e02c
Add default vscode prettier workspace settings
hwillson May 5, 2019
86d9046
Remove accidentally added compiled files
hwillson May 5, 2019
20cc6ef
Remove common test setup since we're no longer using enzyme
hwillson May 5, 2019
672e128
Remove child package jest configs since tests are run from root
hwillson May 5, 2019
54e24c2
No longer using `build` directories
hwillson May 6, 2019
fa34383
Initial data layer abstraction
hwillson May 6, 2019
ec9409b
Hooks package plumbing
hwillson May 6, 2019
d7c58cf
Overhaul testing infra with `act` / `react-testing-library`
hwillson May 6, 2019
f711d3f
Start moving common operation functionality into parent class
hwillson May 6, 2019
91006ea
Restore examples (we've decided to keep them here for now)
hwillson May 24, 2019
f1a1322
Merge branch 'master' into release-3.0.0
hwillson May 24, 2019
fdd7318
Merge branch 'master' into release-3.0.0
hwillson May 24, 2019
30edb1b
React Apollo Hooks integration
hwillson May 24, 2019
f79921e
Merge branch 'release-3.0.0' of https://github.com/apollographql/reac…
hwillson May 24, 2019
65935fa
Adjust build watching to trigger the postbuild step
hwillson May 24, 2019
3d138db
Subscription option type changes
hwillson May 24, 2019
def2f26
Small React Apollo Hooks + Typescript demo
hwillson May 24, 2019
95cc7de
Bump components bundlesize; Add bundlesize tracking for hooks
hwillson May 24, 2019
807d1ca
Remove commented code
hwillson May 24, 2019
4e517ec
package.json cleanup; prep for initial lerna beta publish
hwillson May 24, 2019
9a8e098
Lerna config changes to assist with beta publishing
hwillson May 24, 2019
1114020
Publish
hwillson May 24, 2019
16d80a7
Make sure lerna handles scoped packages as public
hwillson May 24, 2019
3c07f4b
Publish
hwillson May 24, 2019
837a5bc
Add `@types/graphql` to the Hooks demo app
hwillson May 24, 2019
7729212
Adjust lerna package content controls
hwillson May 24, 2019
1685909
Temporary package `README` placeholders
hwillson May 24, 2019
5c3632c
Publish
hwillson May 24, 2019
2a83998
Re-export Apollo Context components/helpers from all packages
hwillson May 25, 2019
f5adde6
Update the base example to use `@apollo/react-hoc`
hwillson May 25, 2019
f29013a
Update the `components` example to use `@apollo/react-components`
hwillson May 25, 2019
69369be
Update `mutation` example to use `@apollo/react-components`
hwillson May 25, 2019
b0ae6f7
Update the `rollup` example app to use `@apollo/react-hooks`
hwillson May 25, 2019
1888507
Re-export SSR utility functions via `@apollo/react-hoc`
hwillson May 25, 2019
bdd254b
Update the SSR example to use `@apollo/react-hoc`
hwillson May 25, 2019
5553835
Adjust SSR handling to properly reflect loading state in Hooks
hwillson May 25, 2019
6d47c79
Wire up a new Hooks SSR example app, mirroring the existing HOC one
hwillson May 25, 2019
3bec07f
Adjust `typescript` example app to use `@apollo/react-components`
hwillson May 25, 2019
c90aa62
Adjust SSR tests to handle loading state
hwillson May 25, 2019
9c7cd11
HOC bundlesize increase
hwillson May 25, 2019
15dea60
Publish
hwillson May 25, 2019
2d937a0
Fix broken useApolloClient is client in context check
hwillson May 27, 2019
350ca39
Make sure a returned `ApolloClient<object>` is enforced
hwillson May 27, 2019
dbdffdd
Publish
hwillson May 27, 2019
19b284d
Stop setting optional input to `null` when using the `graphql` HOC
hwillson Jun 3, 2019
7d4d4b1
Adjust `MockLink.request` signature to line up with `ApolloLink`
hwillson Jun 3, 2019
45767f6
Make `query` optional in the `fetchMore` signature
hwillson Jun 3, 2019
66d1e18
Pass result of mutation to the `graphql` HOC wrapped component
hwillson Jun 3, 2019
2c66b19
Use `invariant` instead of `InvariantError` for clarity
hwillson Jun 3, 2019
9fbb64b
Remove unnecessary `refetchQueries` temporary var
hwillson Jun 3, 2019
f1f5052
Unify README layout and metadata
hwillson Jun 3, 2019
a58279c
Placeholder / beta testing Hooks README content
hwillson Jun 3, 2019
469bfbd
Additional README formatting
hwillson Jun 3, 2019
660f04b
Add umbrella React Apollo `all` package
hwillson Jun 3, 2019
6bfaa61
Add breaking changes
hwillson Jun 3, 2019
f0e6e35
Tweak wording and formatting of Breaking Changes section.
benjamn Jun 4, 2019
73790bd
Match more than zero tests when 'npm test' run in root directory.
benjamn Jun 4, 2019
cda6b37
Avoid using npx in package.json scripts.
benjamn Jun 4, 2019
137ef2f
Help TypeScript infer {Query,Mutation,Subscription}.propTypes types.
benjamn Jun 4, 2019
0642050
Various minor tweaks not worth requesting as changes.
benjamn Jun 4, 2019
42a9b94
Merge branch 'master' into release-3.0.0
benjamn Jun 4, 2019
e765fa5
Simplify async wait(ms) helper function.
benjamn Jun 5, 2019
5f38184
Update dependencies of examples/rollup bundle analysis app.
benjamn Jun 6, 2019
8dd7663
Merge branch 'master' into release-3.0.0
hwillson Jun 10, 2019
2071a74
Drop getters/setters for simple properties
hwillson Jun 10, 2019
ad15e43
Add `test` and `test:watch` scripts to child packages
hwillson Jun 10, 2019
9a8f935
Re-arrange `if` logic to take advantage of `&&` short-circuiting
hwillson Jun 10, 2019
0baa4d7
Reverse `if` logic order to put expensive computations last
hwillson Jun 10, 2019
e6089a7
Stop exporting `compose`
hwillson Jun 10, 2019
2c3a262
Fully Remove `catchAsyncError`
hwillson Jun 11, 2019
7de864e
Replace `wrap` utility with try-catch
hwillson Jun 11, 2019
6069932
Exclude `react-dom/server` from default `react-native` bundling
hwillson Jun 11, 2019
751a70f
Remove all getters/setters from `OperationData`
hwillson Jun 11, 2019
fd81d05
Adjust SSR classes to use `getOptions`
hwillson Jun 11, 2019
0ce4628
Remove leftover `wrap` reference
hwillson Jun 11, 2019
f88dbb0
Breaking change list updates
hwillson Jun 11, 2019
bd71cb6
Compile ESM bundle to CJS using Babel instead of Rollup
hwillson Jun 11, 2019
c2e2e33
Start testing CJS and UMD bundles again during CI
hwillson Jun 12, 2019
6cf9f28
Replace static CJS/UMD test approach with something more dynamic
hwillson Jun 14, 2019
7e07f0e
Remove unnecessary -- separator from cjs and umd test scripts
hwillson Jun 14, 2019
fc18c41
Align to React version 16.8.3, fix build issues (#3098)
matthargett Jun 14, 2019
cfa014d
Pin exact versions of devDependencies in root package.json.
benjamn Jun 14, 2019
d430480
Merge branch 'master' into release-3.0.0
benjamn Jun 14, 2019
47ec92e
Match more than zero tests when 'npm test' run in root directory.
benjamn Jun 4, 2019
447d58d
Make Apollo packages (and graphql) external in rollup.config.js.
benjamn Jun 14, 2019
df079b3
Adjust bundle size limits after fixing rollup.config.js externals.
benjamn Jun 14, 2019
f0ad14e
Publish
benjamn Jun 14, 2019
d25b3ca
Update dependencies of examples/rollup bundle size app.
benjamn Jun 14, 2019
b8cee0a
Fix incorrect `BaseSubscriptionOptions` import
hwillson Jun 17, 2019
9c81487
Merge branch 'master' into release-3.0.0
hwillson Jun 17, 2019
dc1f06b
Bump typescript and related packages. Ends up saving a few hundred by…
matthargett Jun 17, 2019
c7cf7ae
Include 3.0 changes in the 3.0 section. Pull vNext header to top. (#3…
matthargett Jun 17, 2019
87b273c
Merge branch 'master' into release-3.0.0
hwillson Jun 17, 2019
876286f
Add React Native `react-dom/server` exclusion to all packages
hwillson Jun 17, 2019
7aad988
Ensure subscription state is set before calling `onSubscriptionData`
hwillson Jun 21, 2019
48213cb
Merge branch 'master' into release-3.0.0
hwillson Jun 21, 2019
f7c420a
Add error cleanup changes from #3107
hwillson Jun 21, 2019
b54b6a7
Merge branch 'master' into release-3.0.0
hwillson Jun 21, 2019
bb838f7
Sync graphql and apollo-* package versions. (#3142)
matthargett Jun 21, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
86 changes: 17 additions & 69 deletions .circleci/config.yml
@@ -1,115 +1,63 @@
version: 2

jobs:
Node.js 8:
docker: [{ image: 'circleci/node:8' }]
steps:
- checkout
- run: npm i
- run:
name: Jest suite
command: npm run jest -- --ci --testResultsProcessor="jest-junit"
environment:
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
- store_test_results:
path: reports/junit
- store_artifacts:
path: reports/junit

Node.js 10:
Tests - ESM:
docker: [{ image: 'circleci/node:10' }]
steps:
- checkout
- run: npm i
- run:
name: Jest suite
command: npm run jest -- --ci --testResultsProcessor="jest-junit"
environment:
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
- store_test_results:
path: reports/junit
- store_artifacts:
path: reports/junit

Linting:
docker: [{ image: 'circleci/node:8' }]
steps:
- checkout
- run: npm i
- run: npm run danger
- run: npm run lint

Typecheck:
docker: [{ image: 'circleci/node:8' }]
steps:
- checkout
- run: npm i
- run: npm run type-check

Preact:
docker: [{ image: 'circleci/node:8' }]
steps:
- checkout
- run: npm i
- run:
name: Jest suite
command: npm run test-preact -- --ci --testResultsProcessor="jest-junit"
name: Tests - ESM
command: npm run test:ci
environment:
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
- store_test_results:
path: reports/junit
- store_artifacts:
path: reports/junit

Commonjs:
docker: [{ image: 'circleci/node:8' }]
Tests - CJS:
docker: [{ image: 'circleci/node:10' }]
steps:
- checkout
- run: npm i
- run: npm run compile
- run:
name: Jest suite
command: npm run test:compiled:cjs -- --ci --testResultsProcessor="jest-junit"
name: Tests - CJS
command: npm run test:cjs:ci
environment:
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
- store_test_results:
path: reports/junit
- store_artifacts:
path: reports/junit

UMD:
docker: [{ image: 'circleci/node:8' }]
Tests - UMD:
docker: [{ image: 'circleci/node:10' }]
steps:
- checkout
- run: npm i
- run: npm run compile
- run:
name: Jest suite
command: npm run test:compiled:umd -- --ci --testResultsProcessor="jest-junit"
name: Tests - CJS
command: npm run test:umd:ci
environment:
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
- store_test_results:
path: reports/junit
- store_artifacts:
path: reports/junit

Filesize:
Bundlesize:
docker: [{ image: 'circleci/node:8' }]
steps:
- checkout
- run: npm i
- run: npm run compile
- run: npm run filesize
- run: npm run bundlesize

workflows:
version: 2
Build and Test:
jobs:
- Node.js 8
- Node.js 10
- Linting
- Typecheck
- Preact
- UMD
- Commonjs
- Filesize
- Tests - ESM
- Tests - CJS
- Tests - UMD
- Bundlesize
12 changes: 0 additions & 12 deletions .github/no-response.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/probot-snooze.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/settings.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/stale.yml

This file was deleted.

42 changes: 5 additions & 37 deletions .gitignore
@@ -1,43 +1,11 @@
.idea
.rpt2_cache

# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
meta
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

# don't commit compiled files
lib
test-lib
dist
build
npm
.reports

# don't track yarn.lock but allow contributors to use it for local dev
lib
yarn.lock

.vscode
examples/**/package-lock.json
packages/**/package-lock.json
junit.xml
1 change: 0 additions & 1 deletion .npmignore

This file was deleted.

3 changes: 1 addition & 2 deletions .prettierignore
@@ -1,8 +1,7 @@
node_modules
lib
build
coverage
npm
package.json
dist
*.snap
package-lock.json
4 changes: 4 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,4 @@
{
"editor.formatOnSave": true,
"prettier.singleQuote": true
}