startupjs 0.59.0-canary.9 → 0.60.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { BASE_URL } from '@startupjs/utils/BASE_URL'
2
2
  export { default as axios } from '@startupjs/utils/axios'
3
3
  export * from 'teamplay'
4
+ export * from 'cssxjs'
4
5
  export * from '@startupjs/hooks'
5
6
  // HINT: `isomorphic` means that the code can be executed both
6
7
  // on the server and on the client
@@ -8,10 +9,6 @@ export * from '@startupjs/isomorphic-helpers'
8
9
  export { getSessionData, setSessionData, deleteSessionData } from '@startupjs/server/utils/clientSessionData'
9
10
  export { default as login } from '@startupjs/server/utils/clientLogin'
10
11
  export { default as logout } from '@startupjs/server/utils/clientLogout'
11
- // dummy babel macro functions for @startupjs/babel-plugin-rn-stylename-inline
12
- export function css (css: TemplateStringsArray): any
13
- export function styl (styl: TemplateStringsArray): any
14
- export function pug (pug: TemplateStringsArray): any
15
12
 
16
13
  export function serverOnly (value: any): any
17
14
 
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export { BASE_URL } from '@startupjs/utils/BASE_URL'
2
2
  export { default as axios } from '@startupjs/utils/axios'
3
3
  export * from 'teamplay'
4
+ export * from 'cssxjs'
4
5
  export * from '@startupjs/hooks'
5
6
  // HINT: `isomorphic` means that the code can be executed both
6
7
  // on the server and on the client
@@ -8,11 +9,6 @@ export * from '@startupjs/isomorphic-helpers'
8
9
  export { getSessionData, setSessionData, deleteSessionData, onInitSession } from '@startupjs/server/utils/clientSessionData'
9
10
  export { default as login } from '@startupjs/server/utils/clientLogin'
10
11
  export { default as logout } from '@startupjs/server/utils/clientLogout'
11
- // dummy babel macro functions for @startupjs/babel-plugin-rn-stylename-inline.
12
- export function css (cssString) { return cssString }
13
- export function styl (stylString) { return stylString }
14
- // dummy pug function (it gets compiled to jsx by babel pug plugin)
15
- export function pug (pugString) { return pugString }
16
12
 
17
13
  // wrap serverOnly around the value to remove it from the client bundle
18
14
  // (it will be replaced with `undefined` on the client by the babel-plugin-eliminator)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "startupjs",
3
3
  "type": "module",
4
- "version": "0.59.0-canary.9",
4
+ "version": "0.60.0-canary.0",
5
5
  "engines": {
6
6
  "node": ">= 14"
7
7
  },
@@ -12,6 +12,7 @@
12
12
  "./server": "./server.js",
13
13
  "./schema": "./schema.js",
14
14
  "./startServer": "./startServer.js",
15
+ "./startWorker": "./startWorker.js",
15
16
  "./registry": "./registry.js",
16
17
  "./nodeRegister": "./nodeRegister.js",
17
18
  "./nconf": "./nconf.js",
@@ -27,26 +28,30 @@
27
28
  "bin": "./cli.js",
28
29
  "license": "MIT",
29
30
  "dependencies": {
30
- "@startupjs/babel-plugin-rn-stylename-to-style": "^0.59.0-canary.0",
31
- "@startupjs/bundler": "^0.59.0-canary.9",
32
- "@startupjs/cli": "^0.59.0-canary.3",
33
- "@startupjs/hooks": "^0.59.0-canary.0",
34
- "@startupjs/isomorphic-helpers": "^0.59.0-canary.0",
35
- "@startupjs/registry": "^0.59.0-canary.0",
36
- "@startupjs/server": "^0.59.0-canary.9",
37
- "@startupjs/utils": "^0.59.0-canary.0",
38
- "babel-preset-startupjs": "^0.59.0-canary.9",
31
+ "@startupjs/bundler": "^0.60.0-canary.0",
32
+ "@startupjs/cli": "^0.60.0-canary.0",
33
+ "@startupjs/hooks": "^0.60.0-canary.0",
34
+ "@startupjs/isomorphic-helpers": "^0.60.0-canary.0",
35
+ "@startupjs/registry": "^0.60.0-canary.0",
36
+ "@startupjs/server": "^0.60.0-canary.0",
37
+ "@startupjs/utils": "^0.60.0-canary.0",
38
+ "babel-preset-startupjs": "^0.60.0-canary.0",
39
+ "cssxjs": "^0.2.10",
39
40
  "lodash": "^4.17.20",
40
- "teamplay": "^0.3.24"
41
+ "teamplay": "^0.3.26"
41
42
  },
42
43
  "peerDependencies": {
44
+ "@startupjs/worker": "*",
43
45
  "react": "*",
44
46
  "react-native": "*"
45
47
  },
46
48
  "peerDependenciesMeta": {
49
+ "@startupjs/worker": {
50
+ "optional": true
51
+ },
47
52
  "react-native": {
48
53
  "optional": true
49
54
  }
50
55
  },
51
- "gitHead": "cdee72648548b574c838d13ff8cc3d6b0e0d429e"
56
+ "gitHead": "4c5baa750402d0beb02921a38413620b348bd374"
52
57
  }
@@ -1,7 +1,7 @@
1
1
  import { memo, Fragment, createElement as el, useCallback, useRef } from 'react'
2
2
  import { useWindowDimensions } from 'react-native'
3
- import dimensions from '@startupjs/babel-plugin-rn-stylename-to-style/dimensions'
4
3
  import { createPlugin } from '@startupjs/registry'
4
+ import { dimensions } from 'cssxjs'
5
5
  import debounce from 'lodash/debounce'
6
6
 
7
7
  const DEFAULT_UPDATE_DELAY = 200
package/startWorker.js ADDED
@@ -0,0 +1,2 @@
1
+ import startWorker from '@startupjs/worker'
2
+ await startWorker()