Skip to content

Commit

Permalink
Update VERSION for 3.2.33
Browse files Browse the repository at this point in the history
  • Loading branch information
suabahasa committed Feb 24, 2025
1 parent 9e845d0 commit 92c484a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
26 changes: 18 additions & 8 deletions assets/packages/core/tailwindcss-v4/stylesheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ async function httpsProvider(url) {
return await fetch(url).then((res) => res.text());
}

export async function loadStylesheet(id, base, volume = {}) {
export async function loadStylesheet(id, base = '/', volume = {}) {
base = base || '/';

volume = {
...volume,
...twVolume
Expand Down Expand Up @@ -63,12 +65,17 @@ export async function loadStylesheet(id, base, volume = {}) {

/*
* Resolve default import if no extension is specified
* */
if (!id.endsWith('.css')) {
id = id.concat('/index.css')
*/

// consider it's a path of URL
let _url = new URL(id, 'https://esm.sh');
_path = _url.pathname;

if (!_path.endsWith('.css')) {
_path = _path.concat('/index.css')
}

_path = path.join(base, id);
_path = path.join(base, _path);

if (volume[_path]) {
return {
Expand All @@ -79,9 +86,12 @@ export async function loadStylesheet(id, base, volume = {}) {

// CDN

// join the _path with the search params if any
_path = _path.concat(_url.search);

// fetch and store in volume
await fetch(`https://esm.sh/${_path}`)
.then((response) => {
await fetch(`https://esm.sh${_path}`)
.then(async (response) => {
if (!response.ok) {
throw new Error(
_id.startsWith('.')
Expand All @@ -90,7 +100,7 @@ export async function loadStylesheet(id, base, volume = {}) {
);
}

let data = response.text();
let data = await response.text();

data = data
// resolve the `@config '|"` imports paths to absolute paths with cdn
Expand Down
2 changes: 1 addition & 1 deletion constant.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class WIND_PRESS
/**
* @var string
*/
public const VERSION = '3.2.32';
public const VERSION = '3.2.33';

/**
* @var string
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://ko-fi.com/Q5Q75XSF7
Tags: tailwind, tailwindcss, tailwind css
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 3.2.32
Stable tag: 3.2.33
Requires PHP: 7.4
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -122,6 +122,9 @@ For instance:
Free version 1.**0**.4
Pro version 1.**1**.4

= 3.2.33 =
* **Fix**: Generating cache process issue on `@import` directive in the `main.css` file

= 3.2.32 =
* **New**: Upgraded to Tailwind CSS v4 (4.0.8 latest)
* **New**: [WPCodeBox 2](https://wpcodebox.com/) integration **[Pro]**
Expand Down
2 changes: 1 addition & 1 deletion windpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin Name: WindPress
* Plugin URI: https://wind.press
* Description: Integrate Tailwind CSS into WordPress seamlessly, in just seconds. Works well with the block editor, page builders, plugins, themes, and custom code.
* Version: 3.2.32
* Version: 3.2.33
* Requires at least: 6.0
* Requires PHP: 7.4
* Author: WindPress
Expand Down

0 comments on commit 92c484a

Please sign in to comment.