Skip to content

[sparql-http-client] Add parameters to QueryOptions#74107

Merged
typescript-bot merged 10 commits intoDefinitelyTyped:masterfrom
giacomoronconiobda:master
Nov 19, 2025
Merged

[sparql-http-client] Add parameters to QueryOptions#74107
typescript-bot merged 10 commits intoDefinitelyTyped:masterfrom
giacomoronconiobda:master

Conversation

@giacomoronconiobda
Copy link
Copy Markdown
Contributor

Please fill in this template.

Select one of these and delete the others:

If adding a new definition:

  • The package does not already provide its own types, or cannot have its .d.ts files generated via --declaration
  • If this is for an npm package, match the name. If not, do not conflict with the name of an npm package.
  • Create it with dts-gen --dt, not by basing it on an existing project.
  • Represents shape of module/library correctly
  • tsconfig.json should have noImplicitAny, noImplicitThis, strictNullChecks, and strictFunctionTypes set to true.

If changing an existing definition:

If removing a declaration:

  • If a package was never on Definitely Typed, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
  • Delete the package's directory.
  • Add it to notNeededPackages.json.

@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Nov 18, 2025

@giacomoronconiobda Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment that I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by type definition owners, DT maintainers or others

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 74107,
  "author": "giacomoronconiobda",
  "headCommitOid": "bdbf878ddb835f260da5c4549c47cefd249db210",
  "mergeBaseOid": "475cf15f3c61c8046fb2c1e7c744a4c09ac57b45",
  "lastPushDate": "2025-11-18T10:59:12.000Z",
  "lastActivityDate": "2025-11-19T09:54:57.000Z",
  "mergeOfferDate": "2025-11-19T09:54:40.000Z",
  "mergeRequestDate": "2025-11-19T09:54:57.000Z",
  "mergeRequestUser": "tpluscode",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "sparql-http-client",
      "kind": "edit",
      "files": [
        {
          "path": "types/sparql-http-client/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/sparql-http-client/package.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/sparql-http-client/sparql-http-client-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "tpluscode",
        "ludovicm67"
      ],
      "addedOwners": [
        "giacomoronconiobda"
      ],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "tpluscode",
      "date": "2025-11-19T09:53:59.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 3546953294,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Edits Owners This PR adds or removes owners Untested Change This PR does not touch tests labels Nov 18, 2025
@typescript-bot typescript-bot moved this to Waiting for Code Reviews in Pull Request Status Board Nov 18, 2025
@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @tpluscode @ludovicm67 — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Nov 18, 2025
@typescript-bot
Copy link
Copy Markdown
Contributor

@giacomoronconiobda The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds that are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in Pull Request Status Board Nov 18, 2025
@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Nov 18, 2025
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in Pull Request Status Board Nov 18, 2025
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board Nov 18, 2025
Copy link
Copy Markdown
Contributor

@tpluscode tpluscode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thank your this, and thank you even more for requesting the feature with the library author.

I see Thomas only added a very generic parametr but maybe it's a good idea to go one step further and include the default query params so that IDEs can make better suggestions, at the same time keeping the open-ended param map.

I think I will approve as-is and submit an extension to your work later.

However, first please ensure to add some tests so that we will be able to merge without the involvement of DT maintainers.

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label Nov 18, 2025
@typescript-bot
Copy link
Copy Markdown
Contributor

@giacomoronconiobda One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!

@typescript-bot typescript-bot moved this from Needs Maintainer Review to Needs Author Action in Pull Request Status Board Nov 18, 2025
Comment thread types/sparql-http-client/package.json
@typescript-bot typescript-bot removed the Revision needed This PR needs code changes before it can be merged. label Nov 18, 2025
@typescript-bot
Copy link
Copy Markdown
Contributor

@tpluscode Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@typescript-bot typescript-bot moved this from Needs Author Action to Needs Maintainer Review in Pull Request Status Board Nov 18, 2025
@typescript-bot typescript-bot removed the Untested Change This PR does not touch tests label Nov 18, 2025
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Code Reviews in Pull Request Status Board Nov 18, 2025
Comment on lines +26 to +28
parameters?: { [key: string]: undefined | string | string[] };
defaultGraph?: string | string[];
namedGraph?: string | string[];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, so you went ahead with this. That's awesome, but I need to stop you here. ;)

I checked the spec, and the known params are different for queries and updates. Also, they are not defaultGraph and namedGraph. For query, it's default-graph-uri and named-graph-uri. For update, it's using-graph-uri and using-named-graph-uri.

I was planning to rename the QueryOptions to BaseQueryOptions and then sub-type QueryQueryOptions (yuk!) and UpdateQueryOptions, each with their respective named param names.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes probably it's better since they have different names for the update queries.

The default query parameters names are the one you mentioned but in the code of the implementation they used this camel case version. That's where I found them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I see. So Thomas uses camel-case name and maps to the correct URL params. Slightly surprising maybe but os be it

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label Nov 19, 2025
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in Pull Request Status Board Nov 19, 2025
@typescript-bot
Copy link
Copy Markdown
Contributor

@giacomoronconiobda One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!

@typescript-bot typescript-bot removed the Revision needed This PR needs code changes before it can be merged. label Nov 19, 2025
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in Pull Request Status Board Nov 19, 2025
@typescript-bot
Copy link
Copy Markdown
Contributor

@tpluscode Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

Copy link
Copy Markdown
Contributor

@tpluscode tpluscode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now it's perfect 👍

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner labels Nov 19, 2025
@typescript-bot
Copy link
Copy Markdown
Contributor

@giacomoronconiobda: Everything looks good here. I am ready to merge this PR (at bdbf878) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@tpluscode, @ludovicm67: you can do this too.)

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Waiting for Author to Merge in Pull Request Status Board Nov 19, 2025
@tpluscode
Copy link
Copy Markdown
Contributor

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in Pull Request Status Board Nov 19, 2025
@typescript-bot typescript-bot merged commit 95d7e18 into DefinitelyTyped:master Nov 19, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Edits Owners This PR adds or removes owners Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants