Skip to content

Commit

Permalink
chore: prepare for 3.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
angelablake committed Nov 2, 2023
1 parent dfe7810 commit 85f4579
Show file tree
Hide file tree
Showing 24 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion assets/src/js/frontend/paypal-commerce/SmartButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class SmartButtons extends PaymentMethod {
/**
* Create subscription event handler for smart buttons.
*
* @unreleased Pass subscriber details to subscription. These details will automatically fill in PayPal payment modal.
* @since 3.1.0 Pass subscriber details to subscription. These details will automatically fill in PayPal payment modal.
* @since 2.9.0
*
* @param {object} data PayPal button data.
Expand Down
2 changes: 1 addition & 1 deletion includes/class-give-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ public function get_frontend_stylesheet_uri() {
/**
* Gutenberg admin scripts.
*
* @unreleased Use wp scripts to compile blocks
* @since 3.1.0 Use wp scripts to compile blocks
* @since 2.19.0 Remove undefined gutenberg.css
* @since 2.19.6 Load script with EnqueueScript.
* @since 2.19.6 Load missing block styles
Expand Down
2 changes: 1 addition & 1 deletion includes/database/class-give-db-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function __construct() {
/**
* Retrieve payment meta field for a payment.
*
* @unreleased Return empty array, when request raw metadata if $single is set to false and metadata does not exist.
* @since 3.1.0 Return empty array, when request raw metadata if $single is set to false and metadata does not exist.
* @since 2.0
*
* @param int $id Pst Type ID.
Expand Down
2 changes: 1 addition & 1 deletion includes/shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* Displays a user's donation history.
*
* @unreleased pass form id by reference in give_totals shortcode.
* @since 3.1.0 pass form id by reference in give_totals shortcode.
* @since 1.0
*
* @param array $atts
Expand Down
2 changes: 1 addition & 1 deletion src/DonationForms/resources/app/DonationFormApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function App({form}: { form: DonationForm }) {
}

/**
* @unreleased
* @since 3.1.0
*/
function AppPreview() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const PREVIEW_EVENTS = {
/**
* Simple Publish/Subscribe system used for handling form state in preview mode
*
* @unreleased
* @since 3.1.0
*/
export default function useDonationFormPubSub() {

Expand Down
2 changes: 1 addition & 1 deletion src/DonationForms/resources/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export interface Section extends Group {
}

/**
* @unreleased
* @since 3.1.0
*/
export interface FormGoal {
type: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
use Give\Framework\Blocks\BlockModel;

/**
* @unreleased
* @since 3.1.0
*/
class GenerateDefaultDonationFormBlockCollection
{
/**
* @unreleased
* @since 3.1.0
*/
public function __invoke(): BlockCollection
{
Expand Down Expand Up @@ -43,7 +43,7 @@ public function __invoke(): BlockCollection
}

/**
* @unreleased
* @since 3.1.0
*/
protected function createSection(string $title, string $description, BlockModel ...$innerBlocks): BlockModel
{
Expand All @@ -58,7 +58,7 @@ protected function createSection(string $title, string $description, BlockModel
}

/**
* @unreleased
* @since 3.1.0
*/
protected function createAmountBlock(): BlockModel
{
Expand Down Expand Up @@ -93,7 +93,7 @@ protected function createAmountBlock(): BlockModel
}

/**
* @unreleased
* @since 3.1.0
*/
protected function createDonorNameBlock(): BlockModel
{
Expand All @@ -117,7 +117,7 @@ protected function createDonorNameBlock(): BlockModel
}

/**
* @unreleased
* @since 3.1.0
*/
protected function createEmailBlock(): BlockModel
{
Expand All @@ -132,7 +132,7 @@ protected function createEmailBlock(): BlockModel
}

/**
* @unreleased
* @since 3.1.0
*/
protected function createDonationSummaryBlock(): BlockModel
{
Expand All @@ -144,7 +144,7 @@ protected function createDonationSummaryBlock(): BlockModel
}

/**
* @unreleased
* @since 3.1.0
*/
protected function createPaymentGatewaysBlock(): BlockModel
{
Expand Down
2 changes: 1 addition & 1 deletion src/FormBuilder/Routes/CreateFormRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class CreateFormRoute
{
/**
* @unreleased updated default form blocks to be generated from block models instead of json
* @since 3.1.0 updated default form blocks to be generated from block models instead of json
* @since 3.0.0
*
* @return void
Expand Down
4 changes: 2 additions & 2 deletions src/FormBuilder/Routes/RegisterFormBuilderPageRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __invoke()
/**
* Render page with scripts
*
* @unreleased set translations for scripts
* @since 3.1.0 set translations for scripts
* @since 3.0.0
*
* @return void
Expand Down Expand Up @@ -94,7 +94,7 @@ public function renderPage()
Language::setScriptTranslations($registrarsScriptHandle);

/**
* @unreleased set translations for scripts
* @since 3.1.0 set translations for scripts
* @since 3.0.0
* Using `wp_enqueue_script` instead of `new EnqueueScript` for more control over dependencies.
* The `EnqueueScript` class discovers the dependencies from the associated `asset.php` file,
Expand Down
6 changes: 3 additions & 3 deletions src/Framework/Blocks/BlockModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class BlockModel implements Arrayable
public $innerBlocks;

/**
* @unreleased added innerBlocks sanitization
* @since 3.1.0 added innerBlocks sanitization
* @since 3.0.0
* @param string $name
* @param string $clientId
Expand All @@ -52,7 +52,7 @@ public function __construct(
}

/**
* @unreleased
* @since 3.1.0
*
* @param array|BlockCollection|null $innerBlocks
*/
Expand Down Expand Up @@ -117,7 +117,7 @@ public function getShortName(): string
}

/**
* @unreleased simplified innerBlocks param
* @since 3.1.0 simplified innerBlocks param
* @since 3.0.0
*
* @param array $blockData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getLegacyFormFieldMarkup(int $formId, array $args): string
}

/**
* @unreleased set translations for script
* @since 3.1.0 set translations for script
* @since 3.0.0
*/
public function enqueueScript(int $formId)
Expand Down
6 changes: 3 additions & 3 deletions src/PaymentGateways/Gateways/PayPalCommerce/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* PayPal Commerce Platform: Standard address.
*
* @unreleased
* @since 3.1.0
*/
export type PayPalAddress = {
address_line_1: string,
Expand All @@ -16,7 +16,7 @@ export type PayPalAddress = {
* PayPal Commerce Platform: Shipping address
*
* @see https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_revise!path=shipping_address&t=request
* @unreleased
* @since 3.1.0
*/
export type PayPalShippingAddress = {
name: {
Expand All @@ -29,7 +29,7 @@ export type PayPalShippingAddress = {
* PayPal Commerce Platform: Subscriber
*
* @see https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_create!path=subscriber&t=request
* @unreleased
* @since 3.1.0
*/
export type PayPalSubscriber = {
name: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function formSettings(int $formId): array
}

/**
* @unreleased set translations for script
* @since 3.1.0 set translations for script
* @since 3.0.0
*/
public function enqueueScript(int $formId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getPaymentMethodLabel(): string
}

/**
* @unreleased set translations for script
* @since 3.1.0 set translations for script
* @since 3.0.0
*/
public function enqueueScript(int $formId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getPaymentMethodLabel(): string
}

/**
* @unreleased set translations for script
* @since 3.1.0 set translations for script
* @since 2.30.0
*/
public function enqueueScript(int $formId)
Expand Down
4 changes: 2 additions & 2 deletions src/PaymentGateways/PayPalCommerce/AjaxRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function removePayPalAccount()
*
* @todo: handle payment create error on frontend.
*
* @unreleased Remove unused variable from createOrder argument.
* @since 3.1.0 Remove unused variable from createOrder argument.
* @since 2.9.0
*/
public function createOrder()
Expand Down Expand Up @@ -370,7 +370,7 @@ private function validateFrontendRequest()
/**
* This function should return address array in PayPal rest api accepted format.
*
* @unreleased Return address only if setting enabled and has valida country in PayPal accepted formatted.
* @since 3.1.0 Return address only if setting enabled and has valida country in PayPal accepted formatted.
* @since 2.11.1
*/
private function getDonorAddressFromPostedDataForPaypalOrder(array $postedData): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function approveOrder($orderId)
*
* @see https://developer.paypal.com/docs/api/orders/v2
*
* @unreleased "payer" argument is deprecated, using payment_source/paypal.
* @since 3.1.0 "payer" argument is deprecated, using payment_source/paypal.
* @since 2.9.0
* @since 2.16.2 Conditionally set transaction as donation or standard transaction in PayPal.
*
Expand Down
10 changes: 5 additions & 5 deletions src/Promotions/InPluginUpsells/SaleBanners.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct()
/**
* Get banners definitions
*
* @unreleased add Giving Tuesday 2023 banner
* @since 3.1.0 add Giving Tuesday 2023 banner
* @since 2.23.2 add Giving Tuesday 2022 banner
* @since 2.17.0
*
Expand Down Expand Up @@ -90,7 +90,7 @@ public function getBanners(): array
/**
* Get the banners that should be displayed.
*
* @unreleased hide banners for users with Pro tier accounts.
* @since 3.1.0 hide banners for users with Pro tier accounts.
* @since 2.17.0
*/
public function getVisibleBanners(): array
Expand Down Expand Up @@ -189,7 +189,7 @@ public static function isShowing(): bool
}

/**
* @unreleased retrieve licensed plugin slugs.
* @since 3.1.0 retrieve licensed plugin slugs.
*/
public static function getLicensedPluginSlugs(): array
{
Expand All @@ -208,7 +208,7 @@ public static function getLicensedPluginSlugs(): array
}

/**
* @unreleased determines user pricing plan from licensed plugin slugs.
* @since 3.1.0 determines user pricing plan from licensed plugin slugs.
*/
public static function getUserPricingPlan(): string
{
Expand Down Expand Up @@ -241,7 +241,7 @@ public static function getUserPricingPlan(): string
}

/**
* @unreleased return data by user pricing plan.
* @since 3.1.0 return data by user pricing plan.
*/
public static function getDataByPricingPlan($data): string
{
Expand Down
2 changes: 1 addition & 1 deletion src/Promotions/InPluginUpsells/resources/js/sale-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const pageTitle = document.querySelector('.page-title-action, .wp-heading-inline
const listTable = document.querySelector('#give-admin-donations-root, #give-admin-donation-forms-root, #give-admin-donors-root');

/**
* @unreleased show banner on ListTable pages.
* @since 3.1.0 show banner on ListTable pages.
*/
const hideBanner = ({target: dismissAction}) => {
const formData = new FormData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ChargeRefundedTest extends TestCase
use RefreshDatabase, HasMockStripeAccounts;

/**
* @unreleased
* @since 3.1.0
*
* @throws Exception
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class PaymentIntentFailedTest extends TestCase
use RefreshDatabase;

/**
* @unreleased
* @since 3.1.0
*
* @throws Exception
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PaymentIntentSucceededTest extends TestCase
use RefreshDatabase;

/**
* @unreleased
* @since 3.1.0
*
* @throws Exception
*/
Expand Down
Loading

0 comments on commit 85f4579

Please sign in to comment.