Skip to content

Commit

Permalink
Merge branch 'main' into refactor/node
Browse files Browse the repository at this point in the history
  • Loading branch information
ErKeLost authored Oct 18, 2024
2 parents f107a4e + 92ce692 commit 2a0ad60
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 17 deletions.
2 changes: 0 additions & 2 deletions .changeset/ninety-mangos-buy.md

This file was deleted.

7 changes: 7 additions & 0 deletions bench/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# bench

## 1.0.18

### Patch Changes

- Updated dependencies [663dfeed]
- @farmfe/core@1.3.29

## 1.0.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion bench/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bench",
"version": "1.0.17",
"version": "1.0.18",
"private": true,
"description": "",
"scripts": {},
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/cache/cache_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::{

use crate::config::Mode;

const FARM_CACHE_VERSION: &str = "0.4.8";
const FARM_CACHE_VERSION: &str = "0.4.9";
const FARM_CACHE_MANIFEST_FILE: &str = "farm-cache.json";

// TODO make CacheStore a trait and implement DiskCacheStore or RemoteCacheStore or more.
Expand Down
2 changes: 1 addition & 1 deletion crates/plugin_css/tests/fixtures/analyze_deps/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ div {

p {
background: url('@/img/logo.png');
top: -8px/2 + 1;
/* top: -8px/2 + 1; */
}

.home {filter: progid:DXImageTransform.Microsoft.Alpha(opacity=20)}
6 changes: 3 additions & 3 deletions crates/toolkit/src/css/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ pub fn parse_css_stylesheet(
content = regex
.replace_all(&content, "filter:\"$1.Microsoft.$2\"$3")
.to_string();
// 3. replace invalid operator, eg: top: -8px/2 + 1 to top: "-8px/2 + 1" using regex. fix #1748
let regex = Regex::new(r#":\s*([^;{}]*?\d\s(?:\+|-|\*|/)\s\d[^;{}]*?)\s*(;|\})"#).unwrap();
content = regex.replace_all(&content, ":\"$1\"$2").to_string();
// // 3. replace invalid operator, eg: top: -8px/2 + 1 to top: "-8px/2 + 1" using regex. fix #1748
// let regex = Regex::new(r#":\s*([^;{}]*?\d\s+\s\d[^;{}]*?)\s*(;|\})"#).unwrap();
// content = regex.replace_all(&content, ":\"$1\"$2").to_string();

let (cm, source_file) = create_swc_source_map(Source {
path: PathBuf::from(id),
Expand Down
2 changes: 1 addition & 1 deletion examples/tailwind/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const App = () => {
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="text-blue-300"
className="text-blue-300 shadow"
href="https://github.com/tailwindcss/tailwindcss"
target="_blank"
rel="noopener noreferrer"
Expand Down
10 changes: 5 additions & 5 deletions examples/vite-adapter-vue/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<img src="/logo.png" alt="" />
<test />

<TinyButton type="primary" @click="btnClick">
<!-- <TinyButton type="primary" @click="btnClick">
Tiny Vue Modal 最大化显示
</TinyButton>
</TinyButton> -->

<test1 />
<aboute />
Expand All @@ -21,9 +21,9 @@ import home from "./pages/index.vue";
import aboute from "../deps/node_modules/my-ui/index.vue";
import { Button as TinyButton, Modal } from '@opentiny/vue'
function btnClick() {
Modal.alert({ message: '最大化显示', fullscreen: true })
}
// function btnClick() {
// Modal.alert({ message: '最大化显示', fullscreen: true })
// }
import test1 from './components/test1.vue';
import test from './components/test.vue';
Expand Down
2 changes: 1 addition & 1 deletion js-plugins/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"solid-js": "^1.7.8"
},
"peerDependencies": {
"@farmfe/core": "workspace:^1.3.28"
"@farmfe/core": "workspace:^1.3.29"
},
"files": [
"build"
Expand Down
2 changes: 1 addition & 1 deletion js-plugins/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"source-map": "^0.7.4"
},
"peerDependencies": {
"@farmfe/core": "workspace:^1.3.28",
"@farmfe/core": "workspace:^1.3.29",
"less": "*",
"sass": "*",
"stylus": "*"
Expand Down
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @farmfe/core

## 1.3.29

### Patch Changes

- 663dfeed: Revert change of replacing invalid css

## 1.3.28

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@farmfe/core",
"version": "1.3.28",
"version": "1.3.29",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
Expand Down

0 comments on commit 2a0ad60

Please sign in to comment.