Skip to content

Commit

Permalink
v4.0.0 updates (#6)
Browse files Browse the repository at this point in the history
* Added additional support for JSON and joins

* Code cleanup

* Renamed connection methods

* Updated methods and GitHub issue templates

* Removed php-string-helpers dependency

* Updated documentation

* Updated method name in DbFactory

* Renamed namespace

* Added constants for the query builder

* Added support for multiple joins

* Updated documentation examples
  • Loading branch information
robinsonjohn authored Sep 11, 2024
1 parent 1b59053 commit 5842cda
Show file tree
Hide file tree
Showing 26 changed files with 1,337 additions and 1,232 deletions.
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/01-bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ⚠️️ Bug report
description: Report a bug
title: "[BUG]: "
labels: ["Type: Bug"]
body:
- type: markdown
attributes:
value: |
To report a bug, complete the form below.
- type: input
attributes:
label: Project version
description: Version of this project in which the bug exists
placeholder: vX.X.X
validations:
required: true
- type: textarea
attributes:
label: Description
description: Detailed description of the bug
validations:
required: true
- type: textarea
attributes:
label: Expected behavior
description: A summary of what you expected, should this issue not have arisen
- type: textarea
attributes:
label: Possible solution
description: Possible solution/fix to this issue
- type: textarea
attributes:
label: Steps to reproduce
description: Can provide links to a live example, code snippets, screenshots, or simple steps to reproduce this bug
- type: textarea
attributes:
label: Environment
description: Details of the environment which experienced this bug
- type: textarea
attributes:
label: Additional information
description: Additional information/details
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/02-feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 🛠️ Feature request
description: Request a new feature
title: "[FEATURE]: "
labels: ["Type: Feature"]
body:
- type: markdown
attributes:
value: |
To request a new feature, complete the form below.
- type: input
attributes:
label: Current project version
description: Latest release of this project to-date
placeholder: vX.X.X
validations:
required: true
- type: textarea
attributes:
label: Description
description: Description of the proposed feature
validations:
required: true
- type: textarea
attributes:
label: Scenario/use-case
description: Explain how/when the feature would be helpful
- type: textarea
attributes:
label: Possible solution
description: Possible solution to implement this feature
- type: textarea
attributes:
label: Additional information
description: Additional information/details
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/03-question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: ❓ Question
description: Ask a question
title: "[QUESTION]: "
labels: ["Type: Question"]
body:
- type: markdown
attributes:
value: |
To ask a question, complete the form below.
- type: input
attributes:
label: Current project version
description: Latest release of this project to-date
placeholder: vX.X.X
validations:
required: true
- type: textarea
attributes:
label: Description
description: Description of the question
validations:
required: true
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/04-other.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 📄 Other
description: All other issues
title: "[OTHER]: "
labels: ["Type: Other"]
body:
- type: markdown
attributes:
value: |
To create a new issue, complete the form below.
- type: input
attributes:
label: Project version
description: Version of this project for which this issue applies (if applicable)
placeholder: vX.X.X
- type: textarea
attributes:
label: Description
description: Issue details
validations:
required: true
44 changes: 0 additions & 44 deletions .github/ISSUE_TEMPLATE/Bug.md

This file was deleted.

18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/Feature_Request.md

This file was deleted.

8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/Question.md

This file was deleted.

1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
3 changes: 2 additions & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

**PLEASE DO NOT DISCLOSE SECURITY-RELATED ISSUES PUBLICLY**

If you discover a security vulnerability, please send an email to contact@bayfrontmedia.com. All security vulnerabilities will be promptly addressed.
If you discover a security vulnerability, please email contact@bayfrontmedia.com.
All security vulnerabilities will be promptly addressed.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities

## [4.0.0] - 2024.09.10

### Added

- Added `DB_DEFAULT` constant.
- Added `getCurrentConnection` method.
- Added constants to be used with the query builder.
- Added support for multiple `INNER`, `LEFT` and `RIGHT` joins with the query builder.

### Changed

- Renamed `add` method to `addConnection`.
- Renamed `use` method to `useConnection`.
- Renamed `get` method to `getConnection`.
- Renamed `getDefault` method to `getDefaultConnectionName`.
- Renamed `getCurrent` method to `getCurrentConnectionName`.
- Renamed `getConnections` method to `getConnectionNames`.
- Renamed `isConnected` method to `connectionExists`.
- Changed namespace from `Bayfront\PDO` to `Bayfront\SimplePdo`
- Updated documentation.

### Removed

- Removed need for `php-string-helpers` dependency.

## [3.0.0] - 2023.05.10

### Added
Expand Down
Loading

0 comments on commit 5842cda

Please sign in to comment.