postgraphile 4.13.0 → 5.0.0-0.10

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 +118 -0
  2. package/LICENSE.md +15 -20
  3. package/README.md +15 -170
  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 +199 -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 +79 -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 -163
  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 -976
  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 -411
  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 -163
  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 -984
  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 -410
  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 -151
@@ -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,151 +0,0 @@
1
- [
2
- "ARK",
3
- "Alvin Ali Khaled",
4
- "Axinom",
5
- "Axinom",
6
- "Axinom",
7
- "Ayog Healthcare",
8
- "Ayog Healthcare",
9
- "Ayog Healthcare",
10
- "Benjamin Berman",
11
- "CJ Lazell",
12
- "CartoLab",
13
- "Chad Furman",
14
- "Chad Furman",
15
- "Chad Furman",
16
- "Chad Furman",
17
- "Chad Furman",
18
- "Chad Furman",
19
- "Chris Watland",
20
- "Daniel Einspanjer",
21
- "DocIQ",
22
- "DocIQ",
23
- "DocIQ",
24
- "Dovetail",
25
- "Dovetail",
26
- "Dovetail",
27
- "Dovetail",
28
- "Dovetail",
29
- "Dovetail",
30
- "Enzuzo",
31
- "Enzuzo",
32
- "Enzuzo",
33
- "Enzuzo",
34
- "Enzuzo",
35
- "Enzuzo",
36
- "Fanatics",
37
- "Fanatics",
38
- "Fanatics",
39
- "Fanatics",
40
- "Fanatics",
41
- "Fanatics",
42
- "Gamma Peak",
43
- "HR-ON",
44
- "HR-ON",
45
- "HR-ON",
46
- "IFCHOR GROUP",
47
- "IaSQL",
48
- "IaSQL",
49
- "IaSQL",
50
- "IaSQL",
51
- "IaSQL",
52
- "IaSQL",
53
- "Ian Stewart",
54
- "Ian Stewart",
55
- "Ian Stewart",
56
- "James Rascoe",
57
- "Jimmy Liu",
58
- "Joe Dennis",
59
- "Joe Dennis",
60
- "Joe Dennis",
61
- "Kadi Kraman",
62
- "Keith Layne",
63
- "Luxor Labs",
64
- "Luxor Labs",
65
- "Luxor Labs",
66
- "Mansoor Razzaq",
67
- "Mark",
68
- "Matt Bretl",
69
- "Nathanael Beisiegel",
70
- "Nathanael Beisiegel",
71
- "Nathanael Beisiegel",
72
- "Netflix",
73
- "Netflix",
74
- "Netflix",
75
- "Netflix",
76
- "Netflix",
77
- "Netflix",
78
- "Nicolas Penot",
79
- "Notably",
80
- "Notably",
81
- "Notably",
82
- "Olli Selamaa",
83
- "Paul Melnikow",
84
- "Philipp Litzenberger",
85
- "Politics Rewired",
86
- "Politics Rewired",
87
- "Politics Rewired",
88
- "Politics Rewired",
89
- "Politics Rewired",
90
- "Politics Rewired",
91
- "PostHog",
92
- "PostHog",
93
- "PostHog",
94
- "Postlight",
95
- "Principia Mentis",
96
- "Principia Mentis",
97
- "Principia Mentis",
98
- "Qwick",
99
- "Qwick",
100
- "Qwick",
101
- "Qwick",
102
- "Qwick",
103
- "Qwick",
104
- "Robert Claypool",
105
- "Robert Claypool",
106
- "Robert Claypool",
107
- "Sam Levin",
108
- "Sen Palanisami",
109
- "Simon Elliott",
110
- "Splitgraph",
111
- "Stellate",
112
- "Stellate",
113
- "Stellate",
114
- "Stellate",
115
- "Stellate",
116
- "Stellate",
117
- "Stéphane Klein",
118
- "Surge",
119
- "Surge",
120
- "Surge",
121
- "Surge",
122
- "Surge",
123
- "Surge",
124
- "Taiste",
125
- "Taiste",
126
- "Taiste",
127
- "The Guild",
128
- "The Guild",
129
- "The Guild",
130
- "The Guild",
131
- "The Guild",
132
- "The Guild",
133
- "Zentered",
134
- "Zymego",
135
- "domonda",
136
- "domonda",
137
- "domonda",
138
- "latch.bio",
139
- "latch.bio",
140
- "latch.bio",
141
- "liteflow-labs",
142
- "nick",
143
- "nigelrmtaylor",
144
- "nigelrmtaylor",
145
- "nigelrmtaylor",
146
- "nullachtvierzehn",
147
- "nullachtvierzehn",
148
- "nullachtvierzehn",
149
- "stlbucket",
150
- "svarmony"
151
- ]