Skip to content

fix: Parse.serverURL not accessible via global Parse scope - #2917

Merged
mtrezza merged 1 commit into
parse-community:alphafrom
swittk:fix-serverURL
Feb 11, 2026
Merged

mtrezza merged 1 commit into
parse-community:alphafrom
swittk:fix-serverURL

Conversation

@swittk

@swittk swittk commented Feb 11, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request

Issue

Parse.serverURL is intended to be accessible in the global Parse scope, however, with the current typing changes, Parse.serverURL would not be accessible without an explicit (import Parse from 'parse') in the same file, due to serverURL not being part of the exported variables in index.d.ts

Approach

Added serverURL to the index.d.ts declaration.

Tasks

Summary by CodeRabbit

  • New Features
    • Added serverURL to the public API, allowing users to access and reference server URL configuration directly.

@parse-github-assistant

Copy link
Copy Markdown

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant Bot changed the title fix: added serverURL to the main index.d.ts fix: Added serverURL to the main index.d.ts Feb 11, 2026
@parse-github-assistant

parse-github-assistant Bot commented Feb 11, 2026 •

Copy link
Copy Markdown

🚀 Thanks for opening this pull request!

@parseplatformorg

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@coderabbitai

coderabbitai Bot commented Feb 11, 2026 •

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

A new top-level export serverURL is added to the TypeScript type declarations, exposing the Parse server URL at the module level of the public API surface.

Changes

Cohort / File(s) Summary
Type Declarations
types/index.d.ts
Added public export for serverURL with type signature derived from Parse['serverURL'].

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The description explains the problem (serverURL not exported), the solution (adding it to index.d.ts), and acknowledges the template requirements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly and specifically describes the main change: making Parse.serverURL accessible via the global Parse scope by fixing its export in the type declarations.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Feb 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8c96da9) to head (503d4b9).
⚠️ Report is 12 commits behind head on alpha.

Additional details and impacted files
@@            Coverage Diff            @@
##             alpha     #2917   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           64        64           
  Lines         6235      6235           
  Branches      1477      1481    +4     
=========================================
  Hits          6235      6235           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mtrezza mtrezza changed the title fix: Added serverURL to the main index.d.ts fix: Missing type for Parse.serverURL Feb 11, 2026
@mtrezza mtrezza changed the title fix: Missing type for Parse.serverURL fix: Parse.serverURL not accessible via global Parse scope Feb 11, 2026
@mtrezza
mtrezza merged commit 4e78681 into parse-community:alpha Feb 11, 2026
13 checks passed
parseplatformorg pushed a commit that referenced this pull request Feb 11, 2026
## [8.1.1-alpha.6](8.1.1-alpha.5...8.1.1-alpha.6) (2026-02-11)

### Bug Fixes

* `Parse.serverURL` not accessible via global `Parse` scope ([#2917](#2917)) ([4e78681](4e78681))
@parseplatformorg

Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 8.1.1-alpha.6

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Feb 11, 2026
parseplatformorg pushed a commit that referenced this pull request Feb 20, 2026
# [8.2.0](8.1.0...8.2.0) (2026-02-20)

### Bug Fixes

* `Parse.Object.createWithoutData` doesn't preserve object subclass ([#2907](#2907)) ([01dc94d](01dc94d))
* `Parse.Query.and/or/nor` loosing custom class types ([#2903](#2903)) ([89fdb07](89fdb07))
* `Parse.serverURL` not accessible via global `Parse` scope ([#2917](#2917)) ([4e78681](4e78681))
* Cloud trigger type errors for void returns and subclass constructors ([#2904](#2904)) ([de9f56d](de9f56d))
* Missing or incorrect type exports ([#2909](#2909)) ([3caa4ec](3caa4ec))
* Type error in `Parse.Query.equalTo` when matching optional array ([#2901](#2901)) ([8c96da9](8c96da9))

### Features

* Add request header `X-Parse-Upload-Mode` to identify file upload as binary data via `Buffer`, `Readable`, `ReadableStream` ([#2927](#2927)) ([a66bb06](a66bb06))
* Add support for file upload as binary data via `Buffer`, `Readable`, `ReadableStream` ([#2925](#2925)) ([e42caf6](e42caf6))
@parseplatformorg

Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 8.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:released Released as stable version state:released-alpha Released as alpha version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants