Repository navigation
Release 4.1.0
Release v4.1.0
Namespace rename:
- Renamed root namespace from
Net\NNTPtoDariusIII\NetNntp:Net\NNTP\Client→DariusIII\NetNntp\ClientNet\NNTP\Error→DariusIII\NetNntp\ErrorNet\NNTP\Protocol\Client→DariusIII\NetNntp\Protocol\ClientNet\NNTP\Protocol\ResponseCode→DariusIII\NetNntp\Protocol\ResponseCode
- Updated
composer.jsonPSR-4 autoload to"DariusIII\\NetNntp\\": "src/" - Added
autoload-devPSR-4 entry for test namespace"DariusIII\\NetNntp\\Tests\\": "tests/" - Updated all source files, tests, docs, and examples to use new namespace
Removed all backward-compatible shims:
- Deleted
src/Protocol/Responsecode.php— thedefine()constants shim file- All
NET_NNTP_PROTOCOL_RESPONSECODE_*global constants are no longer defined - Use the
DariusIII\NetNntp\Protocol\ResponseCodeenum instead
- All
- Removed
filesautoload entry fromcomposer.json(no longer needed) - Removed all deprecated API v1.0 and v1.1 methods from
Client:quit()— usedisconnect()isConnected()— was deprecated wrappergetArticleRaw()— usegetArticle()getHeaderRaw()— usegetHeader()getBodyRaw()— usegetBody()getNewNews()— usegetNewArticles()getReferencesOverview()— usegetReferences()
- Removed v1.0 connect shim (passing port as second arg) from both
ClientandProtocol\Client - Removed v1.1 class-name-as-string shim from
getArticle(),getHeader(),getBody()—$implodeis now strictlybool - Removed v1.0 multi-argument shim from
post()— parameter is nowstring|array - Removed v1.0 two-argument shim from
getOverview()
API tightening:
getNewGroups()/getNewArticles()$timeparameter:mixed→int|string_resolveTimestamp()now throws\InvalidArgumentExceptioninstead of returningErrorpost()parameter now typedstring|array(usemail()for the old multi-arg posting style)- Removed
@package_version@/@package_state@PEAR placeholders from X-poster mail header
Tests:
- Added
testDeprecatedMethodsRemoved()— verifies all 7 removed methods no longer exist - Added
testLegacyConstantsNoLongerDefined()— verifies global constants shim is gone - Added type-assertion tests for cleaned-up method signatures (
$implodeisbool,post()isstring|array) - Removed all legacy constant shim tests (47 removed)
- Removed deprecated method existence tests
- Test suite: 290 tests, 441 assertions