Make WordPress Core

Changeset 43955


Ignore:
Timestamp:
11/30/2018 08:57:02 PM (6 years ago)
Author:
youknowriad
Message:

Block Editor: Update @wordpress package dependencies.

Updated packages

  • @wordpress/block-library@2.2.9
  • @wordpress/block-serialization-default-parser@2.0.1
  • @wordpress/block-serialization-spec-parser@2.0.1
  • @wordpress/blocks@6.0.3
  • @wordpress/edit-post@3.1.4
  • @wordpress/editor@9.0.4
  • @wordpress/format-library@1.2.7

Other changes:

  • Backport the parser changes.

Fixes #45145.

Location:
branches/5.0
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/package-lock.json

    r43949 r43955  
    281281        },
    282282        "@wordpress/block-library": {
    283             "version": "2.2.8",
    284             "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.8.tgz",
    285             "integrity": "sha512-86DiBPFQwGDWf/s4OwmTp2q+VoeNhmW1OQXu/on+c5MHgJh7W2uFasO4bhmz31+U9KwAFHQr3pCcxaasdP17vQ==",
     283            "version": "2.2.9",
     284            "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.9.tgz",
     285            "integrity": "sha512-Do/3f1S6uPOywSSiCyeLW6//DEIy7cAyBIdtxcl1CssfpwCPiDbXq5OpyRf94FKV4J1C0qwJfF604IdcsCmsjw==",
    286286            "requires": {
    287287                "@babel/runtime": "^7.0.0",
    288288                "@wordpress/autop": "^2.0.2",
    289289                "@wordpress/blob": "^2.1.0",
    290                 "@wordpress/blocks": "^6.0.2",
     290                "@wordpress/blocks": "^6.0.3",
    291291                "@wordpress/components": "^7.0.3",
    292292                "@wordpress/compose": "^3.0.0",
     
    294294                "@wordpress/data": "^4.0.1",
    295295                "@wordpress/deprecated": "^2.0.3",
    296                 "@wordpress/editor": "^9.0.3",
     296                "@wordpress/editor": "^9.0.4",
    297297                "@wordpress/element": "^2.1.8",
    298298                "@wordpress/html-entities": "^2.0.3",
     
    310310        },
    311311        "@wordpress/block-serialization-default-parser": {
    312             "version": "2.0.0",
    313             "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-2.0.0.tgz",
    314             "integrity": "sha512-WPQuQ2IsUOG9wMTst8CYW8c5NMM3iatTW2FinfZrHtH9R1g9qdQPt5Wv56U7eMeDACVOj35jG2oJtZCRaDyL7A==",
     312            "version": "2.0.1",
     313            "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-2.0.1.tgz",
     314            "integrity": "sha512-Wd4yC9NgakDv39bPskA56GSGprZ5kXuhDff3hLR2HpOYS2TPHgT06UsfVfO1tJBOxrqcS/AHVj7FEFZqyyKPNg==",
    315315            "requires": {
    316316                "@babel/runtime": "^7.0.0"
     
    318318        },
    319319        "@wordpress/block-serialization-spec-parser": {
    320             "version": "2.0.0",
    321             "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-spec-parser/-/block-serialization-spec-parser-2.0.0.tgz",
    322             "integrity": "sha512-l5N0o2Tkc4IcDhhMfX2W3KuEV/4F7TeitJEDtBpLYf7eRMIn3Uh6l5rPDmmuTDv7UFlMWTiA8z/oCpl13ZyBOw=="
     320            "version": "2.0.1",
     321            "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-spec-parser/-/block-serialization-spec-parser-2.0.1.tgz",
     322            "integrity": "sha512-9bhi2/hThAH8MbFAalI3UMZiKmUih8Az5ZFRzZy9E+EO4BYW479DFU5l/jSelDh3fPhsPza9UZ0so3IrqqoCzg=="
    323323        },
    324324        "@wordpress/blocks": {
    325             "version": "6.0.2",
    326             "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.2.tgz",
    327             "integrity": "sha512-Y9cIbxXnATT6NPBbT969awm/5iLL/fRYoQ2a0xoqqHdcI8kxPbMv2TdAE8RaM8eeYL17t6CmWdfP+jkAIVGMGg==",
     325            "version": "6.0.3",
     326            "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-6.0.3.tgz",
     327            "integrity": "sha512-jBk9xa87b9xgizVXBBnCYMDju0Q871JyeSCwJyUvd77flrym7BjfNIIWVnwOlLxUYc6BeHxZCAi+JzybHLlvFA==",
    328328            "requires": {
    329329                "@babel/runtime": "^7.0.0",
    330330                "@wordpress/autop": "^2.0.2",
    331331                "@wordpress/blob": "^2.1.0",
    332                 "@wordpress/block-serialization-default-parser": "^2.0.0",
    333                 "@wordpress/block-serialization-spec-parser": "^2.0.0",
     332                "@wordpress/block-serialization-default-parser": "^2.0.1",
     333                "@wordpress/block-serialization-spec-parser": "^2.0.1",
    334334                "@wordpress/data": "^4.0.1",
    335335                "@wordpress/dom": "^2.0.7",
     
    471471        },
    472472        "@wordpress/edit-post": {
    473             "version": "3.1.3",
    474             "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.3.tgz",
    475             "integrity": "sha512-bA9OIkzInCLvf2YB4b6H0Ubghmv+AjOrCpZcp/5sdWLAg7hE6ZzZZ5Pz/2o5bBd+mTkalALJFMxgy7DKvH3WgQ==",
     473            "version": "3.1.4",
     474            "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.1.4.tgz",
     475            "integrity": "sha512-xZZ1x+JfMLTgCZkkdaJeYdsdEVQ+MkbRtweSdqfm4p4zdyId8wTg/n/ccqAAhFnQjoTufEkkchzRmmnoHozrcg==",
    476476            "requires": {
    477477                "@babel/runtime": "^7.0.0",
    478478                "@wordpress/a11y": "^2.0.2",
    479479                "@wordpress/api-fetch": "^2.2.5",
    480                 "@wordpress/block-library": "^2.2.8",
    481                 "@wordpress/blocks": "^6.0.2",
     480                "@wordpress/block-library": "^2.2.9",
     481                "@wordpress/blocks": "^6.0.3",
    482482                "@wordpress/components": "^7.0.3",
    483483                "@wordpress/compose": "^3.0.0",
    484484                "@wordpress/core-data": "^2.0.14",
    485485                "@wordpress/data": "^4.0.1",
    486                 "@wordpress/editor": "^9.0.3",
     486                "@wordpress/editor": "^9.0.4",
    487487                "@wordpress/element": "^2.1.8",
    488                 "@wordpress/format-library": "^1.2.6",
     488                "@wordpress/format-library": "^1.2.7",
    489489                "@wordpress/hooks": "^2.0.3",
    490490                "@wordpress/i18n": "^3.1.0",
     
    500500        },
    501501        "@wordpress/editor": {
    502             "version": "9.0.3",
    503             "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.3.tgz",
    504             "integrity": "sha512-Iz2B2JccsluiV0CdIkeH7sdl+3JcM7u9OqQSRC+0G2gfq8c09c98BE9myRUN16EVvL6zf025DzRU3hSx9r3AbQ==",
     502            "version": "9.0.4",
     503            "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.0.4.tgz",
     504            "integrity": "sha512-adLq0C0DZFz5R1TNzqRttmcEHXz9Nv4VIBxyqFQbubfMAzq6LKv44YxNw0t9Pg2cZQr4V5gbu214H/0C67PFTQ==",
    505505            "requires": {
    506506                "@babel/runtime": "^7.0.0",
     
    508508                "@wordpress/api-fetch": "^2.2.5",
    509509                "@wordpress/blob": "^2.1.0",
    510                 "@wordpress/blocks": "^6.0.2",
     510                "@wordpress/blocks": "^6.0.3",
    511511                "@wordpress/components": "^7.0.3",
    512512                "@wordpress/compose": "^3.0.0",
     
    598598        },
    599599        "@wordpress/format-library": {
    600             "version": "1.2.6",
    601             "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.6.tgz",
    602             "integrity": "sha512-8GkrMRSZ287qotsYzJh0kzDRjDAYJLicwbSRSv4AR2+4dSW6ZX1CK2jt/ihxg5cbqxMitPPTqRA0PmUk+AtdDA==",
     600            "version": "1.2.7",
     601            "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.7.tgz",
     602            "integrity": "sha512-lVsltV1vS9BW+rHxb0ue+/z5ghvytAixVKCkwMaEEnc4qYYo4nzfsXTNCqpgxyQkpgH34j96psPD/34+os0ALg==",
    603603            "requires": {
    604604                "@babel/runtime": "^7.0.0",
    605605                "@wordpress/components": "^7.0.3",
    606606                "@wordpress/dom": "^2.0.7",
    607                 "@wordpress/editor": "^9.0.3",
     607                "@wordpress/editor": "^9.0.4",
    608608                "@wordpress/element": "^2.1.8",
    609609                "@wordpress/i18n": "^3.1.0",
  • branches/5.0/package.json

    r43949 r43955  
    5656        "@wordpress/autop": "^2.0.2",
    5757        "@wordpress/blob": "^2.1.0",
    58         "@wordpress/block-library": "^2.2.8",
    59         "@wordpress/block-serialization-default-parser": "^2.0.0",
    60         "@wordpress/blocks": "^6.0.2",
     58        "@wordpress/block-library": "^2.2.9",
     59        "@wordpress/block-serialization-default-parser": "^2.0.1",
     60        "@wordpress/blocks": "^6.0.3",
    6161        "@wordpress/components": "^7.0.3",
    6262        "@wordpress/compose": "^3.0.0",
     
    6767        "@wordpress/dom": "^2.0.7",
    6868        "@wordpress/dom-ready": "^2.0.2",
    69         "@wordpress/edit-post": "^3.1.3",
    70         "@wordpress/editor": "^9.0.3",
     69        "@wordpress/edit-post": "^3.1.4",
     70        "@wordpress/editor": "^9.0.4",
    7171        "@wordpress/element": "^2.1.8",
    7272        "@wordpress/escape-html": "^1.0.1",
    73         "@wordpress/format-library": "^1.2.6",
     73        "@wordpress/format-library": "^1.2.7",
    7474        "@wordpress/hooks": "^2.0.3",
    7575        "@wordpress/html-entities": "^2.0.3",
  • branches/5.0/src/wp-includes/class-wp-block-parser.php

    r43884 r43955  
    360360     * @internal
    361361     * @since 3.8.0
     362     * @since 4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments
    362363     * @return array
    363364     */
     
    374375         */
    375376        $has_match = preg_match(
    376             '/<!--\s+(?<closer>\/)?wp:(?<namespace>[a-z][a-z0-9_-]*\/)?(?<name>[a-z][a-z0-9_-]*)\s+(?<attrs>{(?:[^}]+|}+(?=})|(?!}\s+-->).)*?}\s+)?(?<void>\/)?-->/s',
     377            '/<!--\s+(?<closer>\/)?wp:(?<namespace>[a-z][a-z0-9_-]*\/)?(?<name>[a-z][a-z0-9_-]*)\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*+)?}\s+)?(?<void>\/)?-->/s',
    377378            $this->document,
    378379            $matches,
     
    380381            $this->offset
    381382        );
     383
     384        // if we get here we probably have catastrophic backtracking or out-of-memory in the PCRE
     385        if ( false === $has_match ) {
     386            return array( 'no-more-tokens', null, null, null, null );
     387        }
    382388
    383389        // we have no more tokens
  • branches/5.0/src/wp-includes/script-loader.php

    r43949 r43955  
    213213        'autop' => '2.0.2',
    214214        'blob' => '2.1.0',
    215         'block-library' => '2.2.8',
    216         'block-serialization-default-parser' => '2.0.0',
    217         'blocks' => '6.0.2',
     215        'block-library' => '2.2.9',
     216        'block-serialization-default-parser' => '2.0.1',
     217        'blocks' => '6.0.3',
    218218        'components' => '7.0.3',
    219219        'compose' => '3.0.0',
     
    224224        'dom' => '2.0.7',
    225225        'dom-ready' => '2.0.2',
    226         'edit-post' => '3.1.3',
    227         'editor' => '9.0.3',
     226        'edit-post' => '3.1.4',
     227        'editor' => '9.0.4',
    228228        'element' => '2.1.8',
    229229        'escape-html' => '1.0.1',
    230         'format-library' => '1.2.6',
     230        'format-library' => '1.2.7',
    231231        'hooks' => '2.0.3',
    232232        'html-entities' => '2.0.3',
Note: See TracChangeset for help on using the changeset viewer.