Skip to content

Commit

Permalink
chore(deps-dev): bump typescript
Browse files Browse the repository at this point in the history
Bumps the dev-dependencies group in /website with 1 update: [typescript](https://github.com/Microsoft/TypeScript).

Updates `typescript` from 5.5.2 to 5.5.3
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.5.2...v5.5.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Emilien Escalle <[email protected]>
  • Loading branch information
dependabot[bot] authored and neilime committed Jul 16, 2024
1 parent b104a58 commit db90b9e
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/__shared-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
uses: codecov/codecov-action@v4
with:
file: ./build/logs/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}

build-website:
name: Check that website is building without errors
Expand Down
3 changes: 2 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
])
->setFinder($finder)
->setUsingCache(true)
->setCacheFile(__DIR__ . '/tools/cache/.php-cs-fixer.cache');
->setCacheFile(__DIR__ . '/tools/cache/.php-cs-fixer.cache')
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect());
4 changes: 0 additions & 4 deletions src/TwbsHelper/Form/View/Helper/FormButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ protected function prepareElementAttributes(\Laminas\Form\ElementInterface $elem

protected function prepareElementClassAttributes(\Laminas\Form\ElementInterface $element)
{
if ($element->getOption('disable_twbs')) {
return;
}

if ($element->getOption('close')) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form class="needs-validation" id="form" method="POST" name="form" novalidate="1" role="form">
<form class="needs-validation" id="form" method="POST" name="form" novalidate="novalidate" role="form">
<div class="g-3 row">
<div class="col-md-4">
<label class="form-label" for="validationCustom01">First name</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form class="needs-validation" id="form" method="POST" name="form" novalidate="1" role="form">
<form class="needs-validation" id="form" method="POST" name="form" novalidate="novalidate" role="form">
<div class="g-3 row">
<div class="col-md-4 position-relative">
<label class="form-label" for="validationTooltip01">First name</label>
Expand Down
7 changes: 5 additions & 2 deletions tests/TestSuite/TwbsHelper/AbstractViewHelperTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ protected function setUp(): void
}

$viewHelperPluginManager = \TestSuite\Bootstrap::getServiceManager()->get('ViewHelperManager');
$resolver = \TestSuite\Bootstrap::getServiceManager()->get('ViewResolver');
$phpRenderer = new \Laminas\View\Renderer\PhpRenderer();
$phpRenderer->setHelperPluginManager($viewHelperPluginManager);
$phpRenderer
->setResolver($resolver)
->setHelperPluginManager($viewHelperPluginManager);

$this->helper = $phpRenderer->getHelperPluginManager()->get($this->helper);
$this->helper = $phpRenderer->getHelperPluginManager()->get($this->helper, ['test' => 'test']);
}
}
37 changes: 37 additions & 0 deletions tests/TestSuite/TwbsHelper/Form/View/Helper/FormRowTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

namespace TestSuite\TwbsHelper\Form\View\Helper;

class FormRowTest extends \TestSuite\TwbsHelper\AbstractViewHelperTestCase
{
/**
* @var \TwbsHelper\Form\View\Helper\FormRow
*/
protected $helper = 'formRow';

public function testRenderWithPartial()
{
$factory = new \Laminas\Form\Factory();

$form = $factory->create([
'type' => 'form',
'elements' => [
[
'spec' => [
'name' => 'test',
],
],
],
]);

$this->assertEquals(
'{"element":{},"label":null,"labelAttributes":[],"labelPosition":"prepend","renderErrors":true}',
$this->helper->__invoke(
$form,
null,
null,
'test/json'
)
);
}
}
3 changes: 3 additions & 0 deletions tests/config/module-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
return [
'view_manager' => [
'doctype' => \Laminas\View\Helper\Doctype::XHTML5,
'template_map' => [
'test/json' => __DIR__ . '/../view/test/json.phtml',
],
],
'router' => [
'router_class' => \Laminas\Router\Http\TreeRouteStack::class,
Expand Down
7 changes: 7 additions & 0 deletions tests/view/test/json.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?= $this->json([
'element' => $this->element,
'label' => $this->label,
'labelAttributes' => $this->labelAttributes,
'labelPosition' => $this->labelPosition,
'renderErrors' => $this->renderErrors,
]) ?>
6 changes: 3 additions & 3 deletions website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8254,9 +8254,9 @@ typedarray-to-buffer@^3.1.5:
is-typedarray "^1.0.0"

typescript@^5.2.2:
version "5.5.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507"
integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==
version "5.5.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.3.tgz#e1b0a3c394190838a0b168e771b0ad56a0af0faa"
integrity sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==

unicode-canonical-property-names-ecmascript@^2.0.0:
version "2.0.0"
Expand Down

0 comments on commit db90b9e

Please sign in to comment.