Skip to content

Commit 5e90aac

Browse files
11bitclaude
andcommitted
Merge pull request #23 from 11bit/fix/node-24-core-js-error
Fix language server failing to start on Node.js 22+ (fixes #21) Add MIT license Required by zed-extensions CI for publishing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2 parents 9499482 + 790a9bc commit 5e90aac

6 files changed

Lines changed: 30 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
# 1.0.4 - 2026-05-01
4+
5+
- Fix language server failing to start on Node.js 22+ with `Cannot find module 'core-js/es6'`. Invoke `dist/cli.js` directly to bypass the deprecated `@babel/polyfill` require in the upstream `bin/graphql.js` wrapper.
6+
37
# 1.0.3 - 2025-09-30
48

59
- Bump extension API, remove windows path workaround. Thanks @kubkon!

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "zed_graphql"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
edition = "2021"
55
publish = false
66

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Ivan Buryak
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id = "graphql"
22
name = "GraphQL"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
schema_version = 1
55
authors = ["Ivan Buryak <ivan.buryak@gmail.com>"]
66
description = "GraphQL extension for Zed"

src/graphql.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{env, fs};
22
use zed_extension_api::{self as zed, settings::LspSettings, Result};
33

4-
const SERVER_PATH: &str = "node_modules/graphql-language-service-cli/bin/graphql.js";
4+
const SERVER_PATH: &str = "node_modules/graphql-language-service-cli/dist/cli.js";
55
const PACKAGE_NAME: &str = "graphql-language-service-cli";
66

77
struct GraphQLExtension;
@@ -84,7 +84,7 @@ impl zed::Extension for GraphQLExtension {
8484
"-c".to_string(),
8585
config_dir,
8686
],
87-
env: Default::default(),
87+
env: vec![("GRAPHQL_NO_NAME_WARNING".to_string(), "true".to_string())],
8888
})
8989
}
9090
}

0 commit comments

Comments
 (0)