diff --git a/CHANGELOG.md b/CHANGELOG.md index 748b262..eeec371 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [2.6.3](https://github.com/searchfe/san-ssr-target-php/compare/v2.6.2...v2.6.3) (2021-02-05) + + +### Bug Fixes + +* initData 初始值为 Falsy 时会赋值成默认值 ([5f683d1](https://github.com/searchfe/san-ssr-target-php/commit/5f683d127b02edc7dada5f95115240ebd0a1360f)) + ## [2.6.2](https://github.com/searchfe/san-ssr-target-php/compare/v2.6.1...v2.6.2) (2021-02-03) diff --git a/docs/classes/_src_emitters_emitter_.phpemitter.html b/docs/classes/_src_emitters_emitter_.phpemitter.html index ba124f2..070c10d 100644 --- a/docs/classes/_src_emitters_emitter_.phpemitter.html +++ b/docs/classes/_src_emitters_emitter_.phpemitter.html @@ -152,7 +152,7 @@

constructor

@@ -200,7 +200,7 @@

helpersNamespace

helpersNamespace: string
@@ -215,7 +215,7 @@

Private referenceCompiler: ReferenceCompiler

@@ -225,7 +225,7 @@

Private stringifier

stringifier: Stringifier
@@ -242,7 +242,7 @@

Private beginNamespace

Parameters

@@ -283,7 +283,7 @@

Private createComponent

Parameters

@@ -337,7 +337,7 @@

Private endNamespace

  • Returns void

    @@ -456,7 +456,7 @@

    setReferenceCompiler

  • Parameters

    @@ -521,7 +521,7 @@

    Private writeArrayLit
  • Parameters

    @@ -544,7 +544,7 @@

    Private writeBinaryEx
  • Parameters

    @@ -567,7 +567,7 @@

    Private writeBlockSta
  • Parameters

    @@ -590,7 +590,7 @@

    Private writeExpression

    Parameters

    @@ -613,7 +613,7 @@

    Private writeForeachS
  • Parameters

    @@ -636,7 +636,7 @@

    Private writeFunction
  • Parameters

    @@ -734,7 +734,7 @@

    Private writeLiteral

  • @@ -762,7 +762,7 @@

    Private writeMapLiter
  • Parameters

    @@ -785,7 +785,7 @@

    writeNamespace

  • Parameters

    @@ -829,7 +829,7 @@

    Private writeObjSprea
  • Parameters

    @@ -852,7 +852,7 @@

    writeSyntaxNode

  • Parameters

    @@ -875,7 +875,7 @@

    Private writeUnaryExp
  • Parameters

    @@ -898,7 +898,7 @@

    Private writeVariable
  • Parameters

    diff --git a/docs/classes/_src_emitters_reference_compiler_.referencecompiler.html b/docs/classes/_src_emitters_reference_compiler_.referencecompiler.html index c5b54ee..d7cf993 100644 --- a/docs/classes/_src_emitters_reference_compiler_.referencecompiler.html +++ b/docs/classes/_src_emitters_reference_compiler_.referencecompiler.html @@ -116,7 +116,7 @@

    constructor

  • Parameters

    @@ -141,7 +141,7 @@

    Private currentFilePa
    currentFilePath: string
    @@ -151,7 +151,7 @@

    Private options

    @@ -168,7 +168,7 @@

    compileToFunctionFullName

  • Parameters

    @@ -191,7 +191,7 @@

    Private getNamespace

  • diff --git a/docs/classes/_src_emitters_stringifier_.stringifier.html b/docs/classes/_src_emitters_stringifier_.stringifier.html index 6adc4b6..a0cad74 100644 --- a/docs/classes/_src_emitters_stringifier_.stringifier.html +++ b/docs/classes/_src_emitters_stringifier_.stringifier.html @@ -119,7 +119,7 @@

    constructor

  • Parameters

    @@ -141,7 +141,7 @@

    Private helpers

    helpers: string = ""
    @@ -158,7 +158,7 @@

    any

  • Parameters

    @@ -181,7 +181,7 @@

    arr

  • Parameters

    @@ -204,7 +204,7 @@

    date

  • Parameters

    @@ -227,7 +227,7 @@

    number

  • Parameters

    @@ -250,7 +250,7 @@

    obj

  • Parameters

    @@ -273,7 +273,7 @@

    str

  • diff --git a/docs/classes/_src_emitters_ts2php_.phptranspiler.html b/docs/classes/_src_emitters_ts2php_.phptranspiler.html index 1680a98..d22ff52 100644 --- a/docs/classes/_src_emitters_ts2php_.phptranspiler.html +++ b/docs/classes/_src_emitters_ts2php_.phptranspiler.html @@ -114,7 +114,7 @@

    constructor

  • Parameters

    @@ -138,7 +138,7 @@

    Private ts2php

    ts2php: Ts2Php
    @@ -155,7 +155,7 @@

    compile

  • Parameters

    diff --git a/docs/classes/_src_index_.tophpcompiler.html b/docs/classes/_src_index_.tophpcompiler.html index 67c6a26..f1dc816 100644 --- a/docs/classes/_src_index_.tophpcompiler.html +++ b/docs/classes/_src_index_.tophpcompiler.html @@ -127,7 +127,7 @@

    constructor

  • Parameters

    @@ -149,7 +149,7 @@

    Private phpTranspiler

    phpTranspiler: PHPTranspiler
    @@ -159,7 +159,7 @@

    Private project

    project: SanProject
    @@ -169,7 +169,7 @@

    Private tsRoot

    tsRoot: string
    @@ -186,7 +186,7 @@

    compileToSource

  • Parameters

    @@ -212,7 +212,7 @@

    Private emitComponent

  • @@ -246,7 +246,7 @@

    Private emitRenderer

  • @@ -280,7 +280,7 @@

    Private normalizeCompiler<
  • @@ -309,7 +309,7 @@

    Static emitHelpers

  • @@ -352,7 +352,7 @@

    Static fromSanProject<
  • Parameters

    diff --git a/docs/interfaces/_src_compile_options_.compileoptions.html b/docs/interfaces/_src_compile_options_.compileoptions.html index a799cea..4231770 100644 --- a/docs/interfaces/_src_compile_options_.compileoptions.html +++ b/docs/interfaces/_src_compile_options_.compileoptions.html @@ -127,7 +127,7 @@

    Optional emitHeader

    emitHeader: undefined | false | true
    @@ -154,7 +154,7 @@

    Optional getModuleNa
    getModuleNamespace: undefined | ((moduleSpecifier: string) => string)
    @@ -171,7 +171,7 @@

    Optional importHelpers

    Overrides RenderOptions.importHelpers

    @@ -187,7 +187,7 @@

    Optional modules

    modules: Modules
    @@ -202,7 +202,7 @@

    Optional nsPrefix

    nsPrefix: undefined | string
    @@ -218,7 +218,7 @@

    Optional nsRootDirnsRootDir: undefined | string

    @@ -255,7 +255,7 @@

    Optional renderFunctionrenderFunctionName: undefined | string

    @@ -275,7 +275,7 @@

    Optional source

    source: undefined | string
    @@ -291,7 +291,7 @@

    Optional ssrOnly

    diff --git a/docs/interfaces/_src_compile_options_.normalizedcompileoptions.html b/docs/interfaces/_src_compile_options_.normalizedcompileoptions.html index 07be1c6..a14c25a 100644 --- a/docs/interfaces/_src_compile_options_.normalizedcompileoptions.html +++ b/docs/interfaces/_src_compile_options_.normalizedcompileoptions.html @@ -136,7 +136,7 @@

    emitHeader

    @@ -158,7 +158,7 @@

    getModuleNamespace

    @@ -189,7 +189,7 @@

    helpersNS

    helpersNS: string
    @@ -201,7 +201,7 @@

    Optional importHelpersInherited from CompileOptions.importHelpers

    Overrides RenderOptions.importHelpers

    @@ -218,7 +218,7 @@

    modules

    @@ -229,7 +229,7 @@

    nsPrefix

    @@ -240,7 +240,7 @@

    nsRootDir

    @@ -267,7 +267,7 @@

    renderFunctionName

    @@ -278,7 +278,7 @@

    Optional source

    @@ -294,7 +294,7 @@

    ssrOnly

    @@ -304,7 +304,7 @@

    stringifier

    stringifier: Stringifier
    diff --git a/docs/modules/_src_compile_options_.html b/docs/modules/_src_compile_options_.html index 9406e85..ae0637c 100644 --- a/docs/modules/_src_compile_options_.html +++ b/docs/modules/_src_compile_options_.html @@ -100,7 +100,7 @@

    Const defaultHelpersNS

    defaultHelpersNS: "san\helpers" = "san\helpers"
    @@ -125,7 +125,7 @@

    normalizeCompileOptions

  • Parameters

    @@ -163,7 +163,7 @@
    getModuleNamespace: func
  • Returns string

    diff --git a/docs/modules/_src_emitters_emitter_.html b/docs/modules/_src_emitters_emitter_.html index e18aad2..c6e798a 100644 --- a/docs/modules/_src_emitters_emitter_.html +++ b/docs/modules/_src_emitters_emitter_.html @@ -97,7 +97,7 @@

    isTypedComponentInfo

  • Parameters

    diff --git a/docs/modules/_src_emitters_helpers_.html b/docs/modules/_src_emitters_helpers_.html index 2b86a8b..126a437 100644 --- a/docs/modules/_src_emitters_helpers_.html +++ b/docs/modules/_src_emitters_helpers_.html @@ -93,7 +93,7 @@

    Const runtimeFiles

    runtimeFiles: string[] = [resolve(__dirname, '../../runtime/underscore.php'),resolve(__dirname, '../../runtime/san.php'),resolve(require.resolve('ts2php'), '../runtime/Ts2Php_Helper.php')]
    @@ -110,7 +110,7 @@

    emitHelpers

  • Parameters

    diff --git a/docs/modules/_src_emitters_ts2php_.html b/docs/modules/_src_emitters_ts2php_.html index 2049af0..5aed104 100644 --- a/docs/modules/_src_emitters_ts2php_.html +++ b/docs/modules/_src_emitters_ts2php_.html @@ -105,7 +105,7 @@

    ModuleInfo

    ModuleInfo: { name: string; namespace?: undefined | string; path?: undefined | string; required?: undefined | false | true; used?: undefined | false | true }
    @@ -138,7 +138,7 @@

    Const debug

    debug: Debugger = debugFactory('san-ssr:ts2php')
    diff --git a/docs/modules/_src_index_.html b/docs/modules/_src_index_.html index 6c0f2f4..3e02b31 100644 --- a/docs/modules/_src_index_.html +++ b/docs/modules/_src_index_.html @@ -93,7 +93,7 @@

    Const debug

    debug: Debugger = debugFactory('san-ssr:target-php')
    diff --git a/docs/modules/_src_transformers_index_.html b/docs/modules/_src_transformers_index_.html index bc1bce9..25a482b 100644 --- a/docs/modules/_src_transformers_index_.html +++ b/docs/modules/_src_transformers_index_.html @@ -93,7 +93,7 @@

    Const uselessComponentP
    uselessComponentProps: string[] = ['components']
    @@ -110,7 +110,7 @@

    transformToFavorPHP

  • Parameters

    diff --git a/docs/modules/_src_transformers_refactor_member_initializer_.html b/docs/modules/_src_transformers_refactor_member_initializer_.html index c538216..4382dbe 100644 --- a/docs/modules/_src_transformers_refactor_member_initializer_.html +++ b/docs/modules/_src_transformers_refactor_member_initializer_.html @@ -92,7 +92,7 @@

    isConstant

  • Parameters

    @@ -115,7 +115,7 @@

    refactorMemberInitializer

  • Parameters

    diff --git a/docs/modules/_src_transformers_refactor_method_collection_.html b/docs/modules/_src_transformers_refactor_method_collection_.html index 8c19fc4..b4f5a12 100644 --- a/docs/modules/_src_transformers_refactor_method_collection_.html +++ b/docs/modules/_src_transformers_refactor_method_collection_.html @@ -91,7 +91,7 @@

    refactorMethodCollection

  • Parameters

    diff --git a/docs/modules/_src_transformers_refactor_reserved_names_.html b/docs/modules/_src_transformers_refactor_reserved_names_.html index ae68351..3044804 100644 --- a/docs/modules/_src_transformers_refactor_reserved_names_.html +++ b/docs/modules/_src_transformers_refactor_reserved_names_.html @@ -92,7 +92,7 @@

    getRefactoredName

  • @@ -120,7 +120,7 @@

    refactorReservedNames

  • diff --git a/docs/modules/_src_transformers_replace_san_module_.html b/docs/modules/_src_transformers_replace_san_module_.html index 4ba070a..0510694 100644 --- a/docs/modules/_src_transformers_replace_san_module_.html +++ b/docs/modules/_src_transformers_replace_san_module_.html @@ -91,7 +91,7 @@

    replaceSanModule

  • diff --git a/docs/modules/_src_utils_case_.html b/docs/modules/_src_utils_case_.html index 32aeeb7..df777d2 100644 --- a/docs/modules/_src_utils_case_.html +++ b/docs/modules/_src_utils_case_.html @@ -101,7 +101,7 @@

    Const caseRoot

    caseRoot: string = resolve(__dirname, '../../node_modules/san-html-cases/src')
    @@ -111,7 +111,7 @@

    Const debug

    debug: Debugger = debugFactory('case')
    @@ -121,7 +121,7 @@

    Const nsPrefix

    nsPrefix: "san\" = "san\"
    @@ -131,7 +131,7 @@

    Const sanProject

    sanProject: SanProject = new SanProject(tsConfigFilePath)
    @@ -141,7 +141,7 @@

    Const tsConfigFile
    tsConfigFilePath: string = resolve(__dirname, '../../test/tsconfig.json')
    @@ -158,7 +158,7 @@

    compile

  • Parameters

    @@ -181,7 +181,7 @@

    compileComponentFile

  • Parameters

    @@ -204,7 +204,7 @@

    filterSanPHPFiles

  • Parameters

    @@ -227,7 +227,7 @@

    isSourceFile

  • Parameters

    @@ -250,7 +250,7 @@

    removeCorrespondingJS

  • Parameters

    diff --git a/docs/modules/_src_utils_fs_.html b/docs/modules/_src_utils_fs_.html index 275df60..3d7d61f 100644 --- a/docs/modules/_src_utils_fs_.html +++ b/docs/modules/_src_utils_fs_.html @@ -91,7 +91,7 @@

    readPHPSource

  • Parameters

    diff --git a/docs/modules/_src_utils_lang_.html b/docs/modules/_src_utils_lang_.html index cb0a088..39623c7 100644 --- a/docs/modules/_src_utils_lang_.html +++ b/docs/modules/_src_utils_lang_.html @@ -98,7 +98,7 @@

    Const rKeyword

    rKeyword: RegExp = /\b((a(bstract|nd|rray|s))|(c(a(llable|se|tch)|l(ass|one)|on(st|tinue)))|(d(e(clare|fault)|ie|o))|(e(cho|lse(if)?|mpty|nd(declare|for(each)?|if|switch|while)|val|x(it|tends)))|(f(inal|or(each)?|unction))|(g(lobal|oto))|(i(f|mplements|n(clude(_once)?|st(anceof|eadof)|terface)|sset))|(n(amespace|ew))|(p(r(i(nt|vate)|otected)|ublic))|(re(quire(_once)?|turn))|(s(tatic|witch))|(t(hrow|r(ait|y)))|(u(nset|se))|(__halt_compiler|break|list|(x)?or|var|while))\b/i
    @@ -114,7 +114,7 @@

    Const rLabelContent

    rLabelContent: RegExp = /[a-zA-Z0-9_\x80-\xff]/
    @@ -124,7 +124,7 @@

    Const rLabelStart

    rLabelStart: RegExp = /[a-zA-Z_\x80-\xff]/
    @@ -147,7 +147,7 @@

    getNamespace

  • Parameters

    @@ -176,7 +176,7 @@

    isReservedInPHP

  • @@ -204,7 +204,7 @@

    normalizeNamespaceSlug

  • Parameters

    @@ -227,7 +227,7 @@

    resolveFrom

  • Parameters

    diff --git a/package.json b/package.json index 574a1cf..0ec8748 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "san-ssr-target-php", - "version": "2.6.2", + "version": "2.6.3", "description": "San SSR code generation targiting PHP", "main": "dist/index.js", "types": "index.d.ts",