diff --git a/.browserlist b/.browserlist new file mode 100644 index 0000000..b547231 --- /dev/null +++ b/.browserlist @@ -0,0 +1 @@ +>0.3% and not dead, firefox>=98, safari>=15.4, chrome>=84 \ No newline at end of file diff --git a/README.md b/README.md index a4c432a..0bb7288 100644 --- a/README.md +++ b/README.md @@ -8,17 +8,17 @@ Tutu is a comfortable experience for tooting. Designed to work on any device - d The code is built against those targets and Tutu must run on those platforms: -| Firefox | Safari | iOS | Chrome & Edge | -| ------- | ------ | ----- | ------------- | -| 115 | 15.6 | 15.6 | 108 | +| Firefox | Safari | iOS | Chrome | Edge | +| ------- | ------ | ----- | ------ | ---- | +| 98 | 15.4 | 15.4 | 84 | 87 | Tutu trys to push the Web technology to its limit. Some features might not be available on the platform does not meet the requirement. -## The "Nightly" Branch +## The "Next" Branch -Tutu built on the latest code, called the nightly version. You can tatse latest change but risks your data. +The "next" branch of the app is built on every commit pushed into "master". You can tatse latest change but risks your data. -[Launch Tutu (Nightly)](https://master.tututheapp.pages.dev) +[Launch Tutu (Next)](https://master.tututheapp.pages.dev) ## Build & Depoly diff --git a/bun.lockb b/bun.lockb index 247b232..d4f1262 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/docs/versioning.md b/docs/versioning.md deleted file mode 100644 index 4d50356..0000000 --- a/docs/versioning.md +++ /dev/null @@ -1,32 +0,0 @@ -# Versioning & Development Cycle - -The versioning policy follows the [Semantic Versioning](https://semver.org/). -Since Tutu is an app for the end user, we redefine the some words in the policy: - -- API changes: the app is no longer available on certain platforms. - -## Development Cycle - -Dependency Freeze -> Development -> Release - -### Dependency Freeze - -This step is for: - -- Update dependencies -- Prepare the new version (like, bump the version number). - -New dependencies should not be added in this step. - -### Development - -In this step, dependencies can only be updated if it's required to fix bugs. - -New dependencies should be added as their use, in this step. - -### Release - -The version is released to production in this step. - -Before the next development step, new versions can still be released to -fix bugs. diff --git a/package.json b/package.json index 25814fe..060dc8b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package", "name": "tutu", - "version": "2.0.0", + "version": "1.1.0", "description": "", "private": true, "type": "module", @@ -17,33 +17,33 @@ "author": "Rubicon", "license": "Apache-2.0", "devDependencies": { - "@solid-devtools/overlay": "^0.33.0", + "@solid-devtools/overlay": "^0.30.1", "@suid/vite-plugin": "^0.3.1", "@testing-library/webdriverio": "^3.2.1", "@types/hammerjs": "^2.0.46", "@types/masonry-layout": "^4.2.8", "@vite-pwa/assets-generator": "^0.2.6", - "@wdio/cli": "^9.5.1", - "@wdio/lighthouse-service": "^9.5.1", - "@wdio/local-runner": "^9.5.1", - "@wdio/mocha-framework": "^9.5.0", - "@wdio/spec-reporter": "^9.5.0", + "@wdio/cli": "^9.4.5", + "@wdio/lighthouse-service": "^9.4.5", + "@wdio/local-runner": "^9.4.5", + "@wdio/mocha-framework": "^9.4.4", + "@wdio/spec-reporter": "^9.4.4", "postcss": "^8.4.49", - "prettier": "^3.4.2", + "prettier": "^3.3.3", "tsx": "^4.19.2", - "typescript": "^5.7.2", - "vite": "^6.0.7", + "typescript": "^5.6.3", + "vite": "^5.4.11", "vite-plugin-package-version": "^1.1.0", - "vite-plugin-pwa": "^0.21.1", - "vite-plugin-solid": "^2.11.0", + "vite-plugin-pwa": "^0.20.5", + "vite-plugin-solid": "^2.10.2", "vite-plugin-solid-styled": "^0.11.1", "wdio-vite-service": "^2.0.0", "wdio-wait-for": "^3.0.11", "workbox-build": "^7.3.0", - "wrangler": "^3.99.0" + "wrangler": "^3.86.1" }, "dependencies": { - "@formatjs/intl-localematcher": "^0.5.10", + "@formatjs/intl-localematcher": "^0.5.7", "@nanostores/persistent": "^0.10.2", "@nanostores/solid": "^0.5.0", "@solid-primitives/event-listener": "^2.3.3", @@ -52,7 +52,7 @@ "@solid-primitives/map": "^0.4.13", "@solid-primitives/page-visibility": "^2.0.17", "@solid-primitives/resize-observer": "^2.0.26", - "@solidjs/router": "^0.15.2", + "@solidjs/router": "^0.15.1", "@suid/icons-material": "^0.8.1", "@suid/material": "^0.18.0", "blurhash": "^2.0.5", @@ -65,7 +65,7 @@ "masto": "^6.10.1", "nanostores": "^0.11.3", "normalize.css": "^8.0.1", - "solid-devtools": "^0.33.0", + "solid-devtools": "^0.30.1", "solid-js": "^1.9.3", "solid-styled": "^0.11.1", "solid-transition-group": "^0.2.3", diff --git a/src/material/BottomSheet.tsx b/src/material/BottomSheet.tsx index 5b463a0..99bfbd0 100644 --- a/src/material/BottomSheet.tsx +++ b/src/material/BottomSheet.tsx @@ -51,7 +51,7 @@ function animateSlideInFromBottom(element: HTMLElement, reverse?: boolean) { } const BottomSheet: ParentComponent = (props) => { - let element!: HTMLDialogElement; + let element: HTMLDialogElement; let animation: Animation | undefined; const child = children(() => props.children); diff --git a/src/material/Menu.tsx b/src/material/Menu.tsx index 3bc2ab0..931b756 100644 --- a/src/material/Menu.tsx +++ b/src/material/Menu.tsx @@ -108,7 +108,7 @@ function animateGrowFromTopLeft( * - Use {@link MenuItem} from SUID as children. */ const Menu: Component = (oprops) => { - let root!: HTMLDialogElement; + let root: HTMLDialogElement; const windowSize = useWindowSize(); const [props, rest] = splitProps(oprops, [ "open", diff --git a/src/platform/polyfills.ts b/src/platform/polyfills.ts index fd44153..6bbf700 100644 --- a/src/platform/polyfills.ts +++ b/src/platform/polyfills.ts @@ -1,27 +1,38 @@ //! This module has side effect. //! It recommended to include the module by