Skip to content

Releases: ut4/pike

0.10.0

14 Nov 12:20
@ut4 ut4
Compare
Choose a tag to compare

Added

  • Support for sqlite
  • $request->queryVar()

Changed

  • PhpMailerMailer->sendMail() now resets itself if called more than once
  • $db->open( void ) -> $db->open( array $pdoOptions = [], bool $doSwallowExceptionError = true )

Breaking

  • php <=7.2 is no longer supported
  • The middleware loop now stops if $next() is not called. Previously you had to call $res->something or throw an exception to stop the thing.

Removed

  • App::MAKE_AUTO

0.9.0

25 Jan 17:24
@ut4 ut4
Compare
Choose a tag to compare

Added

  • Initial support for php8
  • Support for nested optional/wildcard paths to ObjectValidator
  • $queryVars parameter to Request->__construct()

Changed

Semi-public API

  • Renamed DbTestUtils::getDb() -> DbTestUtils::setGetDb().
  • Changed Response->sendIfReady() -> Response->commitIfReady() and Response->isSent() -> Response->isCommitted()
  • Renamed TestUtils\AppHolder -> TestUtils\ResponseSpyingApp

Breaking

App::create -> new App

\Pike\App::create(
    ['MyModule', 'MyOtherModule'],
    require 'my-config-file.php',
    new MyAppContext
)

->

new \Pike\App(
    [new MyModule(), new MyOtherModule('my-stuff')],
    function (MyAppContext $ctx, \Pike\AppDefaults $defaults): void {
        $ctx->config = $defaults->makeConfig(require 'my-config-file.php');
    },
    new MyAppContext
)

Module::alterIoc -> Module->alterDi

class MyModule {
    public static function alterIoc(Auryn\Injector $injector) {}
}

->

class MyModule {
    public function alterDi(Auryn\Injector $di) {}
}

TestUtils-API

$app = $this->makeApp('\My\App::create');
$req = new Request('/foo', 'GET');
$res = $this->makeSpyingResponse();
$this->sendRequest($req, $res, $app);
$this->assertEquals('foo', $res->getActualBody());

->

$req = new Request('/foo', 'GET');
$res = $this->makeApp('\My\App::create')->sendRequest($req);
$this->assertEquals('foo', $res->getActualBody());

Removed

  • $email parameter from Auth\AccountManager->finalizePasswordReset().

0.8.1

16 Nov 15:06
@ut4 ut4
Compare
Choose a tag to compare
  • Muuttunut
    • Authenticator->getIdentity (rememberMe:n ollessa päällä) palauttaanull, mikäli tilin status ei oleAutheticator::STATUS_ACTIVATED
    • SafeHTMLValidator hyväksyy <u> -tagit oletuksena
    • Request->createFromGlobals heittää poikkeuksen mikäli json POST/PUT-pyynnön parsattu body ei ole olio

0.8.0

26 Oct 15:44
@ut4 ut4
Compare
Choose a tag to compare
  • Lisätty
    • Request->header()
  • Muuttunut
    • Uudelleennimetty/siirretty:
      • Pike\AbstractMailer -> Pike\Interfaces\MailerInterface
      • Pike\SessionInterface -> Pike\Interfaces\SessionInterface
      • Pike\FileSystemInterface -> Pike\Interfaces\FileSystemInterface
      • Pike\Auth\AbstractUserRepository -> Pike\Interfaces\UserRepositoryInterface
      • Pike\Auth\DefaultUserRepository -> Pike\Defaults\DefaultUserRepository
      • Authenticator::INVALID_CREDENTIAL -> Authenticator::CREDENTIAL_WAS_INVALID
      • Authenticator::USER_ALREADY_EXISTS -> Authenticator::USER_ALREADY_EXISTED
      • Authenticator::EXPIRED_KEY -> Authenticator::KEY_HAD_EXPIRED
      • Authenticator::UNEXPECTED_ACCOUNT_STATUS -> Authenticator::ACCOUNT_STATUS_WAS_UNEXPECTED
    • Siirretty Authenticator->requestNewAccount|activateAccount|requestPasswordReset|finalizePasswordReset() -> Authenticator->getAccountManager()->requestNewAccount|activateAccount|requestPasswordReset|finalizePasswordReset()
    • Authenticator->login|logout() ei palauta mitään aikaisemman bool:n sijaan
    • Authenticator käyttää PikeException::ERROR_EXCEPTION virhekoodia Authenticator::CRYPTO_FAILURE:n sijaan
    • App->handleRequest($requestOrBaseUrl, $urlPath = null) -> App->handleRequest($urlOrRequest = null, $baseUrl = null)
    • Request->createFromGlobals($baseUrl, $urlPath = null) -> Request->createFromGlobals($fullUrl = null, $baseUrl = null)
  • Poistettu
    • TestUtils\MutedResponse
    • TestUtils\HttpTestUtils->createMockResponse()
    • TestUtils\HttpTestUtils->createBodyCapturingMockResponse()

0.7.0

14 Sep 15:57
@ut4 ut4
Compare
Choose a tag to compare
  • Lisätty
  • Muuttunut
    • $ctx->auth käyttää nyt automaattisesti \Pike\Auth\Internal\DefaultRememberMe-toiminnallisuutta
    • $ctx->authin käyttämä \Pike\Auth\Internal\DefaultUserRepository vaatii nyt kentät loginId, loginIdValidatorHash, ja loginData (ks. tests/testSuiteDbSchema.mariadb.sql)
    • $ctx->auth kirjoittaa nyt automaattisesti maybeLoggedInUserRole -cookien

0.6.3

23 Jul 14:40
@ut4 ut4
Compare
Choose a tag to compare
Korjaa Auth\Internal\CachingServicesFactory:n importit.

0.6.2

21 Jul 14:52
@ut4 ut4
Compare
Choose a tag to compare
Merge branch 'dev'

0.6.1

20 Jun 06:29
@ut4 ut4
Compare
Choose a tag to compare
Merge branch 'dev'

0.6.0

25 May 16:42
@ut4 ut4
Compare
Choose a tag to compare
Merge branch 'dev'

0.5.0

11 May 14:33
@ut4 ut4
Compare
Choose a tag to compare
Merge branch 'dev'