graphiti 2.0.0.beta.7 → 2.0.0.beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/.git-blame-ignore-revs +2 -0
  3. data/.github/workflows/ci.yml +55 -3
  4. data/.github/workflows/docs.yml +1 -1
  5. data/.github/workflows/notify-example-app.yml +18 -0
  6. data/.gitignore +2 -0
  7. data/.standard.yml +6 -0
  8. data/CHANGELOG.md +45 -0
  9. data/CONTRIBUTING.md +3 -1
  10. data/README.md +13 -206
  11. data/Rakefile +6 -3
  12. data/UPGRADING.md +1 -1
  13. data/graphiti.gemspec +8 -4
  14. data/lib/generators/graphiti/generator_mixin.rb +1 -1
  15. data/lib/generators/graphiti/install_generator.rb +1 -1
  16. data/lib/generators/graphiti/resource_generator.rb +6 -3
  17. data/lib/generators/graphiti/templates/application_resource.rb.erb +19 -0
  18. data/lib/generators/graphiti/templates/controller.rb.erb +26 -8
  19. data/lib/graphiti/audit/report.rb +6 -6
  20. data/lib/graphiti/audit.rb +3 -4
  21. data/lib/graphiti/delegates/pagination.rb +2 -2
  22. data/lib/graphiti/deserializer.rb +3 -3
  23. data/lib/graphiti/errors.rb +6 -6
  24. data/lib/graphiti/extensions/temp_id.rb +1 -1
  25. data/lib/graphiti/query.rb +3 -3
  26. data/lib/graphiti/rails/context.rb +2 -1
  27. data/lib/graphiti/rails/controller.rb +3 -0
  28. data/lib/graphiti/rails/debugging.rb +1 -1
  29. data/lib/graphiti/rails/responders.rb +2 -1
  30. data/lib/graphiti/resource/configuration.rb +1 -0
  31. data/lib/graphiti/resource/dsl.rb +2 -2
  32. data/lib/graphiti/resource/links.rb +1 -1
  33. data/lib/graphiti/resource/persistence.rb +1 -1
  34. data/lib/graphiti/resource/polymorphism.rb +1 -1
  35. data/lib/graphiti/resource.rb +2 -2
  36. data/lib/graphiti/resource_proxy.rb +0 -1
  37. data/lib/graphiti/scoping/filter.rb +5 -3
  38. data/lib/graphiti/scoping/paginate.rb +1 -1
  39. data/lib/graphiti/scoping/sort.rb +1 -1
  40. data/lib/graphiti/sideload/has_many.rb +1 -1
  41. data/lib/graphiti/spec_helpers/errors_proxy.rb +1 -1
  42. data/lib/graphiti/spec_helpers/matchers.rb +1 -1
  43. data/lib/graphiti/types.rb +5 -1
  44. data/lib/graphiti/util/cache_debug.rb +3 -3
  45. data/lib/graphiti/util/hash.rb +1 -1
  46. data/lib/graphiti/util/persistence.rb +6 -6
  47. data/lib/graphiti/util/serializer_relationships.rb +1 -1
  48. data/lib/graphiti/version.rb +1 -1
  49. data/lib/tasks/graphiti.rake +1 -1
  50. metadata +31 -197
  51. data/docs/concepts/backends-and-models.md +0 -122
  52. data/docs/concepts/endpoints.md +0 -183
  53. data/docs/concepts/links.md +0 -212
  54. data/docs/concepts/overview.md +0 -80
  55. data/docs/concepts/persisting.md +0 -376
  56. data/docs/concepts/relationships.md +0 -627
  57. data/docs/concepts/resources.md +0 -677
  58. data/docs/getting-started/first-api.md +0 -289
  59. data/docs/getting-started/installation.md +0 -185
  60. data/docs/intro.md +0 -307
  61. data/docs/js/authentication.md +0 -63
  62. data/docs/js/ddau.md +0 -20
  63. data/docs/js/extra-params.md +0 -41
  64. data/docs/js/index.md +0 -112
  65. data/docs/js/installation.md +0 -120
  66. data/docs/js/middleware.md +0 -72
  67. data/docs/js/models.md +0 -202
  68. data/docs/js/reads.md +0 -494
  69. data/docs/js/state-syncing.md +0 -100
  70. data/docs/js/writes.md +0 -373
  71. data/docs/reference/vandal.md +0 -63
  72. data/docs/reference/why.md +0 -13
  73. data/docs/topics/authorization.md +0 -155
  74. data/docs/topics/caching.md +0 -55
  75. data/docs/topics/customizing-sideloads.md +0 -156
  76. data/docs/topics/debugging.md +0 -242
  77. data/docs/topics/error-handling.md +0 -210
  78. data/docs/topics/etags.md +0 -46
  79. data/docs/topics/hopping-relationships.md +0 -149
  80. data/docs/topics/json-attributes.md +0 -77
  81. data/docs/topics/openstruct-models.md +0 -50
  82. data/docs/topics/remote-resources.md +0 -291
  83. data/docs/topics/testing.md +0 -916
  84. data/docs/topics/without-activerecord.md +0 -324
  85. data/docs/tutorial/index.md +0 -58
  86. data/docs/tutorial/step_0.md +0 -107
  87. data/docs/tutorial/step_1.md +0 -199
  88. data/docs/tutorial/step_2.md +0 -312
  89. data/docs/tutorial/step_3.md +0 -142
  90. data/docs/tutorial/step_4.md +0 -135
  91. data/docs/tutorial/step_5.md +0 -69
  92. data/docs/tutorial/step_6.md +0 -82
  93. data/docs/tutorial/step_7.md +0 -205
  94. data/docs/tutorial/step_8.md +0 -128
  95. data/docs/tutorial/step_9.md +0 -171
  96. data/docs/upgrading.md +0 -267
  97. data/website/.gitignore +0 -20
  98. data/website/README.md +0 -43
  99. data/website/docusaurus.config.js +0 -197
  100. data/website/package-lock.json +0 -19474
  101. data/website/package.json +0 -46
  102. data/website/sidebars.js +0 -82
  103. data/website/src/css/custom.css +0 -85
  104. data/website/src/pages/markdown-page.mdx +0 -7
  105. data/website/static/.nojekyll +0 -0
  106. data/website/static/1.13/2019/03/31/graphiti-1-0.html +0 -205
  107. data/website/static/1.13/2019/05/08/graphiti-1-1.html +0 -212
  108. data/website/static/1.13/2019/05/20/graphiti-1-2.html +0 -214
  109. data/website/static/1.13/2019/10/14/tutorial.html +0 -198
  110. data/website/static/1.13/CNAME +0 -1
  111. data/website/static/1.13/README.md +0 -16
  112. data/website/static/1.13/assets/css/syntax.css +0 -60
  113. data/website/static/1.13/assets/favicons/android-chrome-192x192.png +0 -0
  114. data/website/static/1.13/assets/favicons/android-chrome-256x256.png +0 -0
  115. data/website/static/1.13/assets/favicons/apple-touch-icon.png +0 -0
  116. data/website/static/1.13/assets/favicons/browserconfig.xml +0 -9
  117. data/website/static/1.13/assets/favicons/favicon-16x16.png +0 -0
  118. data/website/static/1.13/assets/favicons/favicon-32x32.png +0 -0
  119. data/website/static/1.13/assets/favicons/favicon.ico +0 -0
  120. data/website/static/1.13/assets/favicons/mstile-150x150.png +0 -0
  121. data/website/static/1.13/assets/favicons/safari-pinned-tab.svg +0 -1
  122. data/website/static/1.13/assets/favicons/site.webmanifest +0 -19
  123. data/website/static/1.13/assets/img/backend.gif +0 -0
  124. data/website/static/1.13/assets/img/conformity.png +0 -0
  125. data/website/static/1.13/assets/img/error_payload.png +0 -0
  126. data/website/static/1.13/assets/img/fancy-cushion.png +0 -0
  127. data/website/static/1.13/assets/img/gh.png +0 -0
  128. data/website/static/1.13/assets/img/home-bg.jpg +0 -0
  129. data/website/static/1.13/assets/img/lifecycle.gif +0 -0
  130. data/website/static/1.13/assets/img/logo-500.png +0 -0
  131. data/website/static/1.13/assets/img/logo.png +0 -0
  132. data/website/static/1.13/assets/img/love-graffiti.jpg +0 -0
  133. data/website/static/1.13/assets/img/meta_total_count.png +0 -0
  134. data/website/static/1.13/assets/img/persist.jpg +0 -0
  135. data/website/static/1.13/assets/img/resource.gif +0 -0
  136. data/website/static/1.13/assets/img/rest-graffiti.jpg +0 -0
  137. data/website/static/1.13/assets/img/rest1.gif +0 -0
  138. data/website/static/1.13/assets/img/rest2.gif +0 -0
  139. data/website/static/1.13/assets/img/rest3.gif +0 -0
  140. data/website/static/1.13/assets/img/rethink-rest-graffiti.jpg +0 -0
  141. data/website/static/1.13/assets/img/sunrise.png +0 -0
  142. data/website/static/1.13/assets/img/why.png +0 -0
  143. data/website/static/1.13/assets/js/highlight.pack.js +0 -2
  144. data/website/static/1.13/assets/main.css +0 -15518
  145. data/website/static/1.13/assets/main.css.map +0 -1
  146. data/website/static/1.13/bin/bundle +0 -109
  147. data/website/static/1.13/bin/jekyll +0 -27
  148. data/website/static/1.13/bin/kramdown +0 -27
  149. data/website/static/1.13/bin/listen +0 -27
  150. data/website/static/1.13/bin/rake +0 -27
  151. data/website/static/1.13/bin/rougify +0 -27
  152. data/website/static/1.13/bin/safe_yaml +0 -27
  153. data/website/static/1.13/bin/sass +0 -27
  154. data/website/static/1.13/bin/sass-convert +0 -27
  155. data/website/static/1.13/bin/scss +0 -27
  156. data/website/static/1.13/blog.html +0 -259
  157. data/website/static/1.13/cheatsheet.html +0 -316
  158. data/website/static/1.13/cookbooks/authorization.md +0 -0
  159. data/website/static/1.13/cookbooks/caching.md +0 -0
  160. data/website/static/1.13/cookbooks/customizing-sideloads.html +0 -325
  161. data/website/static/1.13/cookbooks/etags.md +0 -0
  162. data/website/static/1.13/cookbooks/hopping-relationships.html +0 -324
  163. data/website/static/1.13/cookbooks/json_attributes.md +0 -0
  164. data/website/static/1.13/cookbooks/openstruct-models.md +0 -0
  165. data/website/static/1.13/cookbooks/remote-resources.md +0 -0
  166. data/website/static/1.13/cookbooks/without-activerecord.html +0 -510
  167. data/website/static/1.13/features.html +0 -249
  168. data/website/static/1.13/feed.xml +0 -106
  169. data/website/static/1.13/guides/concepts/backends-and-models.html +0 -467
  170. data/website/static/1.13/guides/concepts/debugging.html +0 -440
  171. data/website/static/1.13/guides/concepts/endpoints.html +0 -432
  172. data/website/static/1.13/guides/concepts/error-handling.html +0 -396
  173. data/website/static/1.13/guides/concepts/links.html +0 -501
  174. data/website/static/1.13/guides/concepts/remote-resources.html +0 -536
  175. data/website/static/1.13/guides/concepts/resources.html +0 -2176
  176. data/website/static/1.13/guides/concepts/testing.html +0 -1469
  177. data/website/static/1.13/guides/getting-started/installation.html +0 -420
  178. data/website/static/1.13/guides/graphiti-rails-migration.html +0 -242
  179. data/website/static/1.13/guides/index.html +0 -269
  180. data/website/static/1.13/guides/overview.html +0 -325
  181. data/website/static/1.13/guides/upgrading-2-0.html +0 -193
  182. data/website/static/1.13/guides/upgrading.html +0 -314
  183. data/website/static/1.13/guides/vandal.html +0 -282
  184. data/website/static/1.13/guides/why.html +0 -1121
  185. data/website/static/1.13/index.html +0 -72
  186. data/website/static/1.13/js/authentication.html +0 -295
  187. data/website/static/1.13/js/ddau.html +0 -238
  188. data/website/static/1.13/js/extra-params.html +0 -270
  189. data/website/static/1.13/js/index.html +0 -321
  190. data/website/static/1.13/js/installation.html +0 -637
  191. data/website/static/1.13/js/introduction.html +0 -257
  192. data/website/static/1.13/js/middleware.html +0 -318
  193. data/website/static/1.13/js/reads/fieldsets.html +0 -271
  194. data/website/static/1.13/js/reads/filtering.html +0 -289
  195. data/website/static/1.13/js/reads/includes.html +0 -260
  196. data/website/static/1.13/js/reads/index.html +0 -497
  197. data/website/static/1.13/js/reads/nested-queries.html +0 -353
  198. data/website/static/1.13/js/reads/pagination.html +0 -260
  199. data/website/static/1.13/js/reads/sorting.html +0 -265
  200. data/website/static/1.13/js/reads/statistics.html +0 -289
  201. data/website/static/1.13/js/state-syncing.html +0 -340
  202. data/website/static/1.13/js/writes/deferred.html +0 -296
  203. data/website/static/1.13/js/writes/dirty-tracking.html +0 -399
  204. data/website/static/1.13/js/writes/index.html +0 -391
  205. data/website/static/1.13/js/writes/nested.html +0 -330
  206. data/website/static/1.13/js/writes/validations.html +0 -272
  207. data/website/static/1.13/quickstart.html +0 -660
  208. data/website/static/1.13/template +0 -161
  209. data/website/static/1.13/tutorial/index.html +0 -250
  210. data/website/static/1.13/tutorial/step_0.html +0 -292
  211. data/website/static/1.13/tutorial/step_1.html +0 -517
  212. data/website/static/1.13/tutorial/step_2.html +0 -481
  213. data/website/static/1.13/tutorial/step_3.html +0 -323
  214. data/website/static/1.13/tutorial/step_4.html +0 -318
  215. data/website/static/1.13/tutorial/step_5.html +0 -265
  216. data/website/static/1.13/tutorial/step_6.html +0 -276
  217. data/website/static/1.13/tutorial/step_7.html +0 -390
  218. data/website/static/1.13/tutorial/step_8.html +0 -316
  219. data/website/static/1.13/tutorial/step_9.html +0 -365
  220. data/website/static/CNAME +0 -1
  221. data/website/static/assets/img/error_payload.png +0 -0
  222. data/website/static/assets/img/legacy/legacy-0378a3bb39.png +0 -0
  223. data/website/static/assets/img/legacy/legacy-05bbd3e5fd.png +0 -0
  224. data/website/static/assets/img/legacy/legacy-07aa104495.png +0 -0
  225. data/website/static/assets/img/legacy/legacy-0c75a16b3a.gif +0 -0
  226. data/website/static/assets/img/legacy/legacy-3076df6209.png +0 -0
  227. data/website/static/assets/img/legacy/legacy-7f6889bc89.png +0 -0
  228. data/website/static/assets/img/legacy/legacy-a2cc4363c3.png +0 -0
  229. data/website/static/assets/img/legacy/legacy-f67cfa89ab.png +0 -0
  230. data/website/static/assets/img/meta_total_count.png +0 -0
  231. data/website/static/img/docusaurus-social-card.jpg +0 -0
  232. data/website/static/img/docusaurus.png +0 -0
  233. data/website/static/img/favicon.ico +0 -0
  234. data/website/static/img/logo.png +0 -0
  235. data/website/static/img/logo.svg +0 -1
  236. data/website/static/img/undraw_docusaurus_mountain.svg +0 -171
  237. data/website/static/img/undraw_docusaurus_react.svg +0 -170
  238. data/website/static/img/undraw_docusaurus_tree.svg +0 -40
data/website/package.json DELETED
@@ -1,46 +0,0 @@
1
- {
2
- "name": "website",
3
- "version": "0.0.0",
4
- "private": true,
5
- "scripts": {
6
- "docusaurus": "docusaurus",
7
- "start": "docusaurus start",
8
- "build": "docusaurus build",
9
- "swizzle": "docusaurus swizzle",
10
- "deploy": "docusaurus deploy",
11
- "clear": "docusaurus clear",
12
- "serve": "docusaurus serve",
13
- "write-translations": "docusaurus write-translations",
14
- "write-heading-ids": "docusaurus write-heading-ids"
15
- },
16
- "dependencies": {
17
- "@docusaurus/core": "3.10.2",
18
- "@docusaurus/faster": "3.10.2",
19
- "@docusaurus/plugin-client-redirects": "^3.10.2",
20
- "@docusaurus/preset-classic": "3.10.2",
21
- "@mdx-js/react": "^3.0.0",
22
- "clsx": "^2.0.0",
23
- "prism-react-renderer": "^2.3.0",
24
- "react": "^19.0.0",
25
- "react-dom": "^19.0.0"
26
- },
27
- "devDependencies": {
28
- "@docusaurus/module-type-aliases": "3.10.2",
29
- "@docusaurus/types": "3.10.2"
30
- },
31
- "browserslist": {
32
- "production": [
33
- ">0.5%",
34
- "not dead",
35
- "not op_mini all"
36
- ],
37
- "development": [
38
- "last 3 chrome version",
39
- "last 3 firefox version",
40
- "last 5 safari version"
41
- ]
42
- },
43
- "engines": {
44
- "node": ">=20.0"
45
- }
46
- }
data/website/sidebars.js DELETED
@@ -1,82 +0,0 @@
1
- /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
2
- module.exports = {
3
- docs: [
4
- 'intro',
5
- 'getting-started/installation',
6
- 'upgrading',
7
- 'concepts/overview',
8
- {
9
- type: 'category',
10
- label: 'API Reference',
11
- collapsed: false,
12
- items: [
13
- 'concepts/resources',
14
- 'concepts/relationships',
15
- 'concepts/persisting',
16
- 'concepts/endpoints',
17
- 'concepts/links',
18
- ],
19
- },
20
- {
21
- type: 'category',
22
- label: 'Topics',
23
- items: [
24
- 'topics/testing',
25
- 'topics/error-handling',
26
- 'topics/authorization',
27
- 'topics/debugging',
28
- 'topics/caching',
29
- 'topics/etags',
30
- 'topics/json-attributes',
31
- 'topics/customizing-sideloads',
32
- 'concepts/backends-and-models',
33
- 'topics/without-activerecord',
34
- 'topics/openstruct-models',
35
- 'topics/remote-resources',
36
- 'topics/hopping-relationships',
37
- ],
38
- },
39
- {
40
- type: 'category',
41
- label: 'JavaScript Client',
42
- items: [
43
- 'js/index',
44
- 'js/installation',
45
- 'js/models',
46
- 'js/reads',
47
- 'js/writes',
48
- 'js/middleware',
49
- 'js/authentication',
50
- 'js/state-syncing',
51
- 'js/ddau',
52
- 'js/extra-params',
53
- ],
54
- },
55
- {
56
- type: 'category',
57
- label: 'Tutorial',
58
- link: {type: 'doc', id: 'tutorial/index'},
59
- items: [
60
- 'getting-started/first-api',
61
- 'tutorial/step_0',
62
- 'tutorial/step_1',
63
- 'tutorial/step_2',
64
- 'tutorial/step_3',
65
- 'tutorial/step_4',
66
- 'tutorial/step_5',
67
- 'tutorial/step_6',
68
- 'tutorial/step_7',
69
- 'tutorial/step_8',
70
- 'tutorial/step_9',
71
- ],
72
- },
73
- {
74
- type: 'category',
75
- label: 'More',
76
- items: [
77
- 'reference/vandal',
78
- 'reference/why',
79
- ],
80
- },
81
- ],
82
- };
@@ -1,85 +0,0 @@
1
- /* Palette ported from the Jekyll site so this still reads as Graphiti. */
2
- @import url('https://fonts.googleapis.com/css2?family=Bungee&family=Roboto:wght@400;500;900&family=Roboto+Mono:wght@400;500&display=swap');
3
-
4
- :root {
5
- --ifm-color-primary: #e0289d;
6
- --ifm-color-primary-dark: #ca248d;
7
- --ifm-color-primary-darker: #bf2289;
8
- --ifm-color-primary-darkest: #9d1c71;
9
- --ifm-color-primary-light: #ff66d9;
10
- --ifm-color-primary-lighter: #ff7cdf;
11
- --ifm-color-primary-lightest: #ffa3e9;
12
-
13
- --ifm-font-family-base: 'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
14
- --ifm-heading-font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
15
- --ifm-font-family-monospace: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
16
-
17
- /* Roboto Black */
18
- --ifm-heading-font-weight: 900;
19
-
20
- --ifm-code-font-size: 95%;
21
- --docusaurus-highlighted-code-line-bg: rgba(255, 102, 217, 0.12);
22
- }
23
-
24
- html[data-theme='dark'] {
25
- --ifm-color-primary: #ff66d9;
26
- --ifm-color-primary-dark: #ff45d1;
27
- --ifm-color-primary-darker: #ff34cd;
28
- --ifm-color-primary-darkest: #f800bd;
29
- --ifm-color-primary-light: #ff87e1;
30
- --ifm-color-primary-lighter: #ff98e5;
31
- --ifm-color-primary-lightest: #ffcbf1;
32
-
33
- --ifm-background-color: #292e33;
34
- --ifm-navbar-background-color: #292e33;
35
- --docusaurus-highlighted-code-line-bg: rgba(255, 102, 217, 0.2);
36
- }
37
-
38
- html[data-theme='dark'] .footer--dark {
39
- --ifm-footer-background-color: #21252a;
40
- }
41
-
42
- .navbar__title { font-family: 'Bungee', cursive; font-weight: 400; font-size: 1.35rem; }
43
-
44
- /* Black sets tight at display sizes and needs more room above it than a
45
- lighter face would. The smallest headings drop to Bold so a dense
46
- reference page doesn't turn into a wall of Black. */
47
- .markdown h1 { letter-spacing: -0.015em; }
48
- .markdown h2,
49
- .markdown h3 { letter-spacing: -0.01em; margin-top: 2rem; }
50
- .markdown h4,
51
- .markdown h5,
52
- .markdown h6 { font-weight: 700; }
53
-
54
- /* Infima aligns inline code to `middle`, which centres the padded box on the
55
- parent's x-height rather than matching baselines. Roboto Mono's descenders
56
- then push the glyphs visibly below the surrounding prose. Baseline puts the
57
- letters back on the line and lets the padding grow around them. */
58
- .markdown code:not([class*='language-']) {
59
- vertical-align: baseline;
60
- padding: 0.15em 0.3em;
61
- }
62
-
63
- /* The bar is full-bleed on every page, so it takes a tint of the brand pink
64
- rather than the pink itself, which at that width reads as a promo banner.
65
- Docusaurus hashes the class name, hence the prefix selector. */
66
- .theme-announcement-bar {
67
- background: #fdeef7;
68
- color: #7a1758;
69
- font-size: 1.1rem;
70
- border-bottom: 1px solid rgba(224, 40, 157, 0.25);
71
- font-weight: 500;
72
- }
73
-
74
- [data-theme='dark'] .theme-announcement-bar {
75
- background: #33272f;
76
- color: #ffcbf1;
77
- border-bottom-color: rgba(255, 102, 217, 0.25);
78
- }
79
-
80
- /* The link and the close button both carry their own colour, so they drift
81
- from the bar's text unless told to inherit it. */
82
- .theme-announcement-bar a,
83
- .theme-announcement-bar button {
84
- color: inherit;
85
- }
@@ -1,7 +0,0 @@
1
- ---
2
- title: Markdown page example
3
- ---
4
-
5
- # Markdown page example
6
-
7
- You don't need React to write simple standalone pages.
File without changes
@@ -1,205 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
- <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
9
- <link href="https://fonts.googleapis.com/css?family=Boogaloo" rel="stylesheet">
10
-
11
- <link rel="apple-touch-icon" sizes="180x180" href="/1.13/assets/favicons/apple-touch-icon.png">
12
- <link rel="icon" type="image/png" sizes="32x32" href="/1.13/assets/favicons/favicon-32x32.png">
13
- <link rel="icon" type="image/png" sizes="16x16" href="/1.13/assets/favicons/favicon-16x16.png">
14
- <link rel="manifest" href="/1.13/assets/favicons/site.webmanifest">
15
- <link rel="mask-icon" href="/1.13/assets/favicons/safari-pinned-tab.svg" color="#F86DA7">
16
- <link rel="shortcut icon" href="/1.13/assets/favicons/favicon.ico">
17
- <meta name="msapplication-TileColor" content="#F86DA7">
18
- <meta name="msapplication-config" content="/1.13/assets/favicons/browserconfig.xml">
19
- <meta name="theme-color" content="#F86DA7">
20
-
21
- <title>Graphiti 1.0 Released 🎉</title>
22
- <meta name="description" content="This project has gone through a number of iterations over the past three years. I’m happy to say we’ve now released 1.0, committing to semantic versioning. G...">
23
-
24
- <link rel="stylesheet" href="/1.13/assets/main.css?ref=wh4t3v45">
25
- <link rel="alternate" type="application/rss+xml" title="Graphiti" href="/1.13/feed.xml">
26
-
27
- <!-- Global site tag (gtag.js) - Google Analytics -->
28
- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-127904727-1"></script>
29
- <script>
30
- window.dataLayer = window.dataLayer || [];
31
- function gtag(){dataLayer.push(arguments);}
32
- gtag('js', new Date());
33
-
34
- gtag('config', 'UA-127904727-1');
35
- </script>
36
-
37
- <!-- javascript -->
38
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
39
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
40
-
41
-
42
- </head>
43
-
44
-
45
- <body>
46
- <main class="page-content" aria-label="Content">
47
- <div class="wrapper">
48
- <header class="navbar navbar-inverse normal" role="banner">
49
- <div class="container">
50
- <div class="navbar-header">
51
- <a href="/1.13/1.13" class="navbar-brand">
52
- <img alt="logo" src="/1.13/assets/img/logo.png">
53
- </a>
54
- </div>
55
- <nav class="" role="navigation">
56
- <ul class="nav navbar-nav nav-links">
57
- <li>
58
- <a class="quickstart nav-link" href="/1.13/quickstart">Quickstart</a>
59
- </li>
60
- <li>
61
- <a class="guides nav-link" href="/1.13/guides">Guides</a>
62
- </li>
63
- <li>
64
- <a class="tutorial nav-link" href="/1.13/tutorial">Tutorial</a>
65
- </li>
66
- <li>
67
- <a class="spraypaint nav-link" href="/1.13/js">Spraypaint</a>
68
- </li>
69
- </ul>
70
- <ul class="nav gh navbar-nav navbar-right visible-lg visible-md">
71
- <li>
72
- <span class="star">⭐</span>
73
- <a href="https://github.com/graphiti-api/graphiti">
74
- <img alt="github-star" style="margin-right: 65px;margin-top: -20px" src="/1.13/assets/img/gh.png">
75
- </a>
76
- </li>
77
- </ul>
78
- </nav>
79
- </div>
80
- </header>
81
-
82
- <div class="container">
83
- <h1>Graphiti 1.0 Released 🎉</h1>
84
- <p>This project has gone through a number of iterations over the past three years. I’m happy to say we’ve now released 1.0, committing to semantic versioning. Graphiti has now seen enough use, across a wide variety of scenarios, that we can commit to no backwards-incompatible changes for a long while, and a changelog for future releases.</p>
85
-
86
- <p>We’ll be writing more in this blog about our future roadmap. Stay tuned!</p>
87
-
88
- <p><br />
89
- <br />
90
- <br />
91
- <br />
92
- <br />
93
- <br />
94
- <br />
95
- <br />
96
- <br />
97
- <br />
98
- <br />
99
- <br />
100
- <br />
101
- <br />
102
- <br />
103
- <br />
104
- <br />
105
- <br />
106
- <br />
107
- <br />
108
- <br /></p>
109
-
110
- </div>
111
- </div>
112
- </main>
113
- <div class="main-footer main-footer--dark">
114
- <div class="container">
115
- <div class="row">
116
- <div class="col-sm-4 menu">
117
- <h3>Overview</h3>
118
- <ul>
119
- <li>
120
- <a href="/1.13/quickstart">Quickstart</a>
121
- </li>
122
- <li>
123
- <a href="/1.13/tutorial">Tutorial</a>
124
- </li>
125
- <li>
126
- <a href="/1.13/guides">Guides</a>
127
- </li>
128
- </ul>
129
- </div>
130
- <div class="col-sm-4 menu">
131
- <h3>Contact</h3>
132
- <ul>
133
- <li>
134
- <a target="_blank" href="https://discord.gg/wgqkMBsSRV">Discord Chat</a>
135
- </li>
136
- <li>
137
- <a href="mailto:richmolj@gmail.com">Email</a>
138
- </li>
139
- </ul>
140
- </div>
141
- <div class="col-sm-4 menu">
142
- <h3>Related</h3>
143
- <ul>
144
- <li>
145
- <a target="_blank" href="http://jsonapi.org">JSONAPI Spec</a>
146
- </li>
147
- <li>
148
- <a target="_blank" href="http://jsonapi-rb.org">jsonapi-rb</a>
149
- </li>
150
- <li>
151
- <a target="_blank" href="https://vuejs.org/">VueJS</a>
152
- </li>
153
- </ul>
154
- </div>
155
- </div>
156
- </div>
157
- </div>
158
-
159
- <script type="text/javascript">
160
- $(function () {
161
-
162
- var flipTabs = function() {
163
- var isTS = true;
164
- if (localStorage.getItem('js-lang') === 'javascript') {
165
- isTS = false;
166
- }
167
-
168
- $('.code-tabs').each(function(index, el) {
169
- if (isTS) {
170
- console.log('hiding js');
171
- $($(el).children()[1]).hide();
172
- $($(el).children()[0]).show();
173
- } else {
174
- console.log('hiding ts');
175
- $($(el).children()[0]).hide();
176
- $($(el).children()[1]).show();
177
- }
178
- });
179
-
180
- if (isTS) {
181
- $('.tab.typescript').addClass('active');
182
- $('.tab.javascript').removeClass('active');
183
- } else {
184
- $('.tab.typescript').removeClass('active');
185
- $('.tab.javascript').addClass('active');
186
- }
187
- }
188
-
189
- $('.tab').click(function() {
190
- if ($(this).hasClass('typescript')) {
191
- localStorage.setItem('js-lang', 'typescript');
192
- } else {
193
- localStorage.setItem('js-lang', 'javascript');
194
- }
195
-
196
- flipTabs();
197
- });
198
-
199
- flipTabs();
200
- })
201
- </script>
202
-
203
- </body>
204
- </html>
205
-
@@ -1,212 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
- <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
9
- <link href="https://fonts.googleapis.com/css?family=Boogaloo" rel="stylesheet">
10
-
11
- <link rel="apple-touch-icon" sizes="180x180" href="/1.13/assets/favicons/apple-touch-icon.png">
12
- <link rel="icon" type="image/png" sizes="32x32" href="/1.13/assets/favicons/favicon-32x32.png">
13
- <link rel="icon" type="image/png" sizes="16x16" href="/1.13/assets/favicons/favicon-16x16.png">
14
- <link rel="manifest" href="/1.13/assets/favicons/site.webmanifest">
15
- <link rel="mask-icon" href="/1.13/assets/favicons/safari-pinned-tab.svg" color="#F86DA7">
16
- <link rel="shortcut icon" href="/1.13/assets/favicons/favicon.ico">
17
- <meta name="msapplication-TileColor" content="#F86DA7">
18
- <meta name="msapplication-config" content="/1.13/assets/favicons/browserconfig.xml">
19
- <meta name="theme-color" content="#F86DA7">
20
-
21
- <title>Graphiti 1.1 Released</title>
22
- <meta name="description" content="Our first minor version bump centers around an important update: better errors for clients. This is the first phase of work to allow us to provide more actio...">
23
-
24
- <link rel="stylesheet" href="/1.13/assets/main.css?ref=wh4t3v45">
25
- <link rel="alternate" type="application/rss+xml" title="Graphiti" href="/1.13/feed.xml">
26
-
27
- <!-- Global site tag (gtag.js) - Google Analytics -->
28
- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-127904727-1"></script>
29
- <script>
30
- window.dataLayer = window.dataLayer || [];
31
- function gtag(){dataLayer.push(arguments);}
32
- gtag('js', new Date());
33
-
34
- gtag('config', 'UA-127904727-1');
35
- </script>
36
-
37
- <!-- javascript -->
38
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
39
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
40
-
41
-
42
- </head>
43
-
44
-
45
- <body>
46
- <main class="page-content" aria-label="Content">
47
- <div class="wrapper">
48
- <header class="navbar navbar-inverse normal" role="banner">
49
- <div class="container">
50
- <div class="navbar-header">
51
- <a href="/1.13/1.13" class="navbar-brand">
52
- <img alt="logo" src="/1.13/assets/img/logo.png">
53
- </a>
54
- </div>
55
- <nav class="" role="navigation">
56
- <ul class="nav navbar-nav nav-links">
57
- <li>
58
- <a class="quickstart nav-link" href="/1.13/quickstart">Quickstart</a>
59
- </li>
60
- <li>
61
- <a class="guides nav-link" href="/1.13/guides">Guides</a>
62
- </li>
63
- <li>
64
- <a class="tutorial nav-link" href="/1.13/tutorial">Tutorial</a>
65
- </li>
66
- <li>
67
- <a class="spraypaint nav-link" href="/1.13/js">Spraypaint</a>
68
- </li>
69
- </ul>
70
- <ul class="nav gh navbar-nav navbar-right visible-lg visible-md">
71
- <li>
72
- <span class="star">⭐</span>
73
- <a href="https://github.com/graphiti-api/graphiti">
74
- <img alt="github-star" style="margin-right: 65px;margin-top: -20px" src="/1.13/assets/img/gh.png">
75
- </a>
76
- </li>
77
- </ul>
78
- </nav>
79
- </div>
80
- </header>
81
-
82
- <div class="container">
83
- <h1>Graphiti 1.1 Released</h1>
84
- <p>Our first minor version bump centers around an important update:
85
- <strong>better errors for clients</strong>. This is the first phase of work to allow us to provide more actionable errors to API users who might not also be developers of the API itself. This was brought to us by Graphiti maintainer <a href="https://github.com/wadetandy">Wade Tandy</a>.</p>
86
-
87
- <p>Previously, when a client sent a bad write request to the server -
88
- unwritable attributes/relationships, or bad types - we would render the
89
- same generic 500 error JSON. We now render helpful error messages, so
90
- third-party clients know how to correct their requests.</p>
91
-
92
- <p>This is currently only affecting invalid writes, but the foundation laid
93
- will be extendable to reads as well.</p>
94
-
95
- <p><br />
96
- <br />
97
- <br />
98
- <br />
99
- <br />
100
- <br />
101
- <br />
102
- <br />
103
- <br />
104
- <br />
105
- <br />
106
- <br />
107
- <br />
108
- <br />
109
- <br />
110
- <br />
111
- <br />
112
- <br />
113
- <br />
114
- <br />
115
- <br /></p>
116
-
117
- </div>
118
- </div>
119
- </main>
120
- <div class="main-footer main-footer--dark">
121
- <div class="container">
122
- <div class="row">
123
- <div class="col-sm-4 menu">
124
- <h3>Overview</h3>
125
- <ul>
126
- <li>
127
- <a href="/1.13/quickstart">Quickstart</a>
128
- </li>
129
- <li>
130
- <a href="/1.13/tutorial">Tutorial</a>
131
- </li>
132
- <li>
133
- <a href="/1.13/guides">Guides</a>
134
- </li>
135
- </ul>
136
- </div>
137
- <div class="col-sm-4 menu">
138
- <h3>Contact</h3>
139
- <ul>
140
- <li>
141
- <a target="_blank" href="https://discord.gg/wgqkMBsSRV">Discord Chat</a>
142
- </li>
143
- <li>
144
- <a href="mailto:richmolj@gmail.com">Email</a>
145
- </li>
146
- </ul>
147
- </div>
148
- <div class="col-sm-4 menu">
149
- <h3>Related</h3>
150
- <ul>
151
- <li>
152
- <a target="_blank" href="http://jsonapi.org">JSONAPI Spec</a>
153
- </li>
154
- <li>
155
- <a target="_blank" href="http://jsonapi-rb.org">jsonapi-rb</a>
156
- </li>
157
- <li>
158
- <a target="_blank" href="https://vuejs.org/">VueJS</a>
159
- </li>
160
- </ul>
161
- </div>
162
- </div>
163
- </div>
164
- </div>
165
-
166
- <script type="text/javascript">
167
- $(function () {
168
-
169
- var flipTabs = function() {
170
- var isTS = true;
171
- if (localStorage.getItem('js-lang') === 'javascript') {
172
- isTS = false;
173
- }
174
-
175
- $('.code-tabs').each(function(index, el) {
176
- if (isTS) {
177
- console.log('hiding js');
178
- $($(el).children()[1]).hide();
179
- $($(el).children()[0]).show();
180
- } else {
181
- console.log('hiding ts');
182
- $($(el).children()[0]).hide();
183
- $($(el).children()[1]).show();
184
- }
185
- });
186
-
187
- if (isTS) {
188
- $('.tab.typescript').addClass('active');
189
- $('.tab.javascript').removeClass('active');
190
- } else {
191
- $('.tab.typescript').removeClass('active');
192
- $('.tab.javascript').addClass('active');
193
- }
194
- }
195
-
196
- $('.tab').click(function() {
197
- if ($(this).hasClass('typescript')) {
198
- localStorage.setItem('js-lang', 'typescript');
199
- } else {
200
- localStorage.setItem('js-lang', 'javascript');
201
- }
202
-
203
- flipTabs();
204
- });
205
-
206
- flipTabs();
207
- })
208
- </script>
209
-
210
- </body>
211
- </html>
212
-