release: WRNexusJS 0.2.41
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/ai",
|
"name": "@wrnexus/ai",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Zero-dependency Claude (Anthropic) client for WrNexus apps.",
|
"description": "Zero-dependency Claude (Anthropic) client for WrNexus apps.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/authz",
|
"name": "@wrnexus/authz",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/authz — part of the WrNexus framework.",
|
"description": "@wrnexus/authz — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
+11
-11
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/cli",
|
"name": "@wrnexus/cli",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/cli — part of the WrNexus framework.",
|
"description": "@wrnexus/cli — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -28,16 +28,16 @@
|
|||||||
"wrnexus": "./dist/index.js"
|
"wrnexus": "./dist/index.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/core": "^0.2.40",
|
"@wrnexus/core": "^0.2.41",
|
||||||
"@wrnexus/router": "^0.2.40",
|
"@wrnexus/router": "^0.2.41",
|
||||||
"@wrnexus/csr": "^0.2.40",
|
"@wrnexus/csr": "^0.2.41",
|
||||||
"@wrnexus/compiler": "^0.2.40",
|
"@wrnexus/compiler": "^0.2.41",
|
||||||
"@wrnexus/styles": "^0.2.40",
|
"@wrnexus/styles": "^0.2.41",
|
||||||
"@wrnexus/dev-server": "^0.2.40",
|
"@wrnexus/dev-server": "^0.2.41",
|
||||||
"@wrnexus/ui": "^0.2.40",
|
"@wrnexus/ui": "^0.2.41",
|
||||||
"@wrnexus/validation": "^0.2.40",
|
"@wrnexus/validation": "^0.2.41",
|
||||||
"@wrnexus/i18n": "^0.2.40",
|
"@wrnexus/i18n": "^0.2.41",
|
||||||
"@wrnexus/db": "^0.2.40"
|
"@wrnexus/db": "^0.2.41"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/compiler",
|
"name": "@wrnexus/compiler",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/compiler — part of the WrNexus framework.",
|
"description": "@wrnexus/compiler — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/core",
|
"name": "@wrnexus/core",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/core — part of the WrNexus framework.",
|
"description": "@wrnexus/core — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/csr",
|
"name": "@wrnexus/csr",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/csr — part of the WrNexus framework.",
|
"description": "@wrnexus/csr — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/core": "^0.2.40"
|
"@wrnexus/core": "^0.2.41"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/db",
|
"name": "@wrnexus/db",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/db — part of the WrNexus framework.",
|
"description": "@wrnexus/db — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/dev-server",
|
"name": "@wrnexus/dev-server",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/dev-server — part of the WrNexus framework.",
|
"description": "@wrnexus/dev-server — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -25,18 +25,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/core": "^0.2.40",
|
"@wrnexus/core": "^0.2.41",
|
||||||
"@wrnexus/router": "^0.2.40",
|
"@wrnexus/router": "^0.2.41",
|
||||||
"@wrnexus/ssr": "^0.2.40",
|
"@wrnexus/ssr": "^0.2.41",
|
||||||
"@wrnexus/csr": "^0.2.40",
|
"@wrnexus/csr": "^0.2.41",
|
||||||
"@wrnexus/compiler": "^0.2.40",
|
"@wrnexus/compiler": "^0.2.41",
|
||||||
"@wrnexus/styles": "^0.2.40",
|
"@wrnexus/styles": "^0.2.41",
|
||||||
"@wrnexus/ui": "^0.2.40",
|
"@wrnexus/ui": "^0.2.41",
|
||||||
"@wrnexus/validation": "^0.2.40",
|
"@wrnexus/validation": "^0.2.41",
|
||||||
"@wrnexus/i18n": "^0.2.40",
|
"@wrnexus/i18n": "^0.2.41",
|
||||||
"@wrnexus/db": "^0.2.40",
|
"@wrnexus/db": "^0.2.41",
|
||||||
"@wrnexus/pubsub": "^0.2.40",
|
"@wrnexus/pubsub": "^0.2.41",
|
||||||
"@wrnexus/uploader": "^0.2.40"
|
"@wrnexus/uploader": "^0.2.41"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/encryption",
|
"name": "@wrnexus/encryption",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/encryption — part of the WrNexus framework.",
|
"description": "@wrnexus/encryption — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/helpers",
|
"name": "@wrnexus/helpers",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Safe convenience helpers for WrNexus request contexts and common application flows.",
|
"description": "Safe convenience helpers for WrNexus request contexts and common application flows.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/core": "^0.2.40"
|
"@wrnexus/core": "^0.2.41"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/i18n",
|
"name": "@wrnexus/i18n",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/i18n — part of the WrNexus framework.",
|
"description": "@wrnexus/i18n — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/core": "^0.2.40"
|
"@wrnexus/core": "^0.2.41"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/jwt",
|
"name": "@wrnexus/jwt",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/jwt — part of the WrNexus framework.",
|
"description": "@wrnexus/jwt — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/mobile",
|
"name": "@wrnexus/mobile",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/mobile — part of the WrNexus framework.",
|
"description": "@wrnexus/mobile — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/native": "^0.2.40"
|
"@wrnexus/native": "^0.2.41"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/native",
|
"name": "@wrnexus/native",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/native — part of the WrNexus framework.",
|
"description": "@wrnexus/native — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/oauth",
|
"name": "@wrnexus/oauth",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/oauth — part of the WrNexus framework.",
|
"description": "@wrnexus/oauth — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/pubsub",
|
"name": "@wrnexus/pubsub",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/pubsub — part of the WrNexus framework.",
|
"description": "@wrnexus/pubsub — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/queue",
|
"name": "@wrnexus/queue",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/queue — part of the WrNexus framework.",
|
"description": "@wrnexus/queue — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/reactive",
|
"name": "@wrnexus/reactive",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/reactive — part of the WrNexus framework.",
|
"description": "@wrnexus/reactive — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/router",
|
"name": "@wrnexus/router",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/router — part of the WrNexus framework.",
|
"description": "@wrnexus/router — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -21,8 +21,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/compiler": "^0.2.40",
|
"@wrnexus/compiler": "^0.2.41",
|
||||||
"@wrnexus/core": "^0.2.40"
|
"@wrnexus/core": "^0.2.41"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/ssr",
|
"name": "@wrnexus/ssr",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/ssr — part of the WrNexus framework.",
|
"description": "@wrnexus/ssr — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/core": "^0.2.40"
|
"@wrnexus/core": "^0.2.41"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/styles",
|
"name": "@wrnexus/styles",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/styles — part of the WrNexus framework.",
|
"description": "@wrnexus/styles — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/uploader": "^0.2.40"
|
"@wrnexus/uploader": "^0.2.41"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/test",
|
"name": "@wrnexus/test",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/test — part of the WrNexus framework.",
|
"description": "@wrnexus/test — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/tracking",
|
"name": "@wrnexus/tracking",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/tracking — part of the WrNexus framework.",
|
"description": "@wrnexus/tracking — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/ui",
|
"name": "@wrnexus/ui",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/ui — part of the WrNexus framework.",
|
"description": "@wrnexus/ui — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"./ui.css": "./ui.css"
|
"./ui.css": "./ui.css"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/core": "^0.2.40"
|
"@wrnexus/core": "^0.2.41"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/uploader",
|
"name": "@wrnexus/uploader",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/uploader — part of the WrNexus framework.",
|
"description": "@wrnexus/uploader — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/core": "^0.2.40"
|
"@wrnexus/core": "^0.2.41"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/validation",
|
"name": "@wrnexus/validation",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "@wrnexus/validation — part of the WrNexus framework.",
|
"description": "@wrnexus/validation — part of the WrNexus framework.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/ai",
|
"name": "@wrnexus/ai",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Zero-dependency Claude (Anthropic) client for WrNexus apps.",
|
"description": "Zero-dependency Claude (Anthropic) client for WrNexus apps.",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/authz",
|
"name": "@wrnexus/authz",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/cli",
|
"name": "@wrnexus/cli",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -438,6 +438,15 @@ const MIGRATIONS: Migration[] = [
|
|||||||
// No generated application files require automatic migration.
|
// No generated application files require automatic migration.
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
version: "0.2.41",
|
||||||
|
id: "conditions-bug",
|
||||||
|
description:
|
||||||
|
"Adds server-rendered component each/if blocks and fixes dynamic component rendering.",
|
||||||
|
apply() {
|
||||||
|
// No generated application files require automatic migration.
|
||||||
|
},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
/** Release tooling uses this to require an explicit migration entry per version. */
|
/** Release tooling uses this to require an explicit migration entry per version. */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/compiler",
|
"name": "@wrnexus/compiler",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/core",
|
"name": "@wrnexus/core",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/csr",
|
"name": "@wrnexus/csr",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -816,10 +816,22 @@ export const REACTIVE_RUNTIME = String.raw`
|
|||||||
expression || "",
|
expression || "",
|
||||||
).trim();
|
).trim();
|
||||||
|
|
||||||
|
// Remove an optional trailing semicolon.
|
||||||
|
if (
|
||||||
|
source.charAt(
|
||||||
|
source.length - 1,
|
||||||
|
) === ";"
|
||||||
|
) {
|
||||||
|
source = source
|
||||||
|
.slice(0, -1)
|
||||||
|
.trim();
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Array spread:
|
* Array literals containing spreads:
|
||||||
*
|
*
|
||||||
* [...openIndexes, index]
|
* [...openIndexes, index]
|
||||||
|
* [first, ...otherItems]
|
||||||
*/
|
*/
|
||||||
if (
|
if (
|
||||||
source.charAt(0) === "[" &&
|
source.charAt(0) === "[" &&
|
||||||
@@ -828,42 +840,57 @@ export const REACTIVE_RUNTIME = String.raw`
|
|||||||
) === "]" &&
|
) === "]" &&
|
||||||
source.indexOf("...") !== -1
|
source.indexOf("...") !== -1
|
||||||
) {
|
) {
|
||||||
var inner = source.slice(1, -1);
|
var arraySource = source.slice(
|
||||||
|
1,
|
||||||
|
-1,
|
||||||
|
);
|
||||||
|
|
||||||
var parts = splitTopLevel(
|
var arrayParts = splitTopLevel(
|
||||||
inner,
|
arraySource,
|
||||||
",",
|
",",
|
||||||
);
|
);
|
||||||
|
|
||||||
var values = [];
|
var arrayResult = [];
|
||||||
|
|
||||||
parts.forEach(function (part) {
|
arrayParts.forEach(function (
|
||||||
var item = part.trim();
|
part,
|
||||||
|
) {
|
||||||
|
var partSource =
|
||||||
|
part.trim();
|
||||||
|
|
||||||
|
if (!partSource) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
item.slice(0, 3) === "..."
|
partSource.slice(0, 3) ===
|
||||||
|
"..."
|
||||||
) {
|
) {
|
||||||
var spreadValue =
|
var spreadResult =
|
||||||
evaluateExpression(
|
evaluateExpression(
|
||||||
item.slice(3),
|
partSource
|
||||||
|
.slice(3)
|
||||||
|
.trim(),
|
||||||
read,
|
read,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
Array.isArray(spreadValue)
|
Array.isArray(
|
||||||
|
spreadResult,
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
Array.prototype.push.apply(
|
Array.prototype.push.apply(
|
||||||
values,
|
arrayResult,
|
||||||
spreadValue,
|
spreadResult,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
values.push(
|
arrayResult.push(
|
||||||
evaluateExpression(
|
evaluateExpression(
|
||||||
item,
|
partSource,
|
||||||
read,
|
read,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@@ -871,98 +898,151 @@ export const REACTIVE_RUNTIME = String.raw`
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
matched: true,
|
matched: true,
|
||||||
value: values,
|
value: arrayResult,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Array methods with expression callbacks:
|
* First recognize the array method call without
|
||||||
*
|
* trying to parse the callback in the same regex.
|
||||||
* list.filter((item) => item !== value)
|
|
||||||
* list.map((item, index) => item.title)
|
|
||||||
*/
|
*/
|
||||||
var callbackMatch =
|
var methodMatch =
|
||||||
/^([\s\S]+)\.(filter|map|some|every|find|findIndex)\(\s*(?:\(\s*([A-Za-z_$][A-Za-z0-9_$]*)\s*(?:,\s*([A-Za-z_$][A-Za-z0-9_$]*))?\s*\)|([A-Za-z_$][A-Za-z0-9_$]*))\s*=>\s*([\s\S]+)\)$/.exec(
|
/^([\s\S]+)\.(filter|map|some|every|find|findIndex)\(\s*([\s\S]*)\s*\)$/.exec(
|
||||||
source,
|
source,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (callbackMatch) {
|
if (!methodMatch) {
|
||||||
var collection =
|
|
||||||
evaluateExpression(
|
|
||||||
callbackMatch[1].trim(),
|
|
||||||
read,
|
|
||||||
);
|
|
||||||
|
|
||||||
var method = callbackMatch[2];
|
|
||||||
|
|
||||||
var itemName =
|
|
||||||
callbackMatch[3] ||
|
|
||||||
callbackMatch[5];
|
|
||||||
|
|
||||||
var indexName =
|
|
||||||
callbackMatch[4];
|
|
||||||
|
|
||||||
var callbackBody =
|
|
||||||
callbackMatch[6].trim();
|
|
||||||
|
|
||||||
if (!Array.isArray(collection)) {
|
|
||||||
collection = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
var callback = function (
|
|
||||||
itemValue,
|
|
||||||
itemIndex,
|
|
||||||
) {
|
|
||||||
return evaluateExpression(
|
|
||||||
callbackBody,
|
|
||||||
function (name) {
|
|
||||||
if (name === itemName) {
|
|
||||||
return itemValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (
|
|
||||||
indexName &&
|
|
||||||
name === indexName
|
|
||||||
) {
|
|
||||||
return itemIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
return read(name);
|
|
||||||
},
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
var result;
|
|
||||||
|
|
||||||
if (method === "filter") {
|
|
||||||
result =
|
|
||||||
collection.filter(callback);
|
|
||||||
} else if (method === "map") {
|
|
||||||
result =
|
|
||||||
collection.map(callback);
|
|
||||||
} else if (method === "some") {
|
|
||||||
result =
|
|
||||||
collection.some(callback);
|
|
||||||
} else if (method === "every") {
|
|
||||||
result =
|
|
||||||
collection.every(callback);
|
|
||||||
} else if (method === "find") {
|
|
||||||
result =
|
|
||||||
collection.find(callback);
|
|
||||||
} else {
|
|
||||||
result =
|
|
||||||
collection.findIndex(callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
matched: true,
|
matched: false,
|
||||||
value: result,
|
value: undefined,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var collectionSource =
|
||||||
|
methodMatch[1].trim();
|
||||||
|
|
||||||
|
var method =
|
||||||
|
methodMatch[2];
|
||||||
|
|
||||||
|
var callbackSource =
|
||||||
|
methodMatch[3].trim();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Supported callbacks:
|
||||||
|
*
|
||||||
|
* item => item.active
|
||||||
|
* (item) => item.active
|
||||||
|
* (item, index) => index > 0
|
||||||
|
*/
|
||||||
|
var callbackMatch =
|
||||||
|
/^(?:\(\s*([A-Za-z_$][A-Za-z0-9_$]*)\s*(?:,\s*([A-Za-z_$][A-Za-z0-9_$]*)\s*)?\)|([A-Za-z_$][A-Za-z0-9_$]*))\s*=>\s*([\s\S]+)$/.exec(
|
||||||
|
callbackSource,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!callbackMatch) {
|
||||||
|
return {
|
||||||
|
matched: false,
|
||||||
|
value: undefined,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
var itemName =
|
||||||
|
callbackMatch[1] ||
|
||||||
|
callbackMatch[3];
|
||||||
|
|
||||||
|
var indexName =
|
||||||
|
callbackMatch[2];
|
||||||
|
|
||||||
|
var callbackBody =
|
||||||
|
callbackMatch[4].trim();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Support expression bodies wrapped in parentheses:
|
||||||
|
*
|
||||||
|
* item => (
|
||||||
|
* item.active
|
||||||
|
* )
|
||||||
|
*/
|
||||||
|
if (
|
||||||
|
callbackBody.charAt(0) ===
|
||||||
|
"(" &&
|
||||||
|
callbackBody.charAt(
|
||||||
|
callbackBody.length - 1,
|
||||||
|
) === ")"
|
||||||
|
) {
|
||||||
|
callbackBody = callbackBody
|
||||||
|
.slice(1, -1)
|
||||||
|
.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
var collection =
|
||||||
|
evaluateExpression(
|
||||||
|
collectionSource,
|
||||||
|
read,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!Array.isArray(collection)) {
|
||||||
|
collection = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
var callback = function (
|
||||||
|
itemValue,
|
||||||
|
itemIndex,
|
||||||
|
) {
|
||||||
|
return evaluateExpression(
|
||||||
|
callbackBody,
|
||||||
|
function (name) {
|
||||||
|
if (name === itemName) {
|
||||||
|
return itemValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
indexName &&
|
||||||
|
name === indexName
|
||||||
|
) {
|
||||||
|
return itemIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
return read(name);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
var result;
|
||||||
|
|
||||||
|
if (method === "filter") {
|
||||||
|
result =
|
||||||
|
collection.filter(callback);
|
||||||
|
} else if (
|
||||||
|
method === "map"
|
||||||
|
) {
|
||||||
|
result =
|
||||||
|
collection.map(callback);
|
||||||
|
} else if (
|
||||||
|
method === "some"
|
||||||
|
) {
|
||||||
|
result =
|
||||||
|
collection.some(callback);
|
||||||
|
} else if (
|
||||||
|
method === "every"
|
||||||
|
) {
|
||||||
|
result =
|
||||||
|
collection.every(callback);
|
||||||
|
} else if (
|
||||||
|
method === "find"
|
||||||
|
) {
|
||||||
|
result =
|
||||||
|
collection.find(callback);
|
||||||
|
} else {
|
||||||
|
result =
|
||||||
|
collection.findIndex(
|
||||||
|
callback,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
matched: false,
|
matched: true,
|
||||||
value: undefined,
|
value: result,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -974,7 +1054,9 @@ export const REACTIVE_RUNTIME = String.raw`
|
|||||||
expr,
|
expr,
|
||||||
read,
|
read,
|
||||||
) {
|
) {
|
||||||
expr = String(expr || "").trim();
|
expr = String(
|
||||||
|
expr || "",
|
||||||
|
).trim();
|
||||||
|
|
||||||
var special =
|
var special =
|
||||||
evaluateSpecialExpression(
|
evaluateSpecialExpression(
|
||||||
@@ -988,6 +1070,7 @@ export const REACTIVE_RUNTIME = String.raw`
|
|||||||
|
|
||||||
var tokens =
|
var tokens =
|
||||||
tokenizeExpression(expr);
|
tokenizeExpression(expr);
|
||||||
|
|
||||||
var index = 0;
|
var index = 0;
|
||||||
function peek() { return tokens[index]; }
|
function peek() { return tokens[index]; }
|
||||||
function next() { return tokens[index++]; }
|
function next() { return tokens[index++]; }
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/db",
|
"name": "@wrnexus/db",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/dev-server",
|
"name": "@wrnexus/dev-server",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/encryption",
|
"name": "@wrnexus/encryption",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/helpers",
|
"name": "@wrnexus/helpers",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Safe convenience helpers for WrNexus request contexts and common application flows.",
|
"description": "Safe convenience helpers for WrNexus request contexts and common application flows.",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/i18n",
|
"name": "@wrnexus/i18n",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/jwt",
|
"name": "@wrnexus/jwt",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/mobile",
|
"name": "@wrnexus/mobile",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/native",
|
"name": "@wrnexus/native",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/oauth",
|
"name": "@wrnexus/oauth",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/pubsub",
|
"name": "@wrnexus/pubsub",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/queue",
|
"name": "@wrnexus/queue",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/reactive",
|
"name": "@wrnexus/reactive",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/router",
|
"name": "@wrnexus/router",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/ssr",
|
"name": "@wrnexus/ssr",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/styles",
|
"name": "@wrnexus/styles",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/test",
|
"name": "@wrnexus/test",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/tracking",
|
"name": "@wrnexus/tracking",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/ui",
|
"name": "@wrnexus/ui",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/uploader",
|
"name": "@wrnexus/uploader",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/validation",
|
"name": "@wrnexus/validation",
|
||||||
"version": "0.2.40",
|
"version": "0.2.41",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { existsSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
|
import { existsSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
|
||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
|
|
||||||
const version = "0.2.40";
|
const version = "0.2.41";
|
||||||
|
|
||||||
const dependencyGroups = [
|
const dependencyGroups = [
|
||||||
"dependencies",
|
"dependencies",
|
||||||
|
|||||||
Reference in New Issue
Block a user