Skip to content

Commit

Permalink
Release 2.0 prep
Browse files Browse the repository at this point in the history
  • Loading branch information
nateiler committed Jan 19, 2023
1 parent 5df58cc commit 096109b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Changelog

## Unreleased
## 2.0.0 - 2023-01-19 [CRITICAL]
> {warning} This plugin handle has been renamed from 'hubspot' to 'flipbox-hubspot' in an effort to resolve plugin store conflicts. If you're upgrading this plugin, you will need to manually update the plugin handle in the database: `plugins` table => find the `hubspot` plugin handle and replace with `flipbox-hubspot`.
### Changed
- Renamed plugin handle (and twig variables) from 'hubspot' to 'flipbox-hubspot'

### Added
- Plugin setting `variableKey` can be used to override the twig variable used. Defaults to `hubspot` and is implemented: `{{ craft.hubspot.* }}`

## 1.4.0 - 2022-09-28
### Added
- Connection using HubSpot Private App token
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "flipboxfactory/craft-hubspot",
"description": "HubSpot integration for Craft CMS",
"version": "1.4.0",
"version": "2.0.0",
"type": "craft-plugin",
"license": "proprietary",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/HubSpot.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function init()
function (Event $event) {
/** @var CraftVariable $variable */
$variable = $event->sender;
$variable->set('flipbox-hubspot', HubSpotVariable::class);
$variable->set(HubSpot::getInstance()->getSettings()->variableKey, HubSpotVariable::class);
}
);

Expand Down
5 changes: 5 additions & 0 deletions src/models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
*/
class Settings extends Model
{
/**
* @var string
*/
public $variableKey = 'hubspot';

/**
* @var string
*/
Expand Down

0 comments on commit 096109b

Please sign in to comment.