Socket
Socket
Sign inDemoInstall

@tamagui/web

Package Overview
Dependencies
Maintainers
1
Versions
741
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/web - npm Package Compare versions

Comparing version 1.108.3 to 1.108.4

9

dist/cjs/createTamagui.js

@@ -141,2 +141,11 @@ var __defProp = Object.defineProperty;

settings: {
// move deprecated settings here so we can reference them all using `getSetting`
// TODO remove this on v2
disableSSR: configIn.disableSSR,
defaultFont: configIn.defaultFont,
disableRootThemeClass: configIn.disableRootThemeClass,
onlyAllowShorthands: configIn.onlyAllowShorthands,
mediaQueryDefaultActive: configIn.mediaQueryDefaultActive,
themeClassNameOnRoot: configIn.themeClassNameOnRoot,
cssStyleSeparator: configIn.cssStyleSeparator,
webContainerType: "inline-size",

@@ -143,0 +152,0 @@ ...configIn.settings

@@ -251,2 +251,11 @@ "use strict";

settings: _object_spread({
// move deprecated settings here so we can reference them all using `getSetting`
// TODO remove this on v2
disableSSR: configIn.disableSSR,
defaultFont: configIn.defaultFont,
disableRootThemeClass: configIn.disableRootThemeClass,
onlyAllowShorthands: configIn.onlyAllowShorthands,
mediaQueryDefaultActive: configIn.mediaQueryDefaultActive,
themeClassNameOnRoot: configIn.themeClassNameOnRoot,
cssStyleSeparator: configIn.cssStyleSeparator,
webContainerType: "inline-size"

@@ -253,0 +262,0 @@ }, configIn.settings),

4

dist/cjs/hooks/useDidHydrateOnce.js

@@ -29,3 +29,3 @@ var __create = Object.create;

module.exports = __toCommonJS(useDidHydrateOnce_exports);
var import_react = __toESM(require("react"));
var import_react = __toESM(require("react")), import_config = require("../config");
function useDidHydrateOnceRoot() {

@@ -36,3 +36,3 @@ return !0;

function useDidHydrateOnce() {
return useDidHydrateSync();
return (0, import_config.getSetting)("disableSSR") ? !0 : useDidHydrateSync();
}

@@ -39,0 +39,0 @@ const emptySubscribe = () => () => {

@@ -30,3 +30,3 @@ "use strict";

module.exports = __toCommonJS(useDidHydrateOnce_exports);
var import_react = __toESM(require("react"));
var import_react = __toESM(require("react")), import_config = require("../config");
function useDidHydrateOnceRoot() {

@@ -33,0 +33,0 @@ return !0;

@@ -136,2 +136,11 @@ import { isWeb } from "@tamagui/constants";

settings: {
// move deprecated settings here so we can reference them all using `getSetting`
// TODO remove this on v2
disableSSR: configIn.disableSSR,
defaultFont: configIn.defaultFont,
disableRootThemeClass: configIn.disableRootThemeClass,
onlyAllowShorthands: configIn.onlyAllowShorthands,
mediaQueryDefaultActive: configIn.mediaQueryDefaultActive,
themeClassNameOnRoot: configIn.themeClassNameOnRoot,
cssStyleSeparator: configIn.cssStyleSeparator,
webContainerType: "inline-size",

@@ -138,0 +147,0 @@ ...configIn.settings

@@ -241,2 +241,11 @@ import { isWeb } from "@tamagui/constants";

settings: _object_spread({
// move deprecated settings here so we can reference them all using `getSetting`
// TODO remove this on v2
disableSSR: configIn.disableSSR,
defaultFont: configIn.defaultFont,
disableRootThemeClass: configIn.disableRootThemeClass,
onlyAllowShorthands: configIn.onlyAllowShorthands,
mediaQueryDefaultActive: configIn.mediaQueryDefaultActive,
themeClassNameOnRoot: configIn.themeClassNameOnRoot,
cssStyleSeparator: configIn.cssStyleSeparator,
webContainerType: "inline-size"

@@ -243,0 +252,0 @@ }, configIn.settings),

import React from "react";
import { getSetting } from "../config";
function useDidHydrateOnceRoot() {

@@ -7,3 +8,3 @@ return !0;

function useDidHydrateOnce() {
return useDidHydrateSync();
return getSetting("disableSSR") ? !0 : useDidHydrateSync();
}

@@ -10,0 +11,0 @@ const emptySubscribe = () => () => {

import React from "react";
import { getSetting } from "../config";
function useDidHydrateOnceRoot() {

@@ -3,0 +4,0 @@ return !0;

{
"name": "@tamagui/web",
"version": "1.108.3",
"version": "1.108.4",
"source": "src/index.ts",

@@ -30,14 +30,14 @@ "main": "dist/cjs",

"dependencies": {
"@tamagui/compose-refs": "1.108.3",
"@tamagui/constants": "1.108.3",
"@tamagui/helpers": "1.108.3",
"@tamagui/normalize-css-color": "1.108.3",
"@tamagui/timer": "1.108.3",
"@tamagui/types": "1.108.3",
"@tamagui/use-did-finish-ssr": "1.108.3",
"@tamagui/use-event": "1.108.3",
"@tamagui/use-force-update": "1.108.3"
"@tamagui/compose-refs": "1.108.4",
"@tamagui/constants": "1.108.4",
"@tamagui/helpers": "1.108.4",
"@tamagui/normalize-css-color": "1.108.4",
"@tamagui/timer": "1.108.4",
"@tamagui/types": "1.108.4",
"@tamagui/use-did-finish-ssr": "1.108.4",
"@tamagui/use-event": "1.108.4",
"@tamagui/use-force-update": "1.108.4"
},
"devDependencies": {
"@tamagui/build": "1.108.3",
"@tamagui/build": "1.108.4",
"@testing-library/react": "^16.0.0",

@@ -44,0 +44,0 @@ "csstype": "^3.0.10",

@@ -261,2 +261,12 @@ import { isWeb } from '@tamagui/constants'

settings: {
// move deprecated settings here so we can reference them all using `getSetting`
// TODO remove this on v2
disableSSR: configIn.disableSSR,
defaultFont: configIn.defaultFont,
disableRootThemeClass: configIn.disableRootThemeClass,
onlyAllowShorthands: configIn.onlyAllowShorthands,
mediaQueryDefaultActive: configIn.mediaQueryDefaultActive,
themeClassNameOnRoot: configIn.themeClassNameOnRoot,
cssStyleSeparator: configIn.cssStyleSeparator,
webContainerType: 'inline-size',

@@ -263,0 +273,0 @@ ...configIn.settings,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc