Skip to content

🚀 [Feature]: Add Get-Uri and Test-Uri function#3

Merged
Marius Storhaug (MariusStorhaug) merged 21 commits into
mainfrom
GetUri
Feb 9, 2025
Merged

🚀 [Feature]: Add Get-Uri and Test-Uri function#3
Marius Storhaug (MariusStorhaug) merged 21 commits into
mainfrom
GetUri

Conversation

@MariusStorhaug
Copy link
Copy Markdown
Member

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Feb 8, 2025

Description

This pull request includes several improvements and new features to the URI handling functions and their corresponding tests. The most important changes include the introduction of new functions, updates to existing functions, and enhancements to the test coverage.

New Functions

  • Added a new function Get-Uri to convert a string into a System.Uri, System.UriBuilder, or a normalized URI string.
  • Added a new function Test-Uri to validate whether a given string is a valid URI, with an option to allow relative URIs.

Updates to Existing Functions

  • Updated the ConvertFrom-UriQueryString function to improve parameter handling and pipeline support.

Enhancements to Test Coverage

  • Added comprehensive tests for the new Test-Uri function, including various valid and invalid URI scenarios.
  • Added tests for the new Get-Uri function, covering default behavior, different output formats, error handling, pipeline input, and edge cases.

Configuration Changes:

  • Added a new configuration file for the JSCPD linter to set a threshold of 0 and ignore test files.
  • Updated the linter workflow to include JSON validation.

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Add Get-Uri function for URI conversion and normalization Add Get-Uri and Test-Uri function Feb 9, 2025
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Add Get-Uri and Test-Uri function 🚀 [Feature]: Add Get-Uri and Test-Uri function Feb 9, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 9, 2025

Module Uri - v1.1.0 published to the PowerShell Gallery.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 9, 2025

GitHub release for Uri v1.1.0 has been created.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant