postgraphile 4.12.11 → 5.0.0-0.3

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 (134) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/LICENSE.md +15 -20
  3. package/README.md +20 -171
  4. package/dist/cli-run.d.ts +3 -0
  5. package/dist/cli-run.d.ts.map +1 -0
  6. package/dist/cli-run.js +7 -0
  7. package/dist/cli-run.js.map +1 -0
  8. package/dist/cli.d.ts +21 -0
  9. package/dist/cli.d.ts.map +1 -0
  10. package/dist/cli.js +180 -0
  11. package/dist/cli.js.map +1 -0
  12. package/dist/index.d.ts +14 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +88 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/plugins/PgV4BehaviorPlugin.d.ts +11 -0
  17. package/dist/plugins/PgV4BehaviorPlugin.d.ts.map +1 -0
  18. package/dist/plugins/PgV4BehaviorPlugin.js +73 -0
  19. package/dist/plugins/PgV4BehaviorPlugin.js.map +1 -0
  20. package/dist/plugins/PgV4InflectionPlugin.d.ts +11 -0
  21. package/dist/plugins/PgV4InflectionPlugin.d.ts.map +1 -0
  22. package/dist/plugins/PgV4InflectionPlugin.js +91 -0
  23. package/dist/plugins/PgV4InflectionPlugin.js.map +1 -0
  24. package/dist/plugins/PgV4NoIgnoreIndexes.d.ts +2 -0
  25. package/dist/plugins/PgV4NoIgnoreIndexes.d.ts.map +1 -0
  26. package/dist/plugins/PgV4NoIgnoreIndexes.js +72 -0
  27. package/dist/plugins/PgV4NoIgnoreIndexes.js.map +1 -0
  28. package/dist/plugins/PgV4SmartTagsPlugin.d.ts +11 -0
  29. package/dist/plugins/PgV4SmartTagsPlugin.d.ts.map +1 -0
  30. package/dist/plugins/PgV4SmartTagsPlugin.js +190 -0
  31. package/dist/plugins/PgV4SmartTagsPlugin.js.map +1 -0
  32. package/dist/presets/amber.d.ts +5 -0
  33. package/dist/presets/amber.d.ts.map +1 -0
  34. package/dist/presets/amber.js +38 -0
  35. package/dist/presets/amber.js.map +1 -0
  36. package/dist/presets/v4.d.ts +34 -0
  37. package/dist/presets/v4.d.ts.map +1 -0
  38. package/dist/presets/v4.js +142 -0
  39. package/dist/presets/v4.js.map +1 -0
  40. package/dist/schema.d.ts +34 -0
  41. package/dist/schema.d.ts.map +1 -0
  42. package/dist/schema.js +82 -0
  43. package/dist/schema.js.map +1 -0
  44. package/package.json +77 -154
  45. package/build/assets/favicon.ico.d.ts +0 -3
  46. package/build/assets/favicon.ico.js +0 -6
  47. package/build/assets/graphiql.html.d.ts +0 -2
  48. package/build/assets/graphiql.html.js +0 -6
  49. package/build/index.d.ts +0 -8
  50. package/build/index.js +0 -34
  51. package/build/interfaces.d.ts +0 -162
  52. package/build/interfaces.js +0 -3
  53. package/build/plugins.d.ts +0 -3
  54. package/build/plugins.js +0 -53
  55. package/build/postgraphile/cli.d.ts +0 -3
  56. package/build/postgraphile/cli.js +0 -541
  57. package/build/postgraphile/extendedFormatError.d.ts +0 -9
  58. package/build/postgraphile/extendedFormatError.js +0 -51
  59. package/build/postgraphile/http/createPostGraphileHttpRequestHandler.d.ts +0 -11
  60. package/build/postgraphile/http/createPostGraphileHttpRequestHandler.js +0 -974
  61. package/build/postgraphile/http/frameworks.d.ts +0 -110
  62. package/build/postgraphile/http/frameworks.js +0 -258
  63. package/build/postgraphile/http/liveSubscribe.d.ts +0 -22
  64. package/build/postgraphile/http/liveSubscribe.js +0 -89
  65. package/build/postgraphile/http/mapAsyncIterator.d.ts +0 -15
  66. package/build/postgraphile/http/mapAsyncIterator.js +0 -71
  67. package/build/postgraphile/http/setupServerSentEvents.d.ts +0 -9
  68. package/build/postgraphile/http/setupServerSentEvents.js +0 -51
  69. package/build/postgraphile/http/subscriptions.d.ts +0 -7
  70. package/build/postgraphile/http/subscriptions.js +0 -410
  71. package/build/postgraphile/index.d.ts +0 -5
  72. package/build/postgraphile/index.js +0 -14
  73. package/build/postgraphile/pluginHook.d.ts +0 -104
  74. package/build/postgraphile/pluginHook.js +0 -100
  75. package/build/postgraphile/postgraphile.d.ts +0 -20
  76. package/build/postgraphile/postgraphile.js +0 -332
  77. package/build/postgraphile/postgraphilerc.d.ts +0 -2
  78. package/build/postgraphile/postgraphilerc.js +0 -16
  79. package/build/postgraphile/schema/exportPostGraphileSchema.d.ts +0 -6
  80. package/build/postgraphile/schema/exportPostGraphileSchema.js +0 -45
  81. package/build/postgraphile/shutdownActions.d.ts +0 -41
  82. package/build/postgraphile/shutdownActions.js +0 -87
  83. package/build/postgraphile/withPostGraphileContext.d.ts +0 -55
  84. package/build/postgraphile/withPostGraphileContext.js +0 -457
  85. package/build/postgres/inventory/pgClientFromContext.d.ts +0 -8
  86. package/build/postgres/inventory/pgClientFromContext.js +0 -21
  87. package/build-turbo/assets/favicon.ico.d.ts +0 -3
  88. package/build-turbo/assets/favicon.ico.js +0 -6
  89. package/build-turbo/assets/graphiql.html.d.ts +0 -2
  90. package/build-turbo/assets/graphiql.html.js +0 -6
  91. package/build-turbo/index.d.ts +0 -8
  92. package/build-turbo/index.js +0 -34
  93. package/build-turbo/interfaces.d.ts +0 -162
  94. package/build-turbo/interfaces.js +0 -3
  95. package/build-turbo/plugins.d.ts +0 -3
  96. package/build-turbo/plugins.js +0 -53
  97. package/build-turbo/postgraphile/cli.d.ts +0 -3
  98. package/build-turbo/postgraphile/cli.js +0 -572
  99. package/build-turbo/postgraphile/extendedFormatError.d.ts +0 -9
  100. package/build-turbo/postgraphile/extendedFormatError.js +0 -61
  101. package/build-turbo/postgraphile/http/createPostGraphileHttpRequestHandler.d.ts +0 -11
  102. package/build-turbo/postgraphile/http/createPostGraphileHttpRequestHandler.js +0 -982
  103. package/build-turbo/postgraphile/http/frameworks.d.ts +0 -110
  104. package/build-turbo/postgraphile/http/frameworks.js +0 -258
  105. package/build-turbo/postgraphile/http/liveSubscribe.d.ts +0 -22
  106. package/build-turbo/postgraphile/http/liveSubscribe.js +0 -89
  107. package/build-turbo/postgraphile/http/mapAsyncIterator.d.ts +0 -15
  108. package/build-turbo/postgraphile/http/mapAsyncIterator.js +0 -71
  109. package/build-turbo/postgraphile/http/setupServerSentEvents.d.ts +0 -9
  110. package/build-turbo/postgraphile/http/setupServerSentEvents.js +0 -51
  111. package/build-turbo/postgraphile/http/subscriptions.d.ts +0 -7
  112. package/build-turbo/postgraphile/http/subscriptions.js +0 -409
  113. package/build-turbo/postgraphile/index.d.ts +0 -5
  114. package/build-turbo/postgraphile/index.js +0 -14
  115. package/build-turbo/postgraphile/pluginHook.d.ts +0 -104
  116. package/build-turbo/postgraphile/pluginHook.js +0 -100
  117. package/build-turbo/postgraphile/postgraphile.d.ts +0 -20
  118. package/build-turbo/postgraphile/postgraphile.js +0 -337
  119. package/build-turbo/postgraphile/postgraphilerc.d.ts +0 -2
  120. package/build-turbo/postgraphile/postgraphilerc.js +0 -16
  121. package/build-turbo/postgraphile/schema/exportPostGraphileSchema.d.ts +0 -6
  122. package/build-turbo/postgraphile/schema/exportPostGraphileSchema.js +0 -45
  123. package/build-turbo/postgraphile/shutdownActions.d.ts +0 -41
  124. package/build-turbo/postgraphile/shutdownActions.js +0 -87
  125. package/build-turbo/postgraphile/withPostGraphileContext.d.ts +0 -55
  126. package/build-turbo/postgraphile/withPostGraphileContext.js +0 -466
  127. package/build-turbo/postgres/inventory/pgClientFromContext.d.ts +0 -8
  128. package/build-turbo/postgres/inventory/pgClientFromContext.js +0 -21
  129. package/cli.js +0 -6
  130. package/index.js +0 -5
  131. package/isTurbo.js +0 -11
  132. package/plugins.d.ts +0 -1
  133. package/plugins.js +0 -5
  134. package/sponsors.json +0 -150
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.$$pgClient = void 0;
4
- const pg_1 = require("pg");
5
- exports.$$pgClient = 'pgClient';
6
- /**
7
- * Retrieves a Postgres client from a context, throwing an error if such a
8
- * client does not exist.
9
- */
10
- function getPgClientFromContext(context) {
11
- if (context == null || typeof context !== 'object')
12
- throw new Error('Context must be an object.');
13
- const client = context[exports.$$pgClient];
14
- if (client == null)
15
- throw new Error('Postgres client does not exist on the context.');
16
- if (!(client instanceof pg_1.ClientBase))
17
- throw new Error('Postgres client on context is of the incorrect type.');
18
- return client;
19
- }
20
- exports.default = getPgClientFromContext;
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGdDbGllbnRGcm9tQ29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9wb3N0Z3Jlcy9pbnZlbnRvcnkvcGdDbGllbnRGcm9tQ29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQSwyQkFBNEM7QUFFL0IsUUFBQSxVQUFVLEdBQUcsVUFBVSxDQUFDO0FBRXJDOzs7R0FHRztBQUNILFNBQXdCLHNCQUFzQixDQUFDLE9BQWM7SUFDM0QsSUFBSSxPQUFPLElBQUksSUFBSSxJQUFJLE9BQU8sT0FBTyxLQUFLLFFBQVE7UUFBRSxNQUFNLElBQUksS0FBSyxDQUFDLDRCQUE0QixDQUFDLENBQUM7SUFFbEcsTUFBTSxNQUFNLEdBQUcsT0FBTyxDQUFDLGtCQUFVLENBQUMsQ0FBQztJQUVuQyxJQUFJLE1BQU0sSUFBSSxJQUFJO1FBQUUsTUFBTSxJQUFJLEtBQUssQ0FBQyxnREFBZ0QsQ0FBQyxDQUFDO0lBRXRGLElBQUksQ0FBQyxDQUFDLE1BQU0sWUFBWSxlQUFVLENBQUM7UUFDakMsTUFBTSxJQUFJLEtBQUssQ0FBQyxzREFBc0QsQ0FBQyxDQUFDO0lBRTFFLE9BQU8sTUFBb0IsQ0FBQztBQUM5QixDQUFDO0FBWEQseUNBV0MifQ==
package/cli.js DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env node
2
- if (require('./isTurbo')) {
3
- module.exports = require('./build-turbo/postgraphile/cli.js');
4
- } else {
5
- module.exports = require('./build/postgraphile/cli.js');
6
- }
package/index.js DELETED
@@ -1,5 +0,0 @@
1
- if (require('./isTurbo')) {
2
- module.exports = require('./build-turbo/index.js');
3
- } else {
4
- module.exports = require('./build/index.js');
5
- }
package/isTurbo.js DELETED
@@ -1,11 +0,0 @@
1
- if (process.env.GRAPHILE_TURBO === '1') {
2
- const major = parseInt(process.version.replace(/\..*$/, ''), 10);
3
- if (major < 14) {
4
- throw new Error(
5
- 'Turbo mode currently requires Node v14 or higher, please upgrade Node.js or remove the GRAPHILE_TURBO environmental variable.',
6
- );
7
- }
8
- module.exports = true;
9
- } else {
10
- module.exports = false;
11
- }
package/plugins.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './build/plugins';
package/plugins.js DELETED
@@ -1,5 +0,0 @@
1
- if (require('./isTurbo')) {
2
- module.exports = require('./build-turbo/plugins.js');
3
- } else {
4
- module.exports = require('./build/plugins.js');
5
- }
package/sponsors.json DELETED
@@ -1,150 +0,0 @@
1
- [
2
- "ARK",
3
- "Alvin Ali Khaled",
4
- "Axinom",
5
- "Axinom",
6
- "Axinom",
7
- "Benjamin Berman",
8
- "CJ Lazell",
9
- "CartoLab",
10
- "Chad Furman",
11
- "Chad Furman",
12
- "Chad Furman",
13
- "Chad Furman",
14
- "Chad Furman",
15
- "Chad Furman",
16
- "Chris Watland",
17
- "DocIQ",
18
- "DocIQ",
19
- "DocIQ",
20
- "Dovetail",
21
- "Dovetail",
22
- "Dovetail",
23
- "Dovetail",
24
- "Dovetail",
25
- "Dovetail",
26
- "Enzuzo",
27
- "Enzuzo",
28
- "Enzuzo",
29
- "Enzuzo",
30
- "Enzuzo",
31
- "Enzuzo",
32
- "Fanatics",
33
- "Fanatics",
34
- "Fanatics",
35
- "Fanatics",
36
- "Fanatics",
37
- "Fanatics",
38
- "GraphCDN",
39
- "GraphCDN",
40
- "GraphCDN",
41
- "GraphCDN",
42
- "GraphCDN",
43
- "GraphCDN",
44
- "HR-ON",
45
- "HR-ON",
46
- "HR-ON",
47
- "IFCHOR GROUP",
48
- "IaSQL",
49
- "IaSQL",
50
- "IaSQL",
51
- "IaSQL",
52
- "IaSQL",
53
- "IaSQL",
54
- "Ian Stewart",
55
- "Ian Stewart",
56
- "Ian Stewart",
57
- "Jack Dinker",
58
- "Jack Dinker",
59
- "Jack Dinker",
60
- "James Rascoe",
61
- "Jimmy Liu",
62
- "Joe Dennis",
63
- "Joe Dennis",
64
- "Joe Dennis",
65
- "Kadi Kraman",
66
- "Keith Layne",
67
- "Luxor Labs",
68
- "Luxor Labs",
69
- "Luxor Labs",
70
- "Mansoor Razzaq",
71
- "Mark",
72
- "Matt Bretl",
73
- "Nathanael Beisiegel",
74
- "Nathanael Beisiegel",
75
- "Nathanael Beisiegel",
76
- "Notably",
77
- "Notably",
78
- "Notably",
79
- "Olli Selamaa",
80
- "OnThisSpot",
81
- "Paul Melnikow",
82
- "Philipp Litzenberger",
83
- "Politics Rewired",
84
- "Politics Rewired",
85
- "Politics Rewired",
86
- "Politics Rewired",
87
- "Politics Rewired",
88
- "Politics Rewired",
89
- "PostHog",
90
- "PostHog",
91
- "PostHog",
92
- "Postlight",
93
- "Principia Mentis",
94
- "Principia Mentis",
95
- "Principia Mentis",
96
- "Qwick",
97
- "Qwick",
98
- "Qwick",
99
- "Qwick",
100
- "Qwick",
101
- "Qwick",
102
- "Robert Claypool",
103
- "Robert Claypool",
104
- "Robert Claypool",
105
- "Sam Levin",
106
- "Sen Palanisami",
107
- "Simon Elliott",
108
- "Splitgraph",
109
- "Story.ai",
110
- "Story.ai",
111
- "Story.ai",
112
- "Story.ai",
113
- "Story.ai",
114
- "Story.ai",
115
- "Stéphane Klein",
116
- "SuperRare Labs",
117
- "SuperRare Labs",
118
- "SuperRare Labs",
119
- "Surge",
120
- "Surge",
121
- "Surge",
122
- "Surge",
123
- "Surge",
124
- "Surge",
125
- "Taiste",
126
- "Taiste",
127
- "Taiste",
128
- "The Guild",
129
- "The Guild",
130
- "The Guild",
131
- "The Guild",
132
- "The Guild",
133
- "The Guild",
134
- "William Baxter",
135
- "William Baxter",
136
- "William Baxter",
137
- "Zentered",
138
- "Zymego",
139
- "domonda",
140
- "domonda",
141
- "domonda",
142
- "latch.bio",
143
- "latch.bio",
144
- "latch.bio",
145
- "nick",
146
- "nigelrmtaylor",
147
- "nigelrmtaylor",
148
- "nigelrmtaylor",
149
- "svarmony"
150
- ]