graphql-upload-nextjs 3.1.1 → 3.1.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ ## 3.1.3 - 2026-11-14
4
+
5
+ - Document the current Apollo Server transitive dependency advisory and application-root mitigation.
6
+
7
+ - Update dependencies and example applications to current compatible stable releases.
8
+ - Include contribution guidelines, the Contributor Covenant, and a private security reporting policy in the repository and npm package.
9
+ - Patch affected transitive development dependencies and verify production and development dependency audits.
10
+ - Create example upload files with private permissions and disable download caching.
11
+ - Keep the example landing page readable on narrow screens.
12
+
@@ -1,25 +1,128 @@
1
- # Code of Conduct
1
+ # Contributor Covenant Code of Conduct
2
2
 
3
- This project operates on respect, practical engineering, and clear communication.
3
+ ## Our Pledge
4
4
 
5
- ## Expected Behavior
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
6
11
 
7
- * Default to patience and assume good intent.
8
- * Keep discussions anchored to code, documentation, and user outcomes.
9
- * Deliver feedback constructively.
10
- * Respect varying experience levels and communication styles.
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
11
14
 
12
- ## Unacceptable Behavior
15
+ ## Our Standards
13
16
 
14
- We maintain a strict policy against:
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
15
19
 
16
- * Harassment, threats, or personal attacks.
17
- * Discriminatory language or conduct.
18
- * Publishing private information without explicit consent.
19
- * Persistent disruption after a maintainer requests it to stop.
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
20
58
 
21
59
  ## Enforcement
22
60
 
23
- Maintainers enforce these standards. We will remove comments, close issues, or permanently ban contributors who violate them.
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ lafittemehdy@gmail.com.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
24
125
 
25
- If you encounter an issue, contact a maintainer directly through the project repository.
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
package/README.md CHANGED
@@ -96,6 +96,22 @@ Malformed requests return 400, and configured size or count limit violations ret
96
96
 
97
97
  Store uploaded files outside public directories, sanitise display filenames and use server-generated storage keys. MIME sniffing isn't malware scanning or authorisation. The example download endpoint is for development: add authentication and ownership checks before serving private uploads in production.
98
98
 
99
+ ### Apollo Server dependency advisory
100
+
101
+ As of 2026-11-14, Apollo Server 5.5.2 restricts its transitive GraphQL Tools dependencies to versions affected by [GHSA-c4qx-w738-7hr3](https://github.com/advisories/GHSA-c4qx-w738-7hr3). This concerns merging untrusted incremental GraphQL results; it is separate from this package's multipart path validation.
102
+
103
+ Until Apollo publishes compatible patched dependency ranges, apply the following override in **your application's root** package.json, reinstall, and run your application's tests and audit:
104
+
105
+ ```json
106
+ {
107
+ "overrides": {
108
+ "@graphql-tools/utils@>=10.10.1 <12.0.2": "12.0.2"
109
+ }
110
+ }
111
+ ```
112
+
113
+ For pnpm, put the same selector under `overrides` in your root pnpm-workspace.yaml. Dependency packages cannot enforce overrides on their consumers. The repository and example apply patched overrides, and the packed Apollo consumer is tested separately. Remove the application override when your upstream dependency graph resolves patched versions itself.
114
+
99
115
  ## Public API compatibility
100
116
 
101
117
  The existing exports are still there: `File`, `FileStream`, `FormDataFile`, `MinimalRequest`, `GraphQLUpload`, `Upload`, `uploadProcess`, `bufferToStream`, `parseOperationsJSON`, `sanitizeAndValidateJSON`, `setValueAtPath`, `streamToBuffer` and `validateMap`. `Upload` now accepts an optional file type parameter; its default is still `File`.
package/SECURITY.md CHANGED
@@ -1,25 +1,17 @@
1
1
  # Security Policy
2
2
 
3
- ## Supported Versions
3
+ ## Supported versions
4
4
 
5
- We provide security fixes exclusively for the latest major version.
5
+ Security fixes target the latest published release in the current major release line (3.x). Upgrade to the latest patch before reporting a suspected issue. Older release lines are unsupported.
6
6
 
7
- | Version | Supported |
8
- | --- | --- |
9
- | 3.x | Yes |
10
- | < 3.0 | No |
7
+ ## Private vulnerability reports
11
8
 
12
- ## Reporting a Vulnerability
9
+ Use [GitHub private vulnerability reporting](https://github.com/lafittemehdy/graphql-upload-nextjs/security/advisories/new), or email lafittemehdy@gmail.com if that channel is unavailable. Do not include exploits, credentials, personal data, or undisclosed vulnerability details in public issues.
13
10
 
14
- If GitHub private vulnerability reporting is active on this repository, please utilize it to submit your report securely.
11
+ Include affected versions, impact, prerequisites, a minimal safe reproduction, and any known workaround. Maintainers will coordinate investigation and disclosure; no fixed response time or security guarantee is promised.
15
12
 
16
- If private reporting is unavailable, open a regular GitHub issue with a concise, non-sensitive description. Request a private disclosure channel from a maintainers before sharing exploits, secrets, or payloads.
13
+ ## Deployment boundaries
17
14
 
18
- Please include:
15
+ Uploads require request limits, authentication, authorization, storage quotas, and a deployment that enforces those limits. MIME detection is not malware scanning. The example download route is public and is not a production authorization model.
19
16
 
20
- * The affected package version.
21
- * A clear description of the potential impact.
22
- * Safe steps to reproduce the issue, if they can be shared securely.
23
- * Any known temporary workarounds.
24
-
25
- We review valid reports promptly to coordinate fixes and issue security releases.
17
+ See the README Apollo Server advisory note for the application-side dependency override required by the current Apollo Server 5 release. Repository overrides do not propagate into consuming applications.
package/package.json CHANGED
@@ -18,12 +18,13 @@
18
18
  "@types/node": "^26.6.6",
19
19
  "graphql": "^16.15.0",
20
20
  "husky": "^9.1.7",
21
- "next": "^16.4.5",
21
+ "next": "^16.4.6",
22
22
  "typescript": "^7.0.2",
23
23
  "undici": "^8.12.4",
24
24
  "vitest": "^5.1.0"
25
25
  },
26
26
  "files": [
27
+ "CHANGELOG.md",
27
28
  "CODE_OF_CONDUCT.md",
28
29
  "CONTRIBUTING.md",
29
30
  "LICENSE",
@@ -56,8 +57,8 @@
56
57
  "main": "index.js",
57
58
  "name": "graphql-upload-nextjs",
58
59
  "overrides": {
59
- "postcss": "8.5.32",
60
- "@graphql-tools/utils": "13.2.1",
60
+ "postcss": "8.5.33",
61
+ "@graphql-tools/utils": "13.2.2",
61
62
  "@fastify/busboy": "3.2.5",
62
63
  "qs": "6.17.1",
63
64
  "source-map-js": "1.2.2",
@@ -89,5 +90,5 @@
89
90
  },
90
91
  "type": "module",
91
92
  "types": "index.d.ts",
92
- "version": "3.1.1"
93
+ "version": "3.1.3"
93
94
  }