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: kamilkisiela/apollo-angular
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.0.1
Choose a base ref
...
head repository: kamilkisiela/apollo-angular
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.1.0
Choose a head ref
  • 2 commits
  • 178 files changed
  • 4 contributors

Commits on Oct 13, 2022

  1. New Website Apollo Angular (#1815)

    * Update to latest angular and typescript
    * Fix Apollo Client ts-level breaking changes
    
    Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
    Co-authored-by: Dotan Simha <dotansimha@gmail.com>
    Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
    4 people authored Oct 13, 2022
    Copy the full SHA
    c64a05c View commit details
  2. 4.1.0

    kamilkisiela committed Oct 13, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d1f4b40 View commit details
Showing with 9,553 additions and 4,547 deletions.
  1. +36 −37 .github/workflows/website.yml
  2. +3 −4 .gitignore
  3. +6 −8 package.json
  4. +5 −0 packages/apollo-angular/CHANGELOG.md
  5. +0 −13 packages/apollo-angular/babel.config.js
  6. +41 −49 packages/apollo-angular/http/tests/http-batch-link.spec.ts
  7. +1 −1 packages/apollo-angular/package.json
  8. +1 −1 packages/apollo-angular/schematics/install/index.ts
  9. +25 −65 packages/apollo-angular/src/apollo.ts
  10. +7 −16 packages/apollo-angular/src/types.ts
  11. +98 −98 packages/apollo-angular/tests/Apollo.spec.ts
  12. +4 −1 packages/demo/angular.json
  13. +1 −0 prettier.config.cjs
  14. +0 −23 website/.gitignore
  15. +0 −10 website/docs/local-state/reactive-variables.md
  16. +0 −61 website/docs/recipes/automatic-persisted-queries.md
  17. +0 −191 website/docusaurus.config.js
  18. +5 −0 website/next-env.d.ts
  19. +6 −0 website/next-sitemap.config.cjs
  20. +13 −0 website/next.config.mjs
  21. +24 −11 website/package.json
  22. +1,845 −0 website/patches/nextra-theme-docs+2.0.0-beta.29.patch
  23. +1 −0 website/postcss.config.cjs
  24. BIN ...te/{static/img/devtools/apollo-client-devtools → public/assets/docs}/apollo-devtools-graphiql.png
  25. BIN ...ite/{static/img/devtools/apollo-client-devtools → public/assets/docs}/apollo-devtools-queries.png
  26. BIN website/{static/img/devtools/apollo-client-devtools → public/assets/docs}/apollo-devtools-store.png
  27. BIN website/{static → public/assets}/img/cover.png
  28. BIN website/{static → public/assets}/img/devtools/devtools.png
  29. BIN website/{static → public/assets}/img/devtools/mutation-init.png
  30. BIN website/{static → public/assets}/img/devtools/mutation-result-data.png
  31. BIN website/{static → public/assets}/img/devtools/mutation-result.png
  32. BIN website/{static → public/assets}/img/devtools/query-init-data.png
  33. BIN website/{static → public/assets}/img/devtools/query-init.png
  34. BIN website/{static → public/assets}/img/devtools/query-result.png
  35. BIN website/{static → public/assets}/img/logo/icon-apollo-white-200x200.png
  36. 0 website/{static → public/assets}/img/logo/logo-apollo-space.svg
  37. 0 website/{static/img/features → public/assets}/undraw_business.svg
  38. 0 website/{static/img/features → public/assets}/undraw_done.svg
  39. 0 website/{static/img/features → public/assets}/undraw_forming_ideas.svg
  40. 0 website/{static/img/features → public/assets}/undraw_navigator.svg
  41. BIN website/{static/img/logo → public}/favicon.png
  42. +14 −0 website/scripts/algolia-ci.mjs
  43. +0 −47 website/sidebars.js
  44. +61 −0 website/src/components/index-page.tsx
  45. +0 −65 website/src/css/custom.css
  46. +6 −0 website/src/pages/_app.tsx
  47. +25 −0 website/src/pages/_meta.json
  48. +11 −0 website/src/pages/docs/_meta.json
  49. +7 −0 website/src/pages/docs/caching/_meta.json
  50. +75 −65 website/{docs/caching/advanced-topics.md → src/pages/docs/caching/advanced-topics.mdx}
  51. +76 −70 website/{docs/caching/configuration.md → src/pages/docs/caching/configuration.mdx}
  52. +1 −4 website/{docs/caching/field-behavior.md → src/pages/docs/caching/field-behavior.mdx}
  53. +7 −6 website/{docs/caching/garbage-collection.md → src/pages/docs/caching/garbage-collection.mdx}
  54. +2 −5 website/{docs/caching/interaction.md → src/pages/docs/caching/interaction.mdx}
  55. +10 −0 website/src/pages/docs/data/_meta.json
  56. +19 −19 website/{versioned_docs/version-2.0/data/error-handling.md → src/pages/docs/data/error-handling.mdx}
  57. +24 −29 website/{versioned_docs/version-2.0/data/fragments.md → src/pages/docs/data/fragments.mdx}
  58. +126 −102 website/{docs/data/mutations.md → src/pages/docs/data/mutations.mdx}
  59. +123 −116 website/{docs/data/network.md → src/pages/docs/data/network.mdx}
  60. +79 −94 website/{versioned_docs/version-2.0/data/pagination.md → src/pages/docs/data/pagination.mdx}
  61. +101 −83 website/{docs/data/queries.md → src/pages/docs/data/queries.mdx}
  62. +85 −83 website/{docs/data/services.md → src/pages/docs/data/services.mdx}
  63. +85 −73 website/{docs/data/subscriptions.md → src/pages/docs/data/subscriptions.mdx}
  64. +6 −0 website/src/pages/docs/development-and-testing/_meta.json
  65. +12 −11 ...ting/client-schema-mocking.md → src/pages/docs/development-and-testing/client-schema-mocking.mdx}
  66. +19 −18 ...ment-and-testing/developer-tools.md → src/pages/docs/development-and-testing/developer-tools.mdx}
  67. +30 −24 ...sion-2.0/development-and-testing/testing.md → src/pages/docs/development-and-testing/testing.mdx}
  68. +19 −12 ...nt-and-testing/using-typescript.md → src/pages/docs/development-and-testing/using-typescript.mdx}
  69. +73 −75 website/{docs/get-started.md → src/pages/docs/get-started.mdx}
  70. +15 −15 website/{versioned_docs/version-2.0/index.md → src/pages/docs/index.mdx}
  71. +5 −0 website/src/pages/docs/local-state/_meta.json
  72. +8 −8 ...versioned_docs/version-2.0/local-state/management.md → src/pages/docs/local-state/management.mdx}
  73. +77 −61 ...state-with-field-policies.md → src/pages/docs/local-state/managing-state-with-field-policies.mdx}
  74. +11 −0 website/src/pages/docs/local-state/reactive-variables.mdx
  75. +34 −35 website/{docs/migration.md → src/pages/docs/migration.mdx}
  76. +5 −0 website/src/pages/docs/performance/_meta.json
  77. +8 −10 ...docs/performance/improving-performance.md → src/pages/docs/performance/improving-performance.mdx}
  78. +14 −13 ...ned_docs/version-2.0/performance/optimistic-ui.md → src/pages/docs/performance/optimistic-ui.mdx}
  79. +21 −19 ...-2.0/performance/server-side-rendering.md → src/pages/docs/performance/server-side-rendering.mdx}
  80. +9 −0 website/src/pages/docs/recipes/_meta.json
  81. +11 −8 website/{versioned_docs/version-2.0/recipes/angular-cli.md → src/pages/docs/recipes/angular-cli.mdx}
  82. +15 −15 website/{docs/recipes/authentication.md → src/pages/docs/recipes/authentication.mdx}
  83. +61 −0 website/src/pages/docs/recipes/automatic-persisted-queries.mdx
  84. +27 −23 website/{docs/recipes/multiple-clients.md → src/pages/docs/recipes/multiple-clients.mdx}
  85. +13 −11 ...te/{versioned_docs/version-2.0/recipes/nativescript.md → src/pages/docs/recipes/nativescript.mdx}
  86. +12 −0 website/src/pages/docs/recipes/simple-example.mdx
  87. +46 −44 website/{docs/recipes/webpack.md → src/pages/docs/recipes/webpack.mdx}
  88. +0 −91 website/src/pages/index.js
  89. +5 −0 website/src/pages/index.mdx
  90. +0 −30 website/src/pages/index.module.css
  91. +8 −0 website/src/pages/v1/_meta.json
  92. +9 −0 website/src/pages/v1/basics/_meta.json
  93. +15 −10 website/{versioned_docs/version-1.0/basics/caching.md → src/pages/v1/basics/caching.mdx}
  94. +18 −12 website/{versioned_docs/version-1.0/basics/local-state.md → src/pages/v1/basics/local-state.mdx}
  95. +12 −8 website/{versioned_docs/version-1.0/basics/mutations.md → src/pages/v1/basics/mutations.mdx}
  96. +3 −1 website/{versioned_docs/version-1.0/basics/network-layer.md → src/pages/v1/basics/network-layer.mdx}
  97. +6 −6 website/{versioned_docs/version-1.0/basics/queries.md → src/pages/v1/basics/queries.mdx}
  98. +14 −13 website/{versioned_docs/version-1.0/basics/services.md → src/pages/v1/basics/services.mdx}
  99. +21 −23 website/{versioned_docs/version-1.0/basics/setup.md → src/pages/v1/basics/setup.mdx}
  100. +11 −0 website/src/pages/v1/features/_meta.json
  101. +17 −13 .../{versioned_docs/version-1.0/features/cache-updates.md → src/pages/v1/features/cache-updates.mdx}
  102. +7 −6 website/{versioned_docs/version-1.0/features/caching.md → src/pages/v1/features/caching.mdx}
  103. +5 −4 ...versioned_docs/version-1.0/features/error-handling.md → src/pages/v1/features/error-handling.mdx}
  104. +2 −4 website/{versioned_docs/version-1.0/features/fragments.md → src/pages/v1/features/fragments.mdx}
  105. +7 −5 ...ioned_docs/version-1.0/features/multiple-clients.md → src/pages/v1/features/multiple-clients.mdx}
  106. +12 −10 ...te/{versioned_docs/version-1.0/features/nativescript.md → src/pages/v1/features/nativescript.mdx}
  107. +6 −8 .../{versioned_docs/version-1.0/features/optimistic-ui.md → src/pages/v1/features/optimistic-ui.mdx}
  108. +3 −5 .../{versioned_docs/version-1.0/features/static-typing.md → src/pages/v1/features/static-typing.mdx}
  109. +11 −8 .../{versioned_docs/version-1.0/features/subscriptions.md → src/pages/v1/features/subscriptions.mdx}
  110. +5 −0 website/src/pages/v1/guides/_meta.json
  111. +6 −5 ...versioned_docs/version-1.0/guides/state-management.md → src/pages/v1/guides/state-management.mdx}
  112. +2 −1 website/{versioned_docs/version-1.0/guides/testing.md → src/pages/v1/guides/testing.mdx}
  113. +5 −4 ...ioned_docs/version-1.0/guides/tools-and-packages.md → src/pages/v1/guides/tools-and-packages.mdx}
  114. +25 −24 website/{versioned_docs/version-1.0/index.md → src/pages/v1/index.mdx}
  115. +19 −14 website/{versioned_docs/version-1.0/migration.md → src/pages/v1/migration.mdx}
  116. +12 −0 website/src/pages/v1/recipes/_meta.json
  117. +1 −3 website/{versioned_docs/version-1.0/recipes/angular-cli.md → src/pages/v1/recipes/angular-cli.mdx}
  118. +15 −13 .../{versioned_docs/version-1.0/recipes/authentication.md → src/pages/v1/recipes/authentication.mdx}
  119. +5 −4 ...versioned_docs/version-1.0/recipes/boost-migration.md → src/pages/v1/recipes/boost-migration.mdx}
  120. +11 −0 website/src/pages/v1/recipes/meteor.mdx
  121. +4 −6 website/{versioned_docs/version-1.0/recipes/pagination.md → src/pages/v1/recipes/pagination.mdx}
  122. +2 −4 website/{versioned_docs/version-1.0/recipes/prefetching.md → src/pages/v1/recipes/prefetching.mdx}
  123. +2 −4 ...versioned_docs/version-1.0/recipes/query-splitting.md → src/pages/v1/recipes/query-splitting.mdx}
  124. +12 −9 ...cs/version-1.0/recipes/server-side-rendering.md → src/pages/v1/recipes/server-side-rendering.mdx}
  125. +2 −1 .../{versioned_docs/version-1.0/recipes/simple-example.md → src/pages/v1/recipes/simple-example.mdx}
  126. +3 −5 website/{versioned_docs/version-1.0/recipes/webpack.md → src/pages/v1/recipes/webpack.mdx}
  127. +11 −0 website/src/pages/v2/_meta.json
  128. +7 −0 website/src/pages/v2/caching/_meta.json
  129. +17 −14 ...versioned_docs/version-2.0/caching/advanced-topics.md → src/pages/v2/caching/advanced-topics.mdx}
  130. +20 −17 ...te/{versioned_docs/version-2.0/caching/configuration.md → src/pages/v2/caching/configuration.mdx}
  131. +1 −4 .../{versioned_docs/version-2.0/caching/field-behavior.md → src/pages/v2/caching/field-behavior.mdx}
  132. +6 −5 ...ned_docs/version-2.0/caching/garbage-collection.md → src/pages/v2/caching/garbage-collection.mdx}
  133. +1 −4 website/{versioned_docs/version-2.0/caching/interaction.md → src/pages/v2/caching/interaction.mdx}
  134. +10 −0 website/src/pages/v2/data/_meta.json
  135. +3 −2 website/{docs/data/error-handling.md → src/pages/v2/data/error-handling.mdx}
  136. +3 −5 website/{docs/data/fragments.md → src/pages/v2/data/fragments.mdx}
  137. +37 −29 website/{versioned_docs/version-2.0/data/mutations.md → src/pages/v2/data/mutations.mdx}
  138. +13 −6 website/{versioned_docs/version-2.0/data/network.md → src/pages/v2/data/network.mdx}
  139. +6 −8 website/{docs/data/pagination.md → src/pages/v2/data/pagination.mdx}
  140. +22 −10 website/{versioned_docs/version-2.0/data/queries.md → src/pages/v2/data/queries.mdx}
  141. +13 −7 website/{versioned_docs/version-2.0/data/services.md → src/pages/v2/data/services.mdx}
  142. +12 −7 website/{versioned_docs/version-2.0/data/subscriptions.md → src/pages/v2/data/subscriptions.mdx}
  143. +6 −0 website/src/pages/v2/development-and-testing/_meta.json
  144. +6 −5 ...esting/client-schema-mocking.md → src/pages/v2/development-and-testing/client-schema-mocking.mdx}
  145. +3 −2 ...opment-and-testing/developer-tools.md → src/pages/v2/development-and-testing/developer-tools.mdx}
  146. +9 −4 website/{docs/development-and-testing/testing.md → src/pages/v2/development-and-testing/testing.mdx}
  147. +6 −5 ...ment-and-testing/using-typescript.md → src/pages/v2/development-and-testing/using-typescript.mdx}
  148. +19 −14 website/{versioned_docs/version-2.0/get-started.md → src/pages/v2/get-started.mdx}
  149. +9 −9 website/{docs/index.md → src/pages/v2/index.mdx}
  150. +5 −0 website/src/pages/v2/local-state/_meta.json
  151. +8 −8 website/{docs/local-state/management.md → src/pages/v2/local-state/management.mdx}
  152. +22 −14 ...g-state-with-field-policies.md → src/pages/v2/local-state/managing-state-with-field-policies.mdx}
  153. +2 −1 .../version-2.0/local-state/reactive-variables.md → src/pages/v2/local-state/reactive-variables.mdx}
  154. +30 −58 website/{versioned_docs/version-2.0/migration.md → src/pages/v2/migration.mdx}
  155. +5 −0 website/src/pages/v2/performance/_meta.json
  156. +7 −9 ...on-2.0/performance/improving-performance.md → src/pages/v2/performance/improving-performance.mdx}
  157. +4 −6 website/{docs/performance/optimistic-ui.md → src/pages/v2/performance/optimistic-ui.mdx}
  158. +11 −8 .../{docs/performance/server-side-rendering.md → src/pages/v2/performance/server-side-rendering.mdx}
  159. +9 −0 website/src/pages/v2/recipes/_meta.json
  160. +11 −9 website/{docs/recipes/angular-cli.md → src/pages/v2/recipes/angular-cli.mdx}
  161. +2 −4 .../{versioned_docs/version-2.0/recipes/authentication.md → src/pages/v2/recipes/authentication.mdx}
  162. +12 −12 ....0/recipes/automatic-persisted-queries.md → src/pages/v2/recipes/automatic-persisted-queries.mdx}
  163. +8 −6 ...rsioned_docs/version-2.0/recipes/multiple-clients.md → src/pages/v2/recipes/multiple-clients.mdx}
  164. +12 −10 website/{docs/recipes/nativescript.md → src/pages/v2/recipes/nativescript.mdx}
  165. +3 −2 website/{docs/recipes/simple-example.md → src/pages/v2/recipes/simple-example.mdx}
  166. +6 −7 website/{versioned_docs/version-2.0/recipes/webpack.md → src/pages/v2/recipes/webpack.mdx}
  167. +0 −21 website/src/theme/Root.js
  168. 0 website/static/.nojekyll
  169. +0 −1 website/static/CNAME
  170. +1 −0 website/tailwind.config.cjs
  171. +25 −0 website/theme.config.tsx
  172. +23 −0 website/tsconfig.json
  173. +0 −6 website/versioned_docs/version-1.0/recipes/meteor.md
  174. +0 −11 website/versioned_docs/version-2.0/recipes/simple-example.md
  175. +0 −163 website/versioned_sidebars/version-1.0-sidebars.json
  176. +0 −185 website/versioned_sidebars/version-2.0-sidebars.json
  177. +0 −4 website/versions.json
  178. +5,174 −1,639 yarn.lock
73 changes: 36 additions & 37 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,43 @@
name: Website Deployment
on: [pull_request, push]
name: website

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
checks:
if: github.event_name != 'push'
deployment:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: checkout
uses: actions/checkout@v3
with:
node-version: 16.x
cache: yarn
- name: Test Build
working-directory: website
run: |
yarn install
yarn build
gh-release:
if: contains(github.event.head_commit.message, '[deploy_website]') || contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
fetch-depth: 0

- uses: the-guild-org/shared-config/setup@main
name: website
with:
node-version: 16.x
cache: yarn
- name: Build website
working-directory: website
run: |
yarn install
yarn build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
nodeVersion: 18 # change if needed
packageManager: yarn # change if needed

- uses: the-guild-org/shared-config/website-cf@main
name: build and deploy website
env:
NEXT_BASE_PATH: ${{ github.ref == 'refs/heads/master' && '/graphql/apollo-angular' || '' }}
SITE_URL: ${{ github.ref == 'refs/heads/master' && 'https://the-guild.dev/graphql/apollo-angular' || '' }}
NEXT_PUBLIC_ALGOLIA_INDEX_NAME: ${{ secrets.NEXT_PUBLIC_ALGOLIA_INDEX_NAME }}
NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY: ${{ secrets.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY }}
NEXT_PUBLIC_ALGOLIA_APP_ID: ${{ secrets.NEXT_PUBLIC_ALGOLIA_APP_ID }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./website/build
# Assign commit authorship to the official GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# You can swap them out with your own user credentials.
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com
cloudflareApiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
cloudflareAccountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: apollo-angular
prId: ${{ github.event.pull_request.number }}
websiteDirectory: ./
buildScript: cd website && yarn && yarn build && yarn next export
artifactDir: website/out
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -44,18 +44,17 @@ jspm_packages
# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# IDEs
.idea/

# Packages lock
package-lock.json
packages/**/package-lock.json

# npm directories (for deploying)
packages/*/npm/

# docs
docs/public/docs

.next/
website/public/sitemap.xml
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
"node": ">=14"
},
"scripts": {
"postinstall": "yarn workspace website patch-package",
"prebuild": "rimraf packages/*/build/",
"build": "yarn workspaces run build",
"test": "yarn workspaces run test",
@@ -16,7 +17,8 @@
},
"workspaces": {
"packages": [
"packages/*"
"packages/*",
"website"
]
},
"devDependencies": {
@@ -33,10 +35,11 @@
"@angular/platform-browser-dynamic": "^14.0.6",
"@angular/platform-server": "^14.0.6",
"@angular/router": "^14.0.6",
"@apollo/client": "3.6.9",
"@apollo/client": "3.7.0",
"@babel/core": "^7.17.4",
"@babel/preset-env": "^7.16.11",
"@schematics/angular": "^14.0.6",
"@theguild/prettier-config": "^0.1.0",
"@types/jest": "28.1.5",
"@types/node": "16.11.7",
"babel-jest": "^28.1.3",
@@ -56,7 +59,7 @@
"shelljs": "0.8.5",
"ts-jest": "^28.0.6",
"tslib": "^2.3.0",
"typescript": "~4.7.4",
"typescript": "4.8.4",
"zone.js": "~0.11.4"
},
"husky": {
@@ -69,11 +72,6 @@
"prettier --write"
]
},
"prettier": {
"bracketSpacing": false,
"singleQuote": true,
"trailingComma": "all"
},
"browserslist": [
"defaults",
"not IE 11",
5 changes: 5 additions & 0 deletions packages/apollo-angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,11 @@

### vNext

### v4.1.0

- Support `@apollo/client` v3.7.X
- Fix typescript issue with `MutationResult` type #1818

### v4.0.1

- Add missing `apollo-angular/persisted-queries` and `apollo-angular/testing`
13 changes: 0 additions & 13 deletions packages/apollo-angular/babel.config.js

This file was deleted.

Loading